Bug 1584678 - Ensure we don't change activeness when remoteness changes for real. r=mconley

We apparently have this code copy-pasted in two places? :(

Differential Revision: https://phabricator.services.mozilla.com/D130261
This commit is contained in:
Emilio Cobos Alvarez 2021-11-04 18:21:52 +00:00
Родитель f7637bc8d5
Коммит 012a09c534
1 изменённых файлов: 6 добавлений и 6 удалений

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

@ -6013,12 +6013,12 @@
browser.droppedLinkHandler = oldDroppedLinkHandler;
// This shouldn't really be necessary (it should always set the same
// value as activeness is correctly preserved across remoteness changes).
// However, this has the side effect of sending MozLayerTreeReady /
// MozLayerTreeCleared events for remote frames, which the tab switcher
// depends on.
browser.docShellIsActive = this.shouldActivateDocShell(browser);
// This shouldn't really be necessary, however, this has the side effect
// of sending MozLayerTreeReady / MozLayerTreeCleared events for remote
// frames, which the tab switcher depends on.
//
// eslint-disable-next-line no-self-assign
browser.docShellIsActive = browser.docShellIsActive;
// Create a new tab progress listener for the new browser we just
// injected, since tab progress listeners have logic for handling the