summaryrefslogtreecommitdiffstats
path: root/browser/components/preferences/dialogs/connection.xhtml
blob: 2a1a3c011511f066d080416bddfa077f871a0ed2 (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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
<?xml version="1.0"?>

<!-- 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/. -->

<window
  type="child"
  xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  xmlns:html="http://www.w3.org/1999/xhtml"
  data-l10n-id="connection-window2"
  data-l10n-attrs="title, style"
  persist="lastSelected"
  onload="gConnectionsDialog.checkForSystemProxy();"
>
  <dialog
    id="ConnectionsDialog"
    buttons="accept,cancel,help"
    helpTopic="prefs-connection-settings"
  >
    <!-- Used for extension-controlled lockdown message -->
    <linkset>
      <html:link rel="stylesheet" href="chrome://global/skin/global.css" />
      <html:link
        rel="stylesheet"
        href="chrome://browser/skin/preferences/preferences.css"
      />

      <html:link rel="localization" href="browser/preferences/connection.ftl" />
      <html:link
        rel="localization"
        href="browser/preferences/preferences.ftl"
      />
      <html:link rel="localization" href="branding/brand.ftl" />
    </linkset>

    <script src="chrome://browser/content/utilityOverlay.js" />
    <script src="chrome://global/content/preferencesBindings.js" />
    <script src="chrome://browser/content/preferences/extensionControlled.js" />

    <keyset>
      <key
        data-l10n-id="connection-close-key"
        modifiers="accel"
        oncommand="Preferences.close(event)"
      />
    </keyset>

    <script src="chrome://browser/content/preferences/dialogs/connection.js" />

    <hbox
      id="proxyExtensionContent"
      align="start"
      hidden="true"
      class="extension-controlled"
    >
      <description control="disableProxyExtension" flex="1" />
      <button
        id="disableProxyExtension"
        class="extension-controlled-button accessory-button"
        data-l10n-id="connection-disable-extension"
      />
    </hbox>

    <groupbox>
      <label><html:h2 data-l10n-id="connection-proxy-configure" /></label>

      <radiogroup id="networkProxyType" preference="network.proxy.type">
        <radio value="0" data-l10n-id="connection-proxy-option-no" />
        <radio value="4" data-l10n-id="connection-proxy-option-auto" />
        <radio
          value="5"
          data-l10n-id="connection-proxy-option-system"
          id="systemPref"
          hidden="true"
        />
        <radio value="1" data-l10n-id="connection-proxy-option-manual" />
        <box id="proxy-grid" class="indent" flex="1">
          <html:div class="proxy-grid-row">
            <hbox pack="end">
              <label
                data-l10n-id="connection-proxy-http"
                control="networkProxyHTTP"
              />
            </hbox>
            <hbox align="center">
              <html:input
                id="networkProxyHTTP"
                type="text"
                style="flex: 1"
                preference="network.proxy.http"
              />
              <label
                data-l10n-id="connection-proxy-http-port"
                control="networkProxyHTTP_Port"
              />
              <html:input
                id="networkProxyHTTP_Port"
                class="proxy-port-input"
                hidespinbuttons="true"
                type="number"
                min="0"
                max="65535"
                preference="network.proxy.http_port"
              />
            </hbox>
          </html:div>
          <html:div class="proxy-grid-row">
            <hbox />
            <hbox>
              <checkbox
                id="shareAllProxies"
                data-l10n-id="connection-proxy-https-sharing"
                preference="network.proxy.share_proxy_settings"
              />
            </hbox>
          </html:div>
          <html:div class="proxy-grid-row">
            <hbox pack="end">
              <label
                data-l10n-id="connection-proxy-https"
                control="networkProxySSL"
              />
            </hbox>
            <hbox align="center">
              <html:input
                id="networkProxySSL"
                type="text"
                style="flex: 1"
                preference="network.proxy.ssl"
              />
              <label
                data-l10n-id="connection-proxy-ssl-port"
                control="networkProxySSL_Port"
              />
              <html:input
                id="networkProxySSL_Port"
                class="proxy-port-input"
                hidespinbuttons="true"
                type="number"
                min="0"
                max="65535"
                size="5"
                preference="network.proxy.ssl_port"
              />
            </hbox>
          </html:div>
          <separator class="thin" />
          <html:div class="proxy-grid-row">
            <hbox pack="end">
              <label
                data-l10n-id="connection-proxy-socks"
                control="networkProxySOCKS"
              />
            </hbox>
            <hbox align="center">
              <html:input
                id="networkProxySOCKS"
                type="text"
                style="flex: 1"
                preference="network.proxy.socks"
              />
              <label
                data-l10n-id="connection-proxy-socks-port"
                control="networkProxySOCKS_Port"
              />
              <html:input
                id="networkProxySOCKS_Port"
                class="proxy-port-input"
                hidespinbuttons="true"
                type="number"
                min="0"
                max="65535"
                size="5"
                preference="network.proxy.socks_port"
              />
            </hbox>
          </html:div>
          <html:div class="proxy-grid-row">
            <spacer />
            <box pack="start">
              <radiogroup
                id="networkProxySOCKSVersion"
                orient="horizontal"
                preference="network.proxy.socks_version"
              >
                <radio
                  id="networkProxySOCKSVersion4"
                  value="4"
                  data-l10n-id="connection-proxy-socks4"
                />
                <radio
                  id="networkProxySOCKSVersion5"
                  value="5"
                  data-l10n-id="connection-proxy-socks5"
                />
              </radiogroup>
            </box>
          </html:div>
        </box>
        <radio value="2" data-l10n-id="connection-proxy-autotype" />
        <hbox class="indent" flex="1" align="center">
          <html:input
            id="networkProxyAutoconfigURL"
            type="text"
            style="flex: 1"
            preference="network.proxy.autoconfig_url"
            oninput="gConnectionsDialog.updateReloadButton();"
          />
          <button
            id="autoReload"
            data-l10n-id="connection-proxy-reload"
            oncommand="gConnectionsDialog.reloadPAC();"
            preference="pref.advanced.proxies.disable_button.reload"
          />
        </hbox>
      </radiogroup>
    </groupbox>
    <separator class="thin" />
    <label data-l10n-id="connection-proxy-noproxy" control="networkProxyNone" />
    <html:textarea
      id="networkProxyNone"
      preference="network.proxy.no_proxies_on"
      rows="2"
    />
    <label
      control="networkProxyNone"
      data-l10n-id="connection-proxy-noproxy-desc"
    />
    <label
      id="networkProxyNoneLocalhost"
      control="networkProxyNone"
      data-l10n-id="connection-proxy-noproxy-localhost-desc-2"
    />
    <separator class="thin" />
    <checkbox
      id="autologinProxy"
      data-l10n-id="connection-proxy-autologin-checkbox"
      preference="signon.autologin.proxy"
    />
    <checkbox
      id="networkProxySOCKSRemoteDNS"
      preference="network.proxy.socks_remote_dns"
      data-l10n-id="connection-proxy-socks-remote-dns"
    />
  </dialog>
</window>