Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2019
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. var extensionURL = "file:///Users/michaelkaply/Downloads/tabby_cat.xpi";
  2. var policyPrincipal = Services.scriptSecurityManager.createCodebasePrincipalFromOrigin("file:///Users/michaelkaply/Downloads/");
  3.  
  4. try {
  5. Services.scriptSecurityManager.checkLoadURIStrWithPrincipal(policyPrincipal, extensionURL);
  6. } catch (e) {
  7. alert("You shall not pass");
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement