Bug 1784831 - set messageManagerGroups on the docshell test helper's actor to prevent getting events from system addon event pages; r=robwu

Differential Revision: https://phabricator.services.mozilla.com/D204146
This commit is contained in:
Thomas Wisniewski 2024-03-11 23:52:42 +00:00
Родитель 2f44a52f40
Коммит 1c49e08e91
1 изменённых файлов: 6 добавлений и 0 удалений

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

@ -230,6 +230,12 @@ function doPageNavigation(params) {
observers: observers.keys(),
},
allFrames: true,
// We avoid messages from system addons event pages here, as
// the tests test_bug321671.xhtml and test_bug690056.xhtml do
// not expect those events, and so will intermittently fail.
// They require messages from "browsers", "test", and "" to pass.
// See bug 1784831 and bug 1883434 for more context.
messageManagerGroups: ["browsers", "test", ""],
});
DocShellHelpersParent.eventsToListenFor = eventsToListenFor;
DocShellHelpersParent.observers = observers;