Bug 1472491: Part 3 - Fix flaky browser_ext_menus_events test. r?zombie draft
authorKris Maglione <maglione.k@gmail.com>
Tue, 31 Jul 2018 12:30:10 -0700
changeset 825177 bda7cf71cf2eece3da823557447236e647879392
parent 825176 0089a84e096cb6cd39a7d15a8735a6dc6871689f
child 825178 fd2383bab5a317bfa808c600a3bf674052920266
push id118036
push usermaglione.k@gmail.com
push dateWed, 01 Aug 2018 02:23:07 +0000
reviewerszombie
bugs1472491
milestone63.0a1
Bug 1472491: Part 3 - Fix flaky browser_ext_menus_events test. r?zombie MozReview-Commit-ID: DybKgJLR9ep
browser/components/extensions/test/browser/browser_ext_menus_events.js
--- a/browser/components/extensions/test/browser/browser_ext_menus_events.js
+++ b/browser/components/extensions/test/browser/browser_ext_menus_events.js
@@ -389,16 +389,18 @@ add_task(async function test_show_hide_f
       contexts: ["frame", "all"],
       editable: false,
       get frameId() { return frameId; },
       pageUrl: PAGE,
       frameUrl: PAGE_BASE + "context_frame.html",
     },
     async doOpenMenu() {
       frameId = await ContentTask.spawn(gBrowser.selectedBrowser, {}, function() {
+        ChromeUtils.import("resource://gre/modules/WebNavigationFrames.jsm");
+
         let {contentWindow} = content.document.getElementById("frame");
         return WebNavigationFrames.getFrameId(contentWindow);
       });
       await openContextMenuInFrame("#frame");
     },
     async doCloseMenu() {
       await closeExtensionContextMenu();
     },