Use Services.jsm

This commit is contained in:
Piro / YUKI Hiroshi 2012-10-13 04:18:59 +09:00
parent c5bb7ec8ad
commit 153f271479

View File

@ -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);
} }