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.

nsICookiePromptService

IID:72f8bb14-2810-4f38-8d0d-290c5401f54e
Inherits From:nsISupports

This interface is intended to be used as a service. To create an object implementing this interface:

var obj = Components.classes["@mozilla.org/embedcomp/cookieprompt-service;1"].
            getService(Components.interfaces.nsICookiePromptService);

This interface is implemented by the following components:


Constants

PRUint32 DENY_COOKIE = 0
PRUint32 ACCEPT_COOKIE = 1
PRUint32 ACCEPT_SESSION_COOKIE = 2

Methods

PRInt32 cookieDialog ( nsIDOMWindow parent , nsICookie cookie , ACString hostname , PRInt32 cookiesFromHost , PRBool changingCookie , out PRBool rememberDecision )

PRInt32 cookieDialog ( nsIDOMWindow parent , nsICookie cookie , ACString hostname , PRInt32 cookiesFromHost , PRBool changingCookie , out PRBool rememberDecision )

Arguments:
parent
cookie
hostname
cookiesFromHost
changingCookie
rememberDecision

Reference documentation is generated from Mozilla's source.

Copyright © 1999-2006 XULPlanet.com