Bug 1496360 - make BrowserWindowTracker and its deps use the docshell to obtain an outerWindowID, r=dao

Differential Revision: https://phabricator.services.mozilla.com/D11003

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Gijs Kruitbosch 2018-11-06 09:48:46 +00:00
Родитель 15ac056c3b
Коммит a0bf942503
3 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -40,7 +40,7 @@ function _updateCurrentContentOuterWindowID(browser) {
return;
}
debug("Current window uri=" + browser.currentURI.spec +
debug("Current window uri=" + (browser.currentURI && browser.currentURI.spec) +
" id=" + browser.outerWindowID);
_lastTopLevelWindowID = browser.outerWindowID;

Просмотреть файл

@ -28,5 +28,5 @@ addEventListener("ImageContentLoaded", function(aEvent) {
// We may not get any responses to Browser:Init if the browser element
// is torn down too quickly.
var outerWindowID = content.windowUtils.outerWindowID;
var outerWindowID = docShell.outerWindowID;
sendAsyncMessage("Browser:Init", {outerWindowID});

Просмотреть файл

@ -460,7 +460,7 @@
if (this.isRemoteBrowser) {
return this._outerWindowID;
}
return this.contentWindow.windowUtils.outerWindowID;
return this.docShell.outerWindowID;
]]></getter>
</property>