Backed out changeset af969bbd0b13 (bug 1027084) for bc1 test bustage on a CLOSED TREE

This commit is contained in:
Carsten "Tomcat" Book 2014-06-27 12:36:28 +02:00
parent 6884be1844
commit 745c14b640

View File

@ -73,7 +73,7 @@ function provideWindow(aCallback, aURL, aFeatures) {
});
}
let win = openDialog(getBrowserURL(), "", aFeatures || "chrome,all,dialog=no", aURL || "about:blank");
let win = openDialog(getBrowserURL(), "", aFeatures || "chrome,all,dialog=no", aURL);
whenWindowLoaded(win, function onWindowLoaded(aWin) {
if (!aURL) {
info("Loaded a blank window.");
@ -465,15 +465,7 @@ function closeAllButPrimaryWindow() {
* expected (e.g. reading a big session state from disk).
*/
function whenNewWindowLoaded(aOptions, aCallback) {
let features = "";
let url = "about:blank";
if (aOptions && aOptions.private || false) {
features = ",private";
url = "about:privatebrowsing";
}
let win = openDialog(getBrowserURL(), "", "chrome,all,dialog=no" + features, url);
let win = OpenBrowserWindow(aOptions);
whenDelayedStartupFinished(win, () => aCallback(win));
return win;
}