mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 13:25:37 +00:00
90337 - urlbar not responsive to enter key, r=hyatt, sr=blake, a=roc
This commit is contained in:
parent
4ddb311b96
commit
0ae8888990
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user