Bug 1589508 - Fix three xpinstall/browser_enabled* tests r=mixedpuppy
authorTomislav Jovanovic <tomica@gmail.com>
Thu, 17 Oct 2019 21:45:53 +0000
changeset 559398 1640f69214512e6ac64b84421d6cac1069639324
parent 559397 28e214b713438e55208b8f78ca32ea5a21630c4f
child 559399 cf90081fc72285e00ea5b71efc7c5d13c34633b3
push id12177
push usercsabou@mozilla.com
push dateMon, 21 Oct 2019 14:52:16 +0000
treeherdermozilla-beta@1918a9cd33bc [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmixedpuppy
bugs1589508
milestone71.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 1589508 - Fix three xpinstall/browser_enabled* tests r=mixedpuppy [browser_enabled.js] [browser_enabled2.js] [browser_enabled3.js] Differential Revision: https://phabricator.services.mozilla.com/D49663
toolkit/mozapps/extensions/test/xpinstall/browser.ini
toolkit/mozapps/extensions/test/xpinstall/browser_enabled.js
toolkit/mozapps/extensions/test/xpinstall/browser_enabled2.js
toolkit/mozapps/extensions/test/xpinstall/browser_enabled3.js
--- a/toolkit/mozapps/extensions/test/xpinstall/browser.ini
+++ b/toolkit/mozapps/extensions/test/xpinstall/browser.ini
@@ -49,21 +49,18 @@ skip-if = true # disabled due to a leak.
 [browser_cookies3.js]
 [browser_cookies4.js]
 skip-if = true # Bug 1084646
 [browser_corrupt.js]
 [browser_datauri.js]
 [browser_doorhanger_installs.js]
 [browser_empty.js]
 [browser_enabled.js]
-skip-if = fission
 [browser_enabled2.js]
-skip-if = fission
 [browser_enabled3.js]
-skip-if = fission
 [browser_hash.js]
 [browser_hash2.js]
 [browser_httphash.js]
 [browser_httphash2.js]
 [browser_httphash3.js]
 [browser_httphash4.js]
 [browser_httphash5.js]
 [browser_httphash6.js]
--- a/toolkit/mozapps/extensions/test/xpinstall/browser_enabled.js
+++ b/toolkit/mozapps/extensions/test/xpinstall/browser_enabled.js
@@ -1,14 +1,14 @@
 // ----------------------------------------------------------------------------
 // Test whether an InstallTrigger.enabled is working
 function test() {
   waitForExplicitFinish();
 
-  gBrowser.selectedTab = BrowserTestUtils.addTab(gBrowser);
+  gBrowser.selectedTab = BrowserTestUtils.addTab(gBrowser, TESTROOT);
 
   ContentTask.spawn(
     gBrowser.selectedBrowser,
     TESTROOT + "enabled.html",
     function(url) {
       return new Promise(resolve => {
         function page_loaded() {
           content.removeEventListener("PageLoaded", page_loaded);
--- a/toolkit/mozapps/extensions/test/xpinstall/browser_enabled2.js
+++ b/toolkit/mozapps/extensions/test/xpinstall/browser_enabled2.js
@@ -1,16 +1,16 @@
 // ----------------------------------------------------------------------------
 // Test whether an InstallTrigger.enabled is working
 function test() {
   waitForExplicitFinish();
 
   Services.prefs.setBoolPref("xpinstall.enabled", false);
 
-  gBrowser.selectedTab = BrowserTestUtils.addTab(gBrowser);
+  gBrowser.selectedTab = BrowserTestUtils.addTab(gBrowser, TESTROOT);
 
   ContentTask.spawn(
     gBrowser.selectedBrowser,
     TESTROOT + "enabled.html",
     function(url) {
       return new Promise(resolve => {
         function page_loaded() {
           content.removeEventListener("PageLoaded", page_loaded);
--- a/toolkit/mozapps/extensions/test/xpinstall/browser_enabled3.js
+++ b/toolkit/mozapps/extensions/test/xpinstall/browser_enabled3.js
@@ -8,17 +8,17 @@ function test() {
 
   Services.prefs.setBoolPref("xpinstall.enabled", false);
 
   var triggers = encodeURIComponent(
     JSON.stringify({
       "Unsigned XPI": TESTROOT + "amosigned.xpi",
     })
   );
-  gBrowser.selectedTab = BrowserTestUtils.addTab(gBrowser);
+  gBrowser.selectedTab = BrowserTestUtils.addTab(gBrowser, TESTROOT);
 
   ContentTask.spawn(
     gBrowser.selectedBrowser,
     TESTROOT + "installtrigger.html?" + triggers,
     url => {
       return new Promise(resolve => {
         function page_loaded() {
           content.removeEventListener("PageLoaded", page_loaded);