From e7044ef7d34b6d4b507a50bd15972050d8774795 Mon Sep 17 00:00:00 2001 From: Mark Capella Date: Sat, 25 Feb 2012 22:02:14 +0100 Subject: [PATCH] Bug 717963 - Use getBrowserURL(). r=dao --- browser/base/content/test/browser_bug422590.js | 4 ++-- browser/components/sessionstore/test/browser_580512.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/browser/base/content/test/browser_bug422590.js b/browser/base/content/test/browser_bug422590.js index 608caa85388a..5ab809d8ef08 100644 --- a/browser/base/content/test/browser_bug422590.js +++ b/browser/base/content/test/browser_bug422590.js @@ -8,8 +8,8 @@ function test() { function testChromeless() { // test a chromeless window - var newWin = openDialog("chrome://browser/content/", "_blank", - "chrome,dialog=no,toolbar=no", "about:blank"); + var newWin = openDialog(getBrowserURL(), "_blank", + "chrome,dialog=no,toolbar=no", "about:blank"); ok(newWin, "got new window"); function runWindowTest() { diff --git a/browser/components/sessionstore/test/browser_580512.js b/browser/components/sessionstore/test/browser_580512.js index b8b5bb230329..95f68f6efb41 100644 --- a/browser/components/sessionstore/test/browser_580512.js +++ b/browser/components/sessionstore/test/browser_580512.js @@ -40,7 +40,7 @@ function openWinWithCb(cb, argURIs, expectedURIs) { if (!expectedURIs) expectedURIs = argURIs; - var win = openDialog("chrome://browser/content/", "_blank", + var win = openDialog(getBrowserURL(), "_blank", "chrome,all,dialog=no", argURIs.join("|")); win.addEventListener("load", function () {