Bug 1454627 - Fix timing issue in browser_ext_user_events.js r=mixedpuppy
☠☠ backed out by c6b4c044da81 ☠ ☠
authorRob Wu <rob@robwu.nl>
Tue, 31 Jul 2018 16:58:41 +0200
changeset 429384 38d9cbe6e3d20e9099807a00bf1335a8451a9764
parent 429383 44b38de7dc3d2e062e31035298e5ad99708d0138
child 429385 83d7f46de8e93976b29a3fbf0903dde0e351e4df
push id67123
push userrob@robwu.nl
push dateTue, 31 Jul 2018 15:14:10 +0000
treeherderautoland@38d9cbe6e3d2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmixedpuppy
bugs1454627
milestone63.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1454627 - Fix timing issue in browser_ext_user_events.js r=mixedpuppy MozReview-Commit-ID: 9eg6sz1s1e3
browser/components/extensions/test/browser/browser_ext_user_events.js
--- a/browser/components/extensions/test/browser/browser_ext_user_events.js
+++ b/browser/components/extensions/test/browser/browser_ext_user_events.js
@@ -170,20 +170,20 @@ add_task(async function testSources() {
   extension.sendMessage("contextMenus.update");
   await extension.awaitMessage("contextMenus.update-done");
   menu = await openContextMenu("body");
   items = menu.getElementsByAttribute("label", "test user events in onClicked");
   is(items.length, 1, "Found context menu item again");
   EventUtils.synthesizeMouseAtCenter(items[0], {});
   await check("context menu in onClicked");
 
-  extension.sendMessage("openOptionsPage");
   promisePopupNotificationShown("addon-webext-permissions").then(panel => {
     panel.button.click();
   });
+  extension.sendMessage("openOptionsPage");
   await check("options page link click");
 
   await BrowserTestUtils.removeTab(gBrowser.selectedTab);
   await BrowserTestUtils.removeTab(tab);
 
   await extension.unload();
 
   registerCleanupFunction(() => CustomizableUI.reset());