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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user