Bug 1488286 - Use a dummy data: URI as a default URL for accessibility tests. r=mconley
authorZibi Braniecki <zbraniecki@mozilla.com>
Mon, 03 Sep 2018 21:59:56 +0100
changeset 482856 574af1378a606294bffe51dcf7216d81caaa036e
parent 482855 1c08b566a5c51e7c4f50badf80c74882ec09c050
child 482857 a7985ade4e35e076274c2c841fc1b514f8505618
push id232
push userfmarier@mozilla.com
push dateWed, 05 Sep 2018 20:45:54 +0000
reviewersmconley
bugs1488286
milestone63.0a1
Bug 1488286 - Use a dummy data: URI as a default URL for accessibility tests. r=mconley
accessible/tests/mochitest/browser.js
--- a/accessible/tests/mochitest/browser.js
+++ b/accessible/tests/mochitest/browser.js
@@ -112,17 +112,17 @@ function openBrowserWindowIntl() {
       params += ",width=" + rect.width;
     if ("height" in rect)
       params += ",height=" + rect.height;
   }
 
   gBrowserContext.browserWnd =
     window.openDialog(AppConstants.BROWSER_CHROME_URL,
                       "_blank", params,
-                      gBrowserContext.startURL);
+                      gBrowserContext.startURL || "data:text/html,<html></html>");
 
   whenDelayedStartupFinished(browserWindow(), function() {
     addA11yLoadEvent(startBrowserTests, browserWindow());
   });
 }
 
 function startBrowserTests() {
   if (gBrowserContext.startURL) // wait for load