Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var extensionURL = "file:///Users/michaelkaply/Downloads/tabby_cat.xpi";
- var policyPrincipal = Services.scriptSecurityManager.createCodebasePrincipalFromOrigin("file:///Users/michaelkaply/Downloads/");
- try {
- Services.scriptSecurityManager.checkLoadURIStrWithPrincipal(policyPrincipal, extensionURL);
- } catch (e) {
- alert("You shall not pass");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement