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:
Gavin Sharp 2011-03-28 18:59:26 -04:00
parent bc6d7f94b5
commit 9f847d3107

View File

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