зеркало из https://github.com/mozilla/gecko-dev.git
fix for #14438
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:
Родитель
50c44ebef0
Коммит
0d1ef6d630
|
@ -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";
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче