Fix a comment in browser.js (the FindBar - a tab vs the chrome window's context)

Issue #430
This commit is contained in:
janekptacijarabaci 2018-06-06 18:58:12 +02:00 committed by Roy Tam
commit 829ce72d6d

View file

@ -365,8 +365,9 @@ var gFindBarSettings = {
receiveMessage(aMessage) {
switch (aMessage.name) {
case this.messageName:
// If the find bar for this tab is not yet alive, only initialize
// it if there's a possibility FindAsYouType will be used.
// If the find bar for chrome window's context is not yet alive,
// only initialize it if there's a possibility FindAsYouType
// will be used.
// There's no point in doing it for most random keypresses.
if (!gFindBarInitialized && aMessage.data.shouldFastFind) {
let shouldFastFind = this.findAsYouType;