tor-browser

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

nsIHttpsOnlyModePermission.idl (1218B)


      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 /**
      8 * HTTPS-Only/First permission types
      9 */
     10 [scriptable, uuid(73f4f039-d6ff-41a7-9eb3-00db57b0b7f4)]
     11 interface nsIHttpsOnlyModePermission : nsISupports
     12 {
     13  /**
     14   * nsIPermissionManager permission values
     15   */
     16  const uint32_t LOAD_INSECURE_DEFAULT = 0;
     17  const uint32_t LOAD_INSECURE_ALLOW   = 1;
     18  const uint32_t LOAD_INSECURE_BLOCK   = 2;
     19 
     20  /**
     21   * additional values which do not match
     22   * nsIPermissionManager. Keep space available to allow nsIPermissionManager to
     23   * add values without colliding. ACCESS_SESSION is not directly returned by
     24   * any methods on this interface.
     25   */
     26  const uint32_t LOAD_INSECURE_ALLOW_SESSION = 9;
     27  /**
     28    * While LOAD_INSECURE_ALLOW and LOAD_INSECURE_ALLOW_SESSION apply to both
     29    * HTTPS-Only and HTTPS-First, the following only applies to HTTPS-First.
     30    * It is only used for exceptions which are set automatically and should
     31    * therefore not apply to HTTPS-Only.
     32   */
     33  const uint32_t HTTPSFIRST_LOAD_INSECURE_ALLOW = 10;
     34 };