mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-27 12:15:33 +00:00
Bug 553577: don't let failures to save the search to form history prevent the search bar from working, r=dao
This commit is contained in:
parent
d6ea08bcf8
commit
37f27086f5
@ -474,8 +474,12 @@
|
||||
|
||||
// Save the current value in the form history
|
||||
if (textValue) {
|
||||
textBox._formHistSvc.addEntry(textBox.getAttribute("autocompletesearchparam"),
|
||||
textValue);
|
||||
try {
|
||||
textBox._formHistSvc.addEntry(textBox.getAttribute("autocompletesearchparam"),
|
||||
textValue);
|
||||
} catch (ex) {
|
||||
Components.utils.reportError("Saving search to form history failed: " + ex);
|
||||
}
|
||||
}
|
||||
|
||||
this.doSearch(textValue, where);
|
||||
|
Loading…
Reference in New Issue
Block a user