Bug 1357486: Part 0f - Run some chrome tests in in-process mode. r?aswan draft
authorKris Maglione <maglione.k@gmail.com>
Fri, 07 Jul 2017 15:16:17 -0700
changeset 605526 0dbd8eb5d3bf204d28f0e001cbd542bb3eb9d257
parent 605525 10cacd7778977a2a6f6219bba159fc5d361e3b12
child 636520 cd3c8d24ac0f1d9b07d90615d6e6ce4c1180235e
push id67439
push usermaglione.k@gmail.com
push dateFri, 07 Jul 2017 22:16:56 +0000
reviewersaswan
bugs1357486
milestone56.0a1
Bug 1357486: Part 0f - Run some chrome tests in in-process mode. r?aswan MozReview-Commit-ID: 1T0tEpwTU3c
toolkit/components/extensions/test/mochitest/test_chrome_ext_downloads_open.html
toolkit/components/extensions/test/mochitest/test_chrome_ext_permissions.html
--- a/toolkit/components/extensions/test/mochitest/test_chrome_ext_downloads_open.html
+++ b/toolkit/components/extensions/test/mochitest/test_chrome_ext_downloads_open.html
@@ -51,16 +51,20 @@ add_task(async function test_downloads_o
 
   let extension = ExtensionTestUtils.loadExtension(extensionData);
   await extension.startup();
   await extension.awaitFinish("downloads tests");
   await extension.unload();
 });
 
 add_task(async function downloads_open_invalid_id() {
+  await SpecialPowers.pushPrefEnv({
+    set: [["extensions.webextensions.remote", false]],
+  });
+
   async function pageScript() {
     window.addEventListener("keypress", async function handler() {
       try {
         await browser.downloads.open(10);
         browser.test.sendMessage("download-open.result", {success: true});
       } catch (e) {
         browser.test.sendMessage("download-open.result", {
           success: false,
--- a/toolkit/components/extensions/test/mochitest/test_chrome_ext_permissions.html
+++ b/toolkit/components/extensions/test/mochitest/test_chrome_ext_permissions.html
@@ -152,17 +152,18 @@ function makeTest(manifestPermissions, o
 
     await extension.unload();
   };
 }
 
 add_task(function setup() {
   // Don't bother with prompts in this test.
   return SpecialPowers.pushPrefEnv({
-    set: [["extensions.webextOptionalPermissionPrompts", false]],
+    set: [["extensions.webextensions.remote", false],
+          ["extensions.webextOptionalPermissionPrompts", false]],
   });
 });
 
 const ORIGIN = "*://example.com/";
 add_task(makeTest([], {
   permissions: ["cookies"],
   origins: [ORIGIN],
 }));