Why doesn't window.open use the new-window event result?


Opening a new window from the guest page in a webview fires the ‘new-window’ event on the webview.

This works fine for regular links (using target="_blank" and such), there we can customize what to do. But if guest page opens a window using “window.open” there is no way to prevent (or change) the opening of the window.

Wouldn’t it be advisable for window.open to honor the result of the new-window event, so that we could do a e.prevenDefault() in there?