Bug 1563500 - Avoid accessing bogus reftest gBrowser in SessionStore.onMayChangeProcess. r=nika

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Mike Conley 2019-08-12 20:09:21 +00:00
parent 5debf9550f
commit bffea54155

View File

@ -2658,7 +2658,7 @@ var SessionStoreInternal = {
// embedded within a normal tab. We can't do one of these swaps for a
// cross-origin frame.
if (browsingContext.embedderElement) {
let tabbrowser = browsingContext.embedderElement.ownerGlobal.gBrowser;
let tabbrowser = browsingContext.embedderElement.getTabBrowser();
if (!tabbrowser) {
debug(
`[process-switch]: cannot find tabbrowser for loading tab - ignoring`