toolkit/content/aboutRights.xhtml

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" encoding="UTF-8"?>
     2 <!DOCTYPE html [
     3   <!ENTITY % htmlDTD PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
     4   %htmlDTD;
     5   <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd">
     6   %brandDTD;
     7   <!ENTITY % securityPrefsDTD SYSTEM "chrome://browser/locale/preferences/security.dtd">
     8   %securityPrefsDTD;
     9   <!ENTITY % aboutRightsDTD SYSTEM "chrome://global/locale/aboutRights.dtd">
    10   %aboutRightsDTD;
    11 ]>
    13 <!-- This Source Code Form is subject to the terms of the Mozilla Public
    14    - License, v. 2.0. If a copy of the MPL was not distributed with this
    15    - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
    17 <html xmlns="http://www.w3.org/1999/xhtml">
    19 <head>
    20   <title>&rights.pagetitle;</title>
    21   <link rel="stylesheet" href="chrome://global/skin/about.css" type="text/css"/>
    22 </head>
    24 <body id="your-rights" dir="&rights.locale-direction;" class="aboutPageWideContainer">
    26 <h1>&rights.intro-header;</h1>
    28 <p>&rights.intro;</p>
    30 <ul>
    31   <li>&rights.intro-point1a;<a href="http://www.mozilla.org/MPL/">&rights.intro-point1b;</a>&rights.intro-point1c;</li>
    32 <!-- Point 2 discusses Mozilla trademarks, and isn't needed when the build is unbranded.
    33    - Point 3 discusses privacy policy, unbranded builds get a placeholder (for the vendor to replace)
    34    - Point 4 discusses web service terms, unbranded builds gets a placeholder (for the vendor to replace) -->
    35   <li>&rights.intro-point2-a;<a href="http://www.mozilla.org/foundation/trademarks/policy.html">&rights.intro-point2-b;</a>&rights.intro-point2-c;</li>
    36   <li>&rights.intro-point2.5;</li>
    37   <li>&rights2.intro-point3a;<a href="https://www.mozilla.org/legal/privacy/firefox.html">&rights2.intro-point3b;</a>&rights.intro-point3c;</li>
    38   <li>&rights2.intro-point4a;<a href="about:rights#webservices" onclick="showServices();">&rights.intro-point4b;</a>&rights.intro-point4c;</li>
    39 </ul>
    41 <div id="webservices-container">
    42   <a name="webservices"/>
    43   <h3>&rights2.webservices-header;</h3>
    45   <p>&rights2.webservices-a;<a href="about:rights#disabling-webservices" onclick="showDisablingServices();">&rights2.webservices-b;</a>&rights3.webservices-c;</p>
    47   <div id="disabling-webservices-container" style="margin-left:40px;">
    48     <a name="disabling-webservices"/>
    49     <p><strong>&rights.safebrowsing-a;</strong>&rights.safebrowsing-b;</p>
    50     <ul>
    51       <li>&rights.safebrowsing-term1;</li>
    52       <li>&rights.safebrowsing-term2;</li>
    53       <li>&rights.safebrowsing-term3;</li>
    54       <li>&rights.safebrowsing-term4;</li>
    55     </ul>
    57     <p><strong>&rights.locationawarebrowsing-a;</strong>&rights.locationawarebrowsing-b;</p>
    58     <ul>
    59       <li>&rights.locationawarebrowsing-term1a;<code>&rights.locationawarebrowsing-term1b;</code></li>
    60       <li>&rights.locationawarebrowsing-term2;</li>
    61       <li>&rights.locationawarebrowsing-term3;</li>
    62       <li>&rights.locationawarebrowsing-term4;</li>
    63     </ul>
    64   </div>
    66   <ol>
    67 <!-- Terms only apply to official builds, unbranded builds get a placeholder. -->
    68     <li>&rights2.webservices-term1;</li>
    69     <li>&rights.webservices-term2;</li>
    70     <li>&rights2.webservices-term3;</li>
    71     <li><strong>&rights.webservices-term4;</strong></li>
    72     <li><strong>&rights.webservices-term5;</strong></li>
    73     <li>&rights.webservices-term6;</li>
    74     <li>&rights.webservices-term7;</li>
    75   </ol>
    76 </div>
    78 <script type="application/javascript"><![CDATA[
    79   var servicesDiv = document.getElementById("webservices-container");
    80   servicesDiv.style.display = "none";
    82   function showServices() {
    83     servicesDiv.style.display = "";
    84   }
    86   var disablingServicesDiv = document.getElementById("disabling-webservices-container");
    87   disablingServicesDiv.style.display = "none";
    89   function showDisablingServices() {
    90     disablingServicesDiv.style.display = "";
    91   }
    92 ]]></script>
    94 </body>
    95 </html>

mercurial