diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-26 07:16:10 +0200 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-26 07:16:10 +0200 |
commit | eebf4162a992bd0cc70f9c58bbb6e543b0438c89 (patch) | |
tree | 1ce6d6fbcf5ff3cc49b0a0943d96b2e5766dc5cb /application/palemoon/base/content/browser-fullScreen.js | |
parent | 49ba38d216ec1a1f73d0368e4942bfd6bed9e52e (diff) | |
download | UXP-eebf4162a992bd0cc70f9c58bbb6e543b0438c89.tar UXP-eebf4162a992bd0cc70f9c58bbb6e543b0438c89.tar.gz UXP-eebf4162a992bd0cc70f9c58bbb6e543b0438c89.tar.lz UXP-eebf4162a992bd0cc70f9c58bbb6e543b0438c89.tar.xz UXP-eebf4162a992bd0cc70f9c58bbb6e543b0438c89.zip |
Bug 1170200 - Part 2: Update JavaScript consumers of nsIPermissionManager::Remove
Diffstat (limited to 'application/palemoon/base/content/browser-fullScreen.js')
-rw-r--r-- | application/palemoon/base/content/browser-fullScreen.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/application/palemoon/base/content/browser-fullScreen.js b/application/palemoon/base/content/browser-fullScreen.js index 400340e77..73b10ae85 100644 --- a/application/palemoon/base/content/browser-fullScreen.js +++ b/application/palemoon/base/content/browser-fullScreen.js @@ -354,11 +354,10 @@ var FullScreen = { "fullscreen", Services.perms.ALLOW_ACTION, Services.perms.EXPIRE_SESSION); - let host = uri.host; var onFullscreenchange = function onFullscreenchange(event) { if (event.target == document && document.mozFullScreenElement == null) { // The chrome document has left fullscreen. Remove the temporary permission grant. - Services.perms.remove(host, "fullscreen"); + Services.perms.remove(uri, "fullscreen"); document.removeEventListener("mozfullscreenchange", onFullscreenchange); } } |