diff --git a/modules/tabbarDNDObserver.js b/modules/tabbarDNDObserver.js index 46d8be77..8151309d 100644 --- a/modules/tabbarDNDObserver.js +++ b/modules/tabbarDNDObserver.js @@ -1132,8 +1132,9 @@ catch(e) { if (!normalizedURI) return; let sourceDoc = session.sourceDocument; - let principal = sourceDoc ? sourceDoc.nodePrincipal - : SecMan.getSimpleCodebasePrincipal(this.treeStyleTab.IOService.newURI("file:///", null, null)); + let principal = sourceDoc ? + sourceDoc.nodePrincipal : + SecMan.getSimpleCodebasePrincipal(Services.io.newURI('file:///', null, null)) ; try { SecMan.checkLoadURIStrWithPrincipal(principal, normalizedURI.spec, Ci.nsIScriptSecurityManager.STANDARD); }