diff options
author | JustOff <Off.Just.Off@gmail.com> | 2018-05-06 14:42:18 +0300 |
---|---|---|
committer | JustOff <Off.Just.Off@gmail.com> | 2018-05-06 14:42:18 +0300 |
commit | 39615877073d4399fac925be648446fc497ae18d (patch) | |
tree | 425e0ed83ebba0f2622698aebd7b5ae8a609ec24 | |
parent | 1fbd4d95796ff084e84e4b9e32d1c23aa2672825 (diff) | |
download | UXP-39615877073d4399fac925be648446fc497ae18d.tar UXP-39615877073d4399fac925be648446fc497ae18d.tar.gz UXP-39615877073d4399fac925be648446fc497ae18d.tar.lz UXP-39615877073d4399fac925be648446fc497ae18d.tar.xz UXP-39615877073d4399fac925be648446fc497ae18d.zip |
[PALEMOON] Update fullscreen activation event to match UXP
-rw-r--r-- | application/palemoon/base/content/browser-fullScreen.js | 2 | ||||
-rw-r--r-- | application/palemoon/base/content/browser.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/application/palemoon/base/content/browser-fullScreen.js b/application/palemoon/base/content/browser-fullScreen.js index ffe1da450..d36225c4d 100644 --- a/application/palemoon/base/content/browser-fullScreen.js +++ b/application/palemoon/base/content/browser-fullScreen.js @@ -91,7 +91,7 @@ var FullScreen = { if (!document.mozFullScreen) return; - // However, if we receive a "MozEnteredDomFullScreen" event for a document + // However, if we receive a "MozDOMFullscreen:NewOrigin" event for a document // which is not a subdocument of a currently active (ie. visible) browser // or iframe, we know that we've switched to a different frame since the // request to enter full-screen was made, so we should exit full-screen diff --git a/application/palemoon/base/content/browser.js b/application/palemoon/base/content/browser.js index 72d51ce4a..c1643caa4 100644 --- a/application/palemoon/base/content/browser.js +++ b/application/palemoon/base/content/browser.js @@ -1157,7 +1157,7 @@ var gBrowserInit = { // Called when we enter DOM full-screen mode. Note we can already be in browser // full-screen mode when we enter DOM full-screen mode. - window.addEventListener("MozEnteredDomFullscreen", onMozEnteredDomFullscreen, true); + window.addEventListener("MozDOMFullscreen:NewOrigin", onMozEnteredDomFullscreen, true); if (window.fullScreen) onFullScreen(); |