diff options
Diffstat (limited to 'toolkit/mozapps/extensions/test/xpinstall/browser_navigateaway4.js')
-rw-r--r-- | toolkit/mozapps/extensions/test/xpinstall/browser_navigateaway4.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/toolkit/mozapps/extensions/test/xpinstall/browser_navigateaway4.js b/toolkit/mozapps/extensions/test/xpinstall/browser_navigateaway4.js index 61844c5a1..61fc7d3ac 100644 --- a/toolkit/mozapps/extensions/test/xpinstall/browser_navigateaway4.js +++ b/toolkit/mozapps/extensions/test/xpinstall/browser_navigateaway4.js @@ -1,7 +1,7 @@ // ---------------------------------------------------------------------------- // Tests that navigating to a new origin cancels ongoing installs and closes // the install UI. -var sawUnload = null; +let sawUnload = null; function test() { Harness.installConfirmCallback = confirm_install; @@ -13,7 +13,7 @@ function test() { pm.add(makeURI("http://example.com/"), "install", pm.ALLOW_ACTION); var triggers = encodeURIComponent(JSON.stringify({ - "Unsigned XPI": TESTROOT + "amosigned.xpi" + "Unsigned XPI": TESTROOT + "unsigned.xpi" })); gBrowser.selectedTab = gBrowser.addTab(); gBrowser.loadURI(TESTROOT + "installtrigger.html?" + triggers); @@ -34,7 +34,7 @@ function install_ended(install, addon) { function finish_test(count) { is(count, 0, "No add-ons should have been successfully installed"); - Services.perms.remove(makeURI("http://example.com"), "install"); + Services.perms.remove("http://example.com", "install"); sawUnload.then(() => { ok(true, "The install UI should have closed itself."); |