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:
Родитель
0191864ef7
Коммит
a2c0fdf8e6
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче