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

git-svn-id: svn://10.0.0.236/trunk@115475 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
hewitt%netscape.com
2002-02-28 06:18:00 +00:00
parent cc630ddcfb
commit 034250f695
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");