Bug 619800 - Enable scriptability for nsIPrincipal methods. r+sr+a=bz.

This commit is contained in:
Asaf Romano 2010-12-22 15:58:22 +02:00
Родитель aa32e5f375
Коммит a3601eb64c
1 изменённых файлов: 7 добавлений и 9 удалений

Просмотреть файл

@ -75,11 +75,9 @@ interface nsIPrincipal : nsISerializable
* explicitly granted or denied by a pref. isTrusted is a boolean that
* indicates whether this is a codebaseTrusted certificate.
*/
[noscript] void getPreferences(out string prefBranch, out string id,
out string subjectName,
out string grantedList,
out string deniedList,
out boolean isTrusted);
void getPreferences(out string prefBranch, out string id,
out string subjectName, out string grantedList,
out string deniedList, out boolean isTrusted);
/**
* Returns whether the other principal is equivalent to this principal.
@ -133,7 +131,7 @@ interface nsIPrincipal : nsISerializable
* The codebase URI to which this principal pertains. This is
* generally the document URI.
*/
[noscript] readonly attribute nsIURI URI;
readonly attribute nsIURI URI;
/**
* The domain URI to which this principal pertains.
@ -149,7 +147,7 @@ interface nsIPrincipal : nsISerializable
// XXXcaa this should probably be turned into an nsIURI.
// The system principal's origin should be some caps namespace
// with a chrome URI. All of chrome should probably be the same.
[noscript] readonly attribute string origin;
readonly attribute string origin;
/**
* Whether this principal is associated with a certificate.
@ -201,7 +199,7 @@ interface nsIPrincipal : nsISerializable
* sure what the immediate benefit would be, but I think the setup could
* make some code (e.g. MaybeDowngradeToCodebase) clearer.
*/
[noscript] boolean subsumes(in nsIPrincipal other);
boolean subsumes(in nsIPrincipal other);
/**
* Checks whether this principal is allowed to load the network resource
@ -224,7 +222,7 @@ interface nsIPrincipal : nsISerializable
* if the load is not allowed.
* @throws NS_ERROR_DOM_BAD_URI if the load is not allowed.
*/
[noscript] void checkMayLoad(in nsIURI uri, in boolean report);
void checkMayLoad(in nsIURI uri, in boolean report);
/**
* The subject name for the certificate. This actually identifies the