mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-02 22:37:50 +00:00
Bug 264562 - Disable FAYT on about:blank / about:config. patch from Michael Clackler <mikeclackler@hotmail.com> and Jaime Mitchell <bugzilla@jaimem.org.uk>, r=mconnor, a=asa.
This commit is contained in:
parent
464b16c790
commit
5c48683e3e
@ -369,7 +369,13 @@ function shouldFastFind(evt)
|
||||
elt instanceof HTMLIsIndexElement)
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
// disable FAYT in about:config and about:blank to prevent FAYT opening
|
||||
// unexpectedly - to fix bugs 264562, 267150, 269712
|
||||
var url = getBrowser().selectedBrowser.webNavigation.currentURI.spec;
|
||||
if (url == "about:blank" || url == "about:config")
|
||||
return false;
|
||||
|
||||
var win = document.commandDispatcher.focusedWindow;
|
||||
if (win && win.document.designMode == "on")
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user