You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that the gist does not display a BrowserView in v22.beta.3. I have not diagnosed why.
Proposed Solution
If approved, I believe the only necessary changes are to add the event to docs/api/web-contents.md and listeners and ensure they are fired in spec/api-web-contents-spec.ts.
EDIT: I see that a preventDefault is added by default to emitted events. Should the CloseContents() method return early if it is prevented?
Alternatives Considered
Have window.close() within a browserview close the browserwindow it belongs to? This seems to have more risk of impact.
EDIT: browserview.on('close') event, but that would be the first documented BV event
Additional Information
I'd be happy to submit a PR for this if approved.
The text was updated successfully, but these errors were encountered:
I see that a preventDefault is added by default to emitted events. Should the CloseContents() method return early if it is prevented?
This would be really nice to have, I'm currently dealing with a website that can call window.close(), which destroys the browser view and is not cancellable (the window stays open). my current choices are between recreating the view (and re-attaching events), or replacing window.close in the client JS with a stub.
Preflight Checklist
Problem Description
Proposed Solution
Alternatives Considered
Additional Information
I'd be happy to submit a PR for this if approved.
The text was updated successfully, but these errors were encountered: