toolkit/mozapps/preferences/ocsp.xul

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

     1 <?xml version="1.0"?>
     3 <!-- This Source Code Form is subject to the terms of the Mozilla Public
     4    - License, v. 2.0. If a copy of the MPL was not distributed with this
     5    - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
     7 <?xml-stylesheet href="chrome://global/skin/"?>
     9 <!DOCTYPE prefwindow [
    10   <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd">
    11   <!ENTITY % ocspDTD SYSTEM "chrome://mozapps/locale/preferences/ocsp.dtd">
    12   %brandDTD;
    13   %ocspDTD;
    14 ]>
    16 <prefwindow id="OCSPDialog" type="child"
    17             xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
    18             dlgbuttons="accept,cancel"
    19             title="&ocspDialog.title;">
    21   <prefpane id="OCSPDialogPane" onpaneload="gOCSPDialog._updateUI(0)">
    22     <script type="application/javascript" src="chrome://mozapps/content/preferences/ocsp.js"/>
    24     <preferences>
    25       <preference id="security.OCSP.enabled"    name="security.OCSP.enabled"   type="int"/>
    26       <preference id="security.OCSP.require"    name="security.OCSP.require"   type="bool"/>
    27     </preferences>
    29     <checkbox id="enableOCSP"
    30               label="&enableOCSP.label;"
    31               accesskey="&enableOCSP.accesskey;"
    32               oncommand="gOCSPDialog._updateUI(1)"/>
    33     <checkbox id="requireOCSP"
    34               preference="security.OCSP.require"
    35               label="&requireOCSP.label;"
    36               accesskey="&requireOCSP.accesskey;"/>
    37   </prefpane>
    38 </prefwindow>

mercurial