mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backed out changeset af969bbd0b13 (bug 1027084) for bc1 test bustage on a CLOSED TREE
This commit is contained in:
parent
6884be1844
commit
745c14b640
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user