From afd250e0d3fbbff265eb19194cd69ea32bc70ed7 Mon Sep 17 00:00:00 2001 From: Mike Conley Date: Tue, 2 Oct 2018 17:52:56 +0000 Subject: [PATCH] Bug 1492950 - Get browser-fullScreenAndPointerLock.js off of getBrowserForContentWindow. r=jaws Depends on D6712 Differential Revision: https://phabricator.services.mozilla.com/D6713 --HG-- extra : moz-landing-system : lando --- browser/base/content/browser-fullScreenAndPointerLock.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/browser/base/content/browser-fullScreenAndPointerLock.js b/browser/base/content/browser-fullScreenAndPointerLock.js index 7457d7838f3f..ee31ab027cf9 100644 --- a/browser/base/content/browser-fullScreenAndPointerLock.js +++ b/browser/base/content/browser-fullScreenAndPointerLock.js @@ -377,8 +377,7 @@ var FullScreen = { if (event.target.ownerGlobal == window) { browser = event.target; } else { - let topWin = event.target.ownerGlobal.top; - browser = gBrowser.getBrowserForContentWindow(topWin); + browser = event.target.ownerGlobal.docShell.chromeEventHandler; } TelemetryStopwatch.start("FULLSCREEN_CHANGE_MS"); this.enterDomFullscreen(browser);