Bug 1623348 - Attempt to fix browser_permissions_optional.js. r=mkmelin DONTBUILD
authorGeoff Lankow <geoff@darktrojan.net>
Sun, 05 Apr 2020 11:11:57 +1200
changeset 38690 2232bbc484164c7b42f432b13eadee4989c8ee34
parent 38689 f30adb6e9f15523a628bc773574a7f35ef5abfcd
child 38691 ccfc0f0d776c91f85007c46b589c9691e793cc78
push id400
push userclokep@gmail.com
push dateMon, 04 May 2020 18:56:09 +0000
reviewersmkmelin
bugs1623348
Bug 1623348 - Attempt to fix browser_permissions_optional.js. r=mkmelin DONTBUILD
mail/base/test/webextensions/browser_permissions_optional.js
--- a/mail/base/test/webextensions/browser_permissions_optional.js
+++ b/mail/base/test/webextensions/browser_permissions_optional.js
@@ -37,16 +37,17 @@ add_task(async function test_request_per
     },
   });
   await extension.startup();
 
   let url = await extension.awaitMessage("ready");
 
   let tab = openContentTab(url);
   await extension.awaitMessage("pageReady");
+  await new Promise(resolve => requestAnimationFrame(resolve));
   await BrowserTestUtils.synthesizeMouseAtCenter(tab.browser, {}, tab.browser);
   await BrowserTestUtils.synthesizeKey("a", {}, tab.browser);
   await extension.awaitMessage("permsGranted");
   await extension.unload();
 
   let tabmail = document.getElementById("tabmail");
   tabmail.closeTab(tab);
 });