зеркало из https://github.com/mozilla/pjs.git
backing out last patch until it is decided how error page favicons will be
implemented
This commit is contained in:
Родитель
12a428e236
Коммит
7ca3cefa59
|
@ -705,13 +705,8 @@
|
|||
Components.interfaces.nsIScriptSecurityManager;
|
||||
|
||||
try {
|
||||
// error pages can load their favicon
|
||||
// to be on the safe side, only allow chrome:// favicons
|
||||
const aboutNeterr = "about:neterror?";
|
||||
if (origURI.spec.substr(0, aboutNeterr.length) != aboutNeterr ||
|
||||
!uri.schemeIs("chrome"))
|
||||
secMan.checkLoadURI(origURI, uri,
|
||||
nsIScriptSecMan.DISALLOW_SCRIPT);
|
||||
secMan.checkLoadURI(origURI, uri,
|
||||
nsIScriptSecMan.DISALLOW_SCRIPT);
|
||||
} catch(e) {
|
||||
return;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче