90337 - urlbar not responsive to enter key, r=hyatt, sr=blake, a=roc

This commit is contained in:
hewitt%netscape.com 2002-02-28 06:18:00 +00:00
Родитель 4ddb311b96
Коммит 0ae8888990
2 изменённых файлов: 14 добавлений и 3 удалений

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

@ -1424,7 +1424,13 @@ function handleURLBarRevert()
function handleURLBarCommand(aUserAction, aTriggeringEvent)
{
addToUrlbarHistory();
try {
addToUrlbarHistory();
} catch (ex) {
// Things may go wrong when adding url to session history,
// but don't let that interfere with the loading of the url.
}
BrowserLoadURL(aTriggeringEvent);
}

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

@ -200,8 +200,13 @@
<body><![CDATA[
var rdf = Components.classes["@mozilla.org/rdf/rdf-service;1"]
.getService(Components.interfaces.nsIRDFService);
var ds = rdf.GetDataSource("rdf:internetsearch");
try {
var ds = rdf.GetDataSource("rdf:internetsearch");
} catch (ex) {
// sometimes bad profiles cause this error, which horks the hold urlbar
return;
}
const kNC_Name = rdf.GetResource("http://home.netscape.com/NC-rdf#Name");
const kNC_Icon = rdf.GetResource("http://home.netscape.com/NC-rdf#Icon");
const kNC_searchBarUrl = rdf.GetResource("http://home.netscape.com/NC-rdf#actionBar");