Bug 1397365: Part 2 - Use about:blank as a default URL for accessibility tests. r?mconley draft
authorZibi Braniecki <zbraniecki@mozilla.com>
Wed, 13 Sep 2017 01:08:50 -0700
changeset 664676 ee0c47ed060f985a351e1777dfb08adf4a740a7a
parent 664675 7a09b2447e56a5a8e270136eeb7a14cdb39f3a92
child 664677 2b90c9895e09e014ebe4fbbded413dfcda693358
push id79760
push userbmo:gandalf@aviary.pl
push dateThu, 14 Sep 2017 08:02:46 +0000
reviewersmconley
bugs1397365
milestone57.0a1
Bug 1397365: Part 2 - Use about:blank as a default URL for accessibility tests. r?mconley Multiple accessibility tests depend on a document being loaded into the first tab of a new window. Since we're not loading a document into the first tab of a new window by default anymore, we'll re-add the about:blank load to the tests. MozReview-Commit-ID: KStS5YdldP
accessible/tests/mochitest/browser.js
--- a/accessible/tests/mochitest/browser.js
+++ b/accessible/tests/mochitest/browser.js
@@ -110,17 +110,17 @@ function openBrowserWindowIntl() {
       params += ",width=" + rect.width;
     if ("height" in rect)
       params += ",height=" + rect.height;
   }
 
   gBrowserContext.browserWnd =
     window.openDialog(Services.prefs.getCharPref("browser.chromeURL"),
                       "_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