$OpenBSD$ index e110adc..1766851 100644 --- browser/components/tabview/test/head.js.orig Fri Feb 20 15:40:36 2015 +++ browser/components/tabview/test/head.js Fri Feb 20 15:40:36 2015 @@ -105,7 +105,7 @@ function newWindowWithTabView(shownCallback, loadCallback, width, height) { let winHeight = height || 800; let win = window.openDialog(getBrowserURL(), "_blank", "chrome,all,dialog=no,height=" + winHeight + - ",width=" + winWidth); + ",width=" + winWidth, "about:blank"); whenWindowLoaded(win, function () { if (loadCallback) @@ -333,7 +333,7 @@ function newWindowWithState(state, callback) { .getService(Ci.nsISessionStore); let opts = "chrome,all,dialog=no,height=800,width=800"; - let win = window.openDialog(getBrowserURL(), "_blank", opts); + let win = window.openDialog(getBrowserURL(), "_blank", opts, "about:blank"); let numConditions = 2; let check = function () { @@ -433,3 +433,19 @@ function waitForOnBeforeUnloadDialog(browser, callback) { }); }, true); } + +/** + * Overrides browser.js' OpenBrowserWindow() function to enforce an initial + * tab different from about:home to not hit the network. + */ +function OpenBrowserWindow(aOptions) { + let features = ""; + let url = "about:blank"; + + if (aOptions && aOptions.private || false) { + features = ",private"; + url = "about:privatebrowsing"; + } + + return openDialog(getBrowserURL(), "", "chrome,all,dialog=no" + features, url); +}