MicrosoftEdge / MicrosoftEdge/WebView2Feedback
Support IDispatchEx for host objects
@champnic is already working on this.
Since Apr 21, 2021.
- Dominant language
- PowerShell
- Stars
- 526
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
@champnic do you know if Webview2 will use the IDispatchEx interface if present? I'm seeing some issues with the current implementation because IDispatch doesn't allow specifying this in a call. Therefore, I have to pass the object as the first parameter. Let's say my host object is just an array of 4 string. The below code is what I have to use to properly call the Has() and Pop() methods on the array currently.
(async function() {
const arr = window.chrome.webview.hostObjects.AHK;
console.log(await arr.Has(arr, 1));
console.log(await arr.Pop(arr));
})();
Originally posted by @kczx3 in https://github.com/MicrosoftEdge/WebView2Feedback/issues/513#issuecomment-821190916
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.