if you have user_pref("browser.startup.page", 2); in your prefs.js file,
[meaning open browser with last page visted] and you click on the browser button
in the task bar from messgener, it will fail to open.
This commit is contained in:
sspitzer%netscape.com 1999-09-21 08:39:20 +00:00
Родитель 50c44ebef0
Коммит 0d1ef6d630
1 изменённых файлов: 9 добавлений и 11 удалений

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

@ -99,17 +99,15 @@ function toOpenWindowByType( inType, uri )
}
break;
case 2:
var history = Components.classes['component://netscape/browser/global-history'];
if (history) {
history = history.getService();
}
if (history) {
history = history.QueryInterface(Components.interfaces.nsIGlobalHistory);
}
if (history) {
startpage = history.GetLastPageVisted();
}
break;
try {
var history = Components.classes["component://netscape/browser/global-history"].getService();
history = history.QueryInterface(Components.interfaces.nsIGlobalHistory);
startpage = history.GetLastPageVisted();
}
catch (ex) {
dump(ex +"\n");
}
break;
default:
startpage = "about:blank";
}