use try and catch. history.SetPageTitle() is failing. this exception is now. I think its related to bug #11489

This commit is contained in:
sspitzer%netscape.com 1999-08-09 22:19:08 +00:00
Родитель ec3bdaed84
Коммит 472a576aae
2 изменённых файлов: 12 добавлений и 2 удалений

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

@ -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)