зеркало из https://github.com/mozilla/gecko-dev.git
Bug 620666 - urlSecurityCheck should include the principal uri in its exception; r=dao
This commit is contained in:
Родитель
faee71417a
Коммит
90af140600
|
@ -88,8 +88,13 @@ function urlSecurityCheck(aURL, aPrincipal, aFlags)
|
||||||
else
|
else
|
||||||
secMan.checkLoadURIStrWithPrincipal(aPrincipal, aURL, aFlags);
|
secMan.checkLoadURIStrWithPrincipal(aPrincipal, aURL, aFlags);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
// XXXmano: dump the principal url here too
|
let principalStr = "";
|
||||||
throw "Load of " + aURL + " denied.";
|
try {
|
||||||
|
principalStr = " from " + aPrincipal.URI.spec;
|
||||||
|
}
|
||||||
|
catch(e2) { }
|
||||||
|
|
||||||
|
throw "Load of " + aURL + principalStr + " denied.";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче