Fix for clearing saved form data using Clear Private Data (bug 333591). Patch by pamg, r+b181=me
authorbryner@brianryner.com
Tue, 02 Oct 2007 20:35:32 -0700
changeset 6582 99ad9260589eee98e8951aeb0cdefe8b7f698736
parent 6581 932a73dcca777e0da359c095dc767300001a0d29
child 6583 61615ac809dcd82e3531d50dd491875bd7b9d6fd
push idunknown
push userunknown
push dateunknown
bugs333591
milestone1.9a9pre
Fix for clearing saved form data using Clear Private Data (bug 333591). Patch by pamg, r+b181=me
browser/modules/Sanitizer.jsm
--- 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();
       },