tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

nsICookiePermission.idl (1102B)


      1 /* This Source Code Form is subject to the terms of the Mozilla Public
      2 * License, v. 2.0. If a copy of the MPL was not distributed with this
      3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      4 
      5 #include "nsISupports.idl"
      6 
      7 typedef long nsCookieAccess;
      8 
      9 /**
     10 * An interface to test for cookie permissions
     11 */
     12 [scriptable, uuid(11ddd4ed-8f5b-40b3-b2a0-27c20ea1c88d)]
     13 interface nsICookiePermission : nsISupports
     14 {
     15  /**
     16   * nsCookieAccess values
     17   */
     18  const nsCookieAccess ACCESS_DEFAULT = 0;
     19  const nsCookieAccess ACCESS_ALLOW   = 1;
     20  const nsCookieAccess ACCESS_DENY    = 2;
     21 
     22  /**
     23   * additional values for nsCookieAccess which may not match
     24   * nsIPermissionManager. Keep 3-7 available to allow nsIPermissionManager to
     25   * add values without colliding. ACCESS_SESSION is not directly returned by
     26   * any methods on this interface.
     27   */
     28  const nsCookieAccess ACCESS_SESSION = 8;
     29 
     30  /**
     31   * Don't use values 9 and 10! They used to be ACCESS_ALLOW_FIRST_PARTY_ONLY
     32   * and ACCESS_LIMIT_THIRD_PARTY, now removed, but maybe still stored in some
     33   * ancient user profiles.
     34   */
     35 };