зеркало из https://github.com/mozilla/pjs.git
use try and catch. history.SetPageTitle() is failing. this exception is now. I think its related to bug #11489
This commit is contained in:
Родитель
ec3bdaed84
Коммит
472a576aae
|
@ -35,7 +35,12 @@
|
|||
|
||||
var history = Components.classes["component://netscape/browser/global-history"].getService();
|
||||
if (history) history = history.QueryInterface(Components.interfaces.nsIGlobalHistory);
|
||||
if (history) history.SetPageTitle(window.content.location.href, window.content.document.title);
|
||||
try {
|
||||
if (history) history.SetPageTitle(window.content.location.href, window.content.document.title);
|
||||
}
|
||||
catch (ex) {
|
||||
dump("failed to set the page title.\n");
|
||||
}
|
||||
}
|
||||
|
||||
function UpdateBookmarksLastVisitiedDate(event)
|
||||
|
|
|
@ -35,7 +35,12 @@
|
|||
|
||||
var history = Components.classes["component://netscape/browser/global-history"].getService();
|
||||
if (history) history = history.QueryInterface(Components.interfaces.nsIGlobalHistory);
|
||||
if (history) history.SetPageTitle(window.content.location.href, window.content.document.title);
|
||||
try {
|
||||
if (history) history.SetPageTitle(window.content.location.href, window.content.document.title);
|
||||
}
|
||||
catch (ex) {
|
||||
dump("failed to set the page title.\n");
|
||||
}
|
||||
}
|
||||
|
||||
function UpdateBookmarksLastVisitiedDate(event)
|
||||
|
|
Загрузка…
Ссылка в новой задаче