Bug 1727829 - Consider to not initialize AboutReaderChild actor for initial about:blank documents when pagehide fires, r=NeilDeakin

Differential Revision: https://phabricator.services.mozilla.com/D123827
This commit is contained in:
Olli Pettay 2021-08-29 21:55:50 +00:00
Родитель 074f1e8220
Коммит 17c700658b
1 изменённых файлов: 3 добавлений и 1 удалений

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

@ -307,7 +307,9 @@ let JSWINDOWACTORS = {
events: { events: {
DOMContentLoaded: {}, DOMContentLoaded: {},
pageshow: { mozSystemGroup: true }, pageshow: { mozSystemGroup: true },
pagehide: { mozSystemGroup: true }, // Don't try to create the actor if only the pagehide event fires.
// This can happen with the initial about:blank documents.
pagehide: { mozSystemGroup: true, createActor: false },
}, },
}, },
messageManagerGroups: ["browsers"], messageManagerGroups: ["browsers"],