Bug 463474 - Make sanitizer's searchbar clearing code a bit cleaner; r=gavin a191=beltzner

This commit is contained in:
Ehsan Akhgari 2008-11-28 12:51:16 -08:00
parent 2dce35049b
commit 6e6796cce2

View File

@ -222,10 +222,8 @@ Sanitizer.prototype = {
var windows = windowManager.getEnumerator("navigator:browser");
while (windows.hasMoreElements()) {
var searchBar = windows.getNext().document.getElementById("searchbar");
if (searchBar) {
searchBar.value = "";
searchBar.textbox.editor.transactionManager.clear();
}
if (searchBar)
searchBar.textbox.reset();
}
var formHistory = Components.classes["@mozilla.org/satchel/form-history;1"]