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