WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

@mozilla.org/cookie/permission;1

This component implements the following interfaces:

Constants

NsCookieAccess values
nsCookieAccess nsICookiePermission.ACCESS_DEFAULT = 0
nsCookieAccess nsICookiePermission.ACCESS_ALLOW = 1
nsCookieAccess nsICookiePermission.ACCESS_DENY = 2
Additional values for nsCookieAccess, which are not directly used by any methods on this interface, but are nevertheless convenient to define here. these may be relocated somewhere else if we ever consider freezing this interface.
nsCookieAccess nsICookiePermission.ACCESS_SESSION = 8

Methods

InterfaceMethod
nsICookiePermission nsCookieAccess canAccess ( nsIURI URI , nsIURI firstURI , nsIChannel channel )
nsICookiePermission PRBool canSetCookie ( nsIURI URI , nsIChannel channel , nsICookie2 cookie , inout PRBool isSession , inout PRInt64 expiry )
nsICookiePermission void setAccess ( nsIURI URI , nsCookieAccess access )

Reference documentation is generated from Mozilla's source.