Bug 614313 - Find arrows are not updated correctly [r=mfinkle]

This commit is contained in:
Vivien Nicolas 2010-11-23 19:53:29 +01:00
parent 11109311d4
commit 8fdfcdaa16
2 changed files with 8 additions and 6 deletions

View File

@ -1766,13 +1766,12 @@ var FindHelperUI = {
},
search: function findHelperSearch(aValue) {
// Don't bother searching if the value is empty
if (aValue == "") {
this.status = null;
return;
}
this.updateCommands(aValue);
// Don't bother searching if the value is empty
if (aValue == "")
return;
Browser.selectedBrowser.messageManager.sendAsyncMessage("FindAssist:Find", { searchString: aValue });
},

View File

@ -17,6 +17,9 @@ function test() {
ok(menu.hidden, "Site menu is closed");
ok(navigator.isActive, "Toolbar is open");
is(navigator._previousButton.disabled, true, "Previous button should be disabled");
is(navigator._nextButton.disabled, true, "Previous button should be disabled");
EventUtils.synthesizeKey("VK_ESCAPE", {}, window);
ok(menu.hidden, "Site menu is closed");
ok(!navigator.isActive, "Toolbar is closed");