How to intercept all window features passed to window.open in WebView2?

37 Views Asked by At

I'm guessing I might just have to create an issue on their repo, but how does one access the raw string (or dictionary) of features that gets passed to window.open?

In Electron, I could intercept window.open via setWindowOpenHandler and then access details.features to get all the features passed in (even those that weren't part of the spec).

In Webview2, I intercept the NewWindowRequested event. The passed-in args have a WindowFeatures property, but it's a typed as a CoreWebView2WindowFeatures and only includes a few properties.

Is there no way to grab all the features passed into window.open?

0

There are 0 best solutions below