toolkit/content/aboutNetworking.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 <!-- This Source Code Form is subject to the terms of the Mozilla Public
     3    - License, v. 2.0. If a copy of the MPL was not distributed with this
     4    - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
     7 <!DOCTYPE html [
     8 <!ENTITY % htmlDTD PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd"> %htmlDTD;
     9 <!ENTITY % globalDTD SYSTEM "chrome://global/locale/global.dtd"> %globalDTD;
    10 <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd"> %brandDTD;
    11 <!ENTITY % networkingDTD SYSTEM "chrome://global/locale/aboutNetworking.dtd"> %networkingDTD;
    12 ]>
    14 <html xmlns="http://www.w3.org/1999/xhtml">
    15     <head>
    16         <title>&aboutNetworking.title;</title>
    17         <link rel="stylesheet" href="chrome://global/skin/about.css" type="text/css" />
    18         <link rel="stylesheet" href="chrome://mozapps/skin/aboutNetworking.css" type="text/css" />
    19         <script type="application/javascript;version=1.7" src="chrome://global/content/aboutNetworking.js" />
    20     </head>
    21     <body id="body">
    22         <div id="warning_message" class="warningBackground">
    23             <div class="warningMessage">
    24                 &aboutNetworking.warning; <br/> <br/>
    25                 <label><input id="warncheck" type="checkbox" checked="yes" />&aboutNetworking.showNextTime;</label> <br/> <br/>
    26                 <button id="confpref">&aboutNetworking.ok;</button>
    27             </div>
    28         </div>
    29         <div id="menu">
    30             <button class="selected" value="http">&aboutNetworking.http;</button>
    31             <button value="sockets">&aboutNetworking.sockets;</button>
    32             <button value="dns">&aboutNetworking.dns;</button>
    33             <button value="websockets">&aboutNetworking.websockets;</button>
    34         </div>
    35         <div id="refreshdiv">
    36             <button id="refreshButton">&aboutNetworking.refresh;</button>
    37             <input id="autorefcheck" type="checkbox" name="Autorefresh" />&aboutNetworking.autoRefresh;
    38         </div>
    40         <div id="http" class="tab active">
    41             <table border="1" width="100%">
    42                 <thead>
    43                     <tr>
    44                         <th>&aboutNetworking.hostname;</th>
    45                         <th>&aboutNetworking.port;</th>
    46                         <th>&aboutNetworking.spdy;</th>
    47                         <th>&aboutNetworking.ssl;</th>
    48                         <th>&aboutNetworking.active;</th>
    49                         <th>&aboutNetworking.idle;</th>
    50                     </tr>
    51                 </thead>
    52                 <tbody id="http_content" />
    53             </table>
    54         </div>
    56         <div id="sockets" class="tab">
    57             <table border="1" width="100%">
    58                 <thead>
    59                     <tr>
    60                         <th>&aboutNetworking.host;</th>
    61                         <th>&aboutNetworking.port;</th>
    62                         <th>&aboutNetworking.tcp;</th>
    63                         <th>&aboutNetworking.active;</th>
    64                         <th>&aboutNetworking.sent;</th>
    65                         <th>&aboutNetworking.received;</th>
    66                     </tr>
    67                 </thead>
    68                 <tbody id="sockets_content" />
    69             </table>
    70         </div>
    72         <div id="dns" class="tab">
    73             <table border="1" width="100%">
    74                 <thead>
    75                     <tr>
    76                         <th>&aboutNetworking.hostname;</th>
    77                         <th>&aboutNetworking.family;</th>
    78                         <th>&aboutNetworking.addresses;</th>
    79                         <th>&aboutNetworking.expires;</th>
    80                     </tr>
    81                 </thead>
    82                 <tbody id="dns_content" />
    83             </table>
    84         </div>
    86         <div id="websockets" class="tab">
    87             <table border="1" width="100%">
    88                 <thead>
    89                     <tr>
    90                         <th>&aboutNetworking.hostname;</th>
    91                         <th>&aboutNetworking.ssl;</th>
    92                         <th>&aboutNetworking.messagesSent;</th>
    93                         <th>&aboutNetworking.messagesReceived;</th>
    94                         <th>&aboutNetworking.bytesSent;</th>
    95                         <th>&aboutNetworking.bytesReceived;</th>
    96                     </tr>
    97                 </thead>
    98                 <tbody id="websockets_content" />
    99             </table>
   100         </div>
   101     </body>
   102 </html>

mercurial