mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-04 13:07:52 +00:00
58788522cd
By using ContentTask, we get a Promise that resolves once we've heard confirmation from the content process that the ContentTask function has completed running. This means we can be certain that browser_beforeunload_between_chrome_content.js has had the beforeunload event handlers added before attempting to unload the page. MozReview-Commit-ID: DhoTsOZ4BNk --HG-- extra : rebase_source : ee31ed4e9a8fe0b734a5961c8b0d47d75ccb6703