Bug 620666 - urlSecurityCheck should include the principal uri in its exception; r=dao

This commit is contained in:
Mano 2010-12-22 06:10:00 -05:00
Родитель faee71417a
Коммит 90af140600
1 изменённых файлов: 7 добавлений и 2 удалений

Просмотреть файл

@ -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.";
}
}