Source code
Revision control
Copy as Markdown
Other Tools
/**
* Any copyright is dedicated to the Public Domain.
*/
export const PrincipalUtils = {
createPrincipal(url) {
const uri = Services.io.newURI(url);
return Services.scriptSecurityManager.createContentPrincipal(uri, {});
},
};