import "sbISecurityMixin.idl";
Public Member Functions | |
nsIURI | getCodebase () |
Gets the URI for the current location. | |
boolean | getPermissionForScopedNameWrapper (in AString aRemotePermCategory) |
Get the permissions for a category. | |
Public Attributes | |
attribute nsIDOMDocument | notificationDocument |
the DOM document to send notification events to |
Implemented by objects that provide the nsISecurityCheckedComponent functionality to allow other classes to aggregate (or compose) that functionality in without implementing it directly.
Definition at line 53 of file sbISecurityMixin.idl.
nsIURI sbISecurityMixin::getCodebase | ( | ) |
Gets the URI for the current location.
Can return NS_OK and a null URI. Needs to do so to allow security checks to succeed when called from native code.
aSiteURI | - The URI of the subject principal, basically the calling page. It is pulled from the JS stack. This will be null if the security check originated from native code and not an access on a web page. |
boolean sbISecurityMixin::getPermissionForScopedNameWrapper | ( | in AString | aRemotePermCategory | ) |
Get the permissions for a category.
aRemotePermCategory | - String representation of the category to check. "Control Playback" "Read Current" "Read Library" "Add Media" "Create Medialists" | |
_retval | - True if site has permissions in category, False if site does not have permissions in category. |