Fix for clearing saved form data using Clear Private Data (
bug 333591). Patch by pamg, r+b181=me
--- a/browser/modules/Sanitizer.jsm
+++ b/browser/modules/Sanitizer.jsm
@@ -153,19 +153,19 @@ Sanitizer.prototype = {
{
//Clear undo history of all searchBars
var windowManager = Components.classes['@mozilla.org/appshell/window-mediator;1'].getService();
var windowManagerInterface = windowManager.QueryInterface(Components.interfaces.nsIWindowMediator);
var windows = windowManagerInterface.getEnumerator("navigator:browser");
while (windows.hasMoreElements()) {
var searchBar = windows.getNext().document.getElementById("searchbar");
if (searchBar) {
- searchBar.mTextbox.value = "";
- searchBar.mTextbox.editor.enableUndo(false);
- searchBar.mTextbox.editor.enableUndo(true);
+ searchBar.textbox.value = "";
+ searchBar.textbox.editor.enableUndo(false);
+ searchBar.textbox.editor.enableUndo(true);
}
}
var formHistory = Components.classes["@mozilla.org/satchel/form-history;1"]
.getService(Components.interfaces.nsIFormHistory2);
formHistory.removeAllEntries();
},