Skip to content

Commit

Permalink
Bug 752529 - workers shouldn't use string origins as null principals …
Browse files Browse the repository at this point in the history
…don't have them. Part 1 - nsPrincipal IDL changes (r=bz)
  • Loading branch information
Ian Melven committed Jan 8, 2013
1 parent f6fff8d commit e1ae879
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion caps/idl/nsIPrincipal.idl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ interface nsIContentSecurityPolicy;
[ptr] native JSPrincipals(JSPrincipals);
[ptr] native PrincipalArray(nsTArray<nsCOMPtr<nsIPrincipal> >);

[scriptable, builtinclass, uuid(011966C0-8564-438D-B37A-08D7E1195E5A)]
[scriptable, builtinclass, uuid(dbda8bb0-3023-4aec-ad98-8e9931a29d70)]
interface nsIPrincipal : nsISerializable
{
/**
Expand Down Expand Up @@ -153,6 +153,13 @@ interface nsIPrincipal : nsISerializable
*/
readonly attribute AUTF8String extendedOrigin;

/**
* The base domain of the codebase URI to which this principal pertains
* (generally the document URI), handling null principals and
* non-hierarchical schemes correctly.
*/
readonly attribute ACString baseDomain;

const short APP_STATUS_NOT_INSTALLED = 0;
const short APP_STATUS_INSTALLED = 1;
const short APP_STATUS_PRIVILEGED = 2;
Expand Down

0 comments on commit e1ae879

Please sign in to comment.