Use Services.jsm
This commit is contained in:
parent
c5bb7ec8ad
commit
153f271479
@ -1132,8 +1132,9 @@ catch(e) {
|
|||||||
if (!normalizedURI)
|
if (!normalizedURI)
|
||||||
return;
|
return;
|
||||||
let sourceDoc = session.sourceDocument;
|
let sourceDoc = session.sourceDocument;
|
||||||
let principal = sourceDoc ? sourceDoc.nodePrincipal
|
let principal = sourceDoc ?
|
||||||
: SecMan.getSimpleCodebasePrincipal(this.treeStyleTab.IOService.newURI("file:///", null, null));
|
sourceDoc.nodePrincipal :
|
||||||
|
SecMan.getSimpleCodebasePrincipal(Services.io.newURI('file:///', null, null)) ;
|
||||||
try {
|
try {
|
||||||
SecMan.checkLoadURIStrWithPrincipal(principal, normalizedURI.spec, Ci.nsIScriptSecurityManager.STANDARD);
|
SecMan.checkLoadURIStrWithPrincipal(principal, normalizedURI.spec, Ci.nsIScriptSecurityManager.STANDARD);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user