Fix (to TODO): Findbar throws an error - "nsIPrefBranch.getBoolPref" is not exist in browser.js

Issue #138
This commit is contained in:
janekptacijarabaci 2018-04-13 16:40:28 +02:00 committed by Roy Tam
commit fdeebefb1f

View file

@ -3798,11 +3798,16 @@ var XULBrowserWindow = {
gFindBar.close();
}
// XXX
// See: https://github.com/MoonchildProductions/Pale-Moon/issues/364
// An actual preference: findbar.highlightAll
/*
if (!(gPrefService.getBoolPref("accessibility.typeaheadfind.highlightallremember") ||
gPrefService.getBoolPref("accessibility.typeaheadfind.highlightallbydefault"))) {
// fix bug 253793 - turn off highlight when page changes
gFindBar.getElement("highlight").checked = false;
}
*/
}
}
UpdateBackForwardCommands(gBrowser.webNavigation);