Bug 1399375 - Wait for _uninit in test_ext_permissions.js. r=kmag, a=test-only
authorAndrew Swan <aswan@mozilla.com>
Tue, 03 Oct 2017 09:06:05 -0700
changeset 677854 69c4df3b3541d5e354918e2030ed5a3a68e615eb
parent 677853 1ffa3380bf98885bb1cad85ac63791d81687ac26
child 677855 90fad10968db8890412fda2e3c0c9fc13f5d07a1
push id83805
push userbmo:rail@mozilla.com
push dateTue, 10 Oct 2017 19:01:30 +0000
reviewerskmag, test-only
bugs1399375
milestone57.0
Bug 1399375 - Wait for _uninit in test_ext_permissions.js. r=kmag, a=test-only MozReview-Commit-ID: AF3U2vs5YNw
toolkit/components/extensions/test/xpcshell/test_ext_permissions.js
--- a/toolkit/components/extensions/test/xpcshell/test_ext_permissions.js
+++ b/toolkit/components/extensions/test/xpcshell/test_ext_permissions.js
@@ -261,17 +261,17 @@ add_task(async function test_startup() {
 
   await withHandlingUserInput(extension2, async () => {
     extension2.sendMessage(PERMS2);
     await extension2.awaitMessage("requested");
   });
 
   // Restart everything, and force the permissions store to be
   // re-read on startup
-  ExtensionPermissions._uninit();
+  await ExtensionPermissions._uninit();
   await AddonTestUtils.promiseRestartManager();
   await extension1.awaitStartup();
   await extension2.awaitStartup();
 
   async function checkPermissions(extension, permissions) {
     perms = await extension.awaitMessage("perms");
     let expect = Object.assign({permissions: [], origins: []}, permissions);
     deepEqual(perms, expect, "Extension got correct permissions on startup");