mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-20 08:51:04 +00:00
Bug 1369197 - Wait for customizationready when exiting customize mode in browserAction contentMenu tests. r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D38123 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
af7e2b19f4
commit
d574cd6956
@ -638,7 +638,12 @@ add_task(async function browseraction_contextmenu_report_extension() {
|
||||
// loaded in the existing blank tab.
|
||||
if (customizing) {
|
||||
info("Closing the about:addons tab");
|
||||
BrowserTestUtils.removeTab(win.gBrowser.selectedTab);
|
||||
let customizationReady = BrowserTestUtils.waitForEvent(
|
||||
win.gNavToolbox,
|
||||
"customizationready"
|
||||
);
|
||||
win.gBrowser.removeTab(win.gBrowser.selectedTab);
|
||||
await customizationReady;
|
||||
} else {
|
||||
info("Navigate the about:addons tab to about:blank");
|
||||
await BrowserTestUtils.loadURI(browser, "about:blank");
|
||||
|
Loading…
x
Reference in New Issue
Block a user