Skip to content

Support IDispatchEx for host objects #1195

Open
@champnic

Description

@champnic

@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 #513 (comment)

AB#32539019

Metadata

Metadata

Assignees

Labels

feature requestfeature requestpriority-lowWe have considered this issue and decided that we will not be able to address it in the near future.trackedWe are tracking this work internally.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions