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
parent 4ddb311b96
commit 0ae8888990
2 changed files with 14 additions and 3 deletions

View File

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

View File

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