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
--- 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