mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 11:26:09 +00:00
Bug 463474 - Make sanitizer's searchbar clearing code a bit cleaner; r=gavin a191=beltzner
This commit is contained in:
parent
2dce35049b
commit
6e6796cce2
@ -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"]
|
||||
|
Loading…
Reference in New Issue
Block a user