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
Родитель 5debf9550f
Коммит bffea54155
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -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`