summaryrefslogtreecommitdiff
path: root/toolkit/components/global/content/aboutNetworking.xhtml
blob: 440ee78385897e393b7353dbb790403a24f19f41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
<?xml version="1.0" encoding="UTF-8"?>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
   - License, v. 2.0. If a copy of the MPL was not distributed with this
   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->


<!DOCTYPE html [
<!ENTITY % htmlDTD PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd"> %htmlDTD;
<!ENTITY % globalDTD SYSTEM "chrome://global/locale/global.dtd"> %globalDTD;
<!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd"> %brandDTD;
<!ENTITY % networkingDTD SYSTEM "chrome://global/locale/aboutNetworking.dtd"> %networkingDTD;
]>

<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>&aboutNetworking.title;</title>
        <link rel="stylesheet" href="chrome://mozapps/skin/aboutNetworking.css" type="text/css" />
        <script type="application/javascript;version=1.7" src="chrome://global/content/aboutNetworking.js" />
    </head>
    <body id="body">
        <div id="warning_message" class="warningBackground" hidden="true">
            <div class="container">
                <h1 class="title">&aboutNetworking.warning;</h1>
                <div class="toggle-container-with-text">
                    <input id="warncheck" type="checkbox" checked="yes" />
                    <label for="warncheck">&aboutNetworking.showNextTime;</label>
                </div>
                <div>
                    <button id="confpref" class="primary">&aboutNetworking.ok;</button>
                </div>
            </div>
        </div>
        <div id="categories">
            <div class="category" selected="true" value="http">
                <span class="category-name">&aboutNetworking.HTTP;</span>
            </div>
            <div class="category" value="sockets">
                <span class="category-name">&aboutNetworking.sockets;</span>
            </div>
            <div class="category" value="dns">
                <span class="category-name">&aboutNetworking.dns;</span>
            </div>
            <div class="category" value="websockets">
                <span class="category-name">&aboutNetworking.websockets;</span>
            </div>
            <hr></hr>
            <div class="category" value="dnslookuptool">
                <span class="category-name">&aboutNetworking.dnsLookup;</span>
            </div>
            <div class="category" value="logging">
                <span class="category-name">&aboutNetworking.logging;</span>
            </div>
        </div>
        <div class="main-content">
            <div class="header">
                <div id="sectionTitle" class="header-name">
                    &aboutNetworking.HTTP;
                </div>
                <div id="refreshDiv" class="toggle-container-with-text">
                    <button id="refreshButton">&aboutNetworking.refresh;</button>
                    <input id="autorefcheck" type="checkbox" name="Autorefresh" />
                    <label for="autorefcheck">&aboutNetworking.autoRefresh;</label>
                </div>
            </div>

          <div id="http" class="tab active">
              <table>
                  <thead>
                      <tr>
                          <th>&aboutNetworking.hostname;</th>
                          <th>&aboutNetworking.port;</th>
                          <th>&aboutNetworking.spdy;</th>
                          <th>&aboutNetworking.ssl;</th>
                          <th>&aboutNetworking.active;</th>
                          <th>&aboutNetworking.idle;</th>
                      </tr>
                  </thead>
                  <tbody id="http_content" />
              </table>
          </div>

          <div id="sockets" class="tab" hidden="true">
              <table>
                  <thead>
                      <tr>
                          <th>&aboutNetworking.host;</th>
                          <th>&aboutNetworking.port;</th>
                          <th>&aboutNetworking.tcp;</th>
                          <th>&aboutNetworking.active;</th>
                          <th>&aboutNetworking.sent;</th>
                          <th>&aboutNetworking.received;</th>
                      </tr>
                  </thead>
                  <tbody id="sockets_content" />
              </table>
          </div>

          <div id="dns" class="tab" hidden="true">
              <table>
                  <thead>
                      <tr>
                          <th>&aboutNetworking.hostname;</th>
                          <th>&aboutNetworking.family;</th>
                          <th>&aboutNetworking.addresses;</th>
                          <th>&aboutNetworking.expires;</th>
                      </tr>
                  </thead>
                  <tbody id="dns_content" />
              </table>
          </div>

          <div id="websockets" class="tab" hidden="true">
              <table>
                  <thead>
                      <tr>
                          <th>&aboutNetworking.hostname;</th>
                          <th>&aboutNetworking.ssl;</th>
                          <th>&aboutNetworking.messagesSent;</th>
                          <th>&aboutNetworking.messagesReceived;</th>
                          <th>&aboutNetworking.bytesSent;</th>
                          <th>&aboutNetworking.bytesReceived;</th>
                      </tr>
                  </thead>
                  <tbody id="websockets_content" />
              </table>
          </div>

          <div id="dnslookuptool" class="tab" hidden="true">
              &aboutNetworking.dnsDomain;: <input type="text" name="host" id="host"></input>
              <button id="dnsLookupButton">&aboutNetworking.dnsLookupButton;</button>
              <hr/>
              <table>
                  <thead>
                      <tr>
                          <th>&aboutNetworking.dnsLookupTableColumn;</th>
                      </tr>
                  </thead>
                  <tbody id="dnslookuptool_content" />
              </table>
          </div>

          <div id="logging" class="tab" hidden="true">
            <div>
              &aboutNetworking.logTutorial;
            </div>
            <br/>
            <div>
              <button id="start-logging-button"> &aboutNetworking.startLogging; </button>
              <button id="stop-logging-button"> &aboutNetworking.stopLogging; </button>
            </div>
            <br/>
            <br/>
            <div>
              &aboutNetworking.currentLogFile; <div id="current-log-file"></div><br/>
              <input type="text" name="log-file" id="log-file"></input>
              <button id="set-log-file-button"> &aboutNetworking.setLogFile; </button>
            </div>
            <div>
              &aboutNetworking.currentLogModules; <div id="current-log-modules"></div><br/>
              <input type="text" name="log-modules" id="log-modules" value="timestamp,sync,nsHttp:5,nsSocketTransport:5,nsStreamPump:5,nsHostResolver:5"></input>
              <button id="set-log-modules-button"> &aboutNetworking.setLogModules; </button>
            </div>
          </div>

        </div>
    </body>
</html>