The nsICookiePromptService
interface is to open a dialog to ask to permission to accept the cookie.
Inherits from: nsISupports
long cookieDialog(in |
Constant | Value | Description |
DENY_COOKIE | 0 | Holds the value for a denying the cookie. |
ACCEPT_COOKIE | 1 | Holds the value for accepting the cookie. |
ACCEPT_SESSION_COOKIE | 2 | Holds the value for accepting the session cookie. |
Opens a dialog that asks for permission to accept a cookie.
long cookieDialog( in nsIDOMWindow parent, in nsICookie cookie, in ACString hostname, in long cookiesFromHost, in boolean changingCookie, out boolean rememberDecision );
parent
cookie
hostname
cookiesFromHost
changingCookie
rememberDecision
Returns 0
for denying a cookie, 1
for accepting a cookie, and 2
for accepting cookie for the current session only.