mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-12 06:52:25 +00:00
cf1d141d21
This will return true if any of the frames loaded in the associated TabChild have set at least one onbeforeunload event handler. If those handlers are all removed, or all of the documents with onbeforeunload event handlers are unloaded, this becomes false again. Note that subframes that are sandboxed without the allow-modals permission will not affect the hasBeforeUnload attribute, since those iframes should never cause the beforeunload confirmation dialog to display. MozReview-Commit-ID: 8b0gBYWwMDn --HG-- extra : rebase_source : 69f3b692d6e73f6277e6982aad02bcd1ebdd8acf