mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 14:45:29 +00:00
Bug 614313 - Find arrows are not updated correctly [r=mfinkle]
This commit is contained in:
parent
11109311d4
commit
8fdfcdaa16
@ -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 });
|
||||
},
|
||||
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user