Bug 350675: fix the searchbar's value setter to behave correctly (gray text was being removed incorrectly, setting to a non-empty value didn't remove the gray styling), r=mano

This commit is contained in:
gavin@gavinsharp.com 2007-10-02 20:35:34 -07:00
parent e3584e84ab
commit 8f958cf715

View File

@ -158,7 +158,7 @@ Sanitizer.prototype = {
while (windows.hasMoreElements()) {
var searchBar = windows.getNext().document.getElementById("searchbar");
if (searchBar) {
searchBar.textbox.value = "";
searchBar.value = "";
searchBar.textbox.editor.enableUndo(false);
searchBar.textbox.editor.enableUndo(true);
}