Bug 334903: Seamonkey update page appears in window with no navigation or tabs. r+sr=Neil

This commit is contained in:
ajschult%verizon.net 2006-07-04 14:41:54 +00:00
Родитель b095903276
Коммит 5b79508993
1 изменённых файлов: 15 добавлений и 2 удалений

Просмотреть файл

@ -263,8 +263,21 @@ var nsUpdateDatasourceObserver =
// user wants update now so open new window
// (result => 0 is button0)
if (result == 0)
winWatcher.openWindow(winWatcher.activeWindow, updateInfo.URL,
"_blank", "", null);
{
var browserURL = "chrome://navigator/content/navigator.xul";
try {
browserURL = Components.classes["@mozilla.org/preferences-service;1"]
.getService(Components.interfaces.nsIPrefBranch)
.getCharPref("browser.chromeURL");
} catch (e) {
}
var argstring = Components.classes["@mozilla.org/supports-string;1"]
.createInstance(Components.interfaces.nsISupportsString);
argstring.data = updateInfo.URL;
winWatcher.openWindow(winWatcher.activeWindow, browserURL,
"_blank", "chrome,all,dialog=no", argstring);
}
// if "Don't ask again" was checked disable update notifications
if (checkVal.value)