Bug 470455 - test_database_sync_embed_visits.js leaks, r=sdwilsh
[wine-gecko.git] / browser / components / preferences / connection.xul
blob53d1417c74e968286d551d4d6a5fa520e4f25c30
1 <?xml version="1.0"?>
3 # -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
4 # ***** BEGIN LICENSE BLOCK *****
5 # Version: MPL 1.1/GPL 2.0/LGPL 2.1
7 # The contents of this file are subject to the Mozilla Public License Version
8 # 1.1 (the "License"); you may not use this file except in compliance with
9 # the License. You may obtain a copy of the License at
10 # http://www.mozilla.org/MPL/
12 # Software distributed under the License is distributed on an "AS IS" basis,
13 # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
14 # for the specific language governing rights and limitations under the
15 # License.
17 # The Original Code is the Firefox Preferences System.
19 # The Initial Developer of the Original Code is
20 # Ben Goodger.
21 # Portions created by the Initial Developer are Copyright (C) 2005
22 # the Initial Developer. All Rights Reserved.
24 # Contributor(s):
25 # Ben Goodger <ben@mozilla.org>
27 # Alternatively, the contents of this file may be used under the terms of
28 # either the GNU General Public License Version 2 or later (the "GPL"), or
29 # the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
30 # in which case the provisions of the GPL or the LGPL are applicable instead
31 # of those above. If you wish to allow use of your version of this file only
32 # under the terms of either the GPL or the LGPL, and not to allow others to
33 # use your version of this file under the terms of the MPL, indicate your
34 # decision by deleting the provisions above and replace them with the notice
35 # and other provisions required by the GPL or the LGPL. If you do not delete
36 # the provisions above, a recipient may use your version of this file under
37 # the terms of any one of the MPL, the GPL or the LGPL.
39 # ***** END LICENSE BLOCK *****
41 <!DOCTYPE prefwindow SYSTEM "chrome://browser/locale/preferences/connection.dtd">
43 <?xml-stylesheet href="chrome://global/skin/"?>
45 <prefwindow id="ConnectionsDialog" type="child"
46 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
47 title="&connectionsDialog.title;"
48 dlgbuttons="accept,cancel,help"
49 onbeforeaccept="return gConnectionsDialog.beforeAccept();"
50 onload="gConnectionsDialog.checkForSystemProxy();"
51 ondialoghelp="openPrefsHelp()"
52 #ifdef XP_MACOSX
53 style="width: &window.macWidth; !important;">
54 #else
55 style="width: &window.width; !important;">
56 #endif
58 <script type="application/javascript" src="chrome://browser/content/utilityOverlay.js"/>
60 <prefpane id="ConnectionsDialogPane"
61 helpTopic="prefs-connection-settings">
63 <preferences>
64 <preference id="network.proxy.type" name="network.proxy.type" type="int" onchange="gConnectionsDialog.proxyTypeChanged();"/>
65 <preference id="network.proxy.http" name="network.proxy.http" type="string"/>
66 <preference id="network.proxy.http_port" name="network.proxy.http_port" type="int"/>
67 <preference id="network.proxy.ftp" name="network.proxy.ftp" type="string"/>
68 <preference id="network.proxy.ftp_port" name="network.proxy.ftp_port" type="int"/>
69 <preference id="network.proxy.ssl" name="network.proxy.ssl" type="string"/>
70 <preference id="network.proxy.ssl_port" name="network.proxy.ssl_port" type="int"/>
71 <preference id="network.proxy.socks" name="network.proxy.socks" type="string"/>
72 <preference id="network.proxy.socks_port" name="network.proxy.socks_port" type="int"/>
73 <preference id="network.proxy.gopher" name="network.proxy.gopher" type="string"/>
74 <preference id="network.proxy.gopher_port" name="network.proxy.gopher_port" type="int"/>
75 <preference id="network.proxy.socks_version" name="network.proxy.socks_version" type="int"/>
76 <preference id="network.proxy.no_proxies_on" name="network.proxy.no_proxies_on" type="string"/>
77 <preference id="network.proxy.autoconfig_url" name="network.proxy.autoconfig_url" type="string"/>
78 <preference id="network.proxy.share_proxy_settings"
79 name="network.proxy.share_proxy_settings"
80 type="bool"/>
82 <preference id="pref.advanced.proxies.disable_button.reload"
83 name="pref.advanced.proxies.disable_button.reload"
84 type="bool"/>
86 <preference id="network.proxy.backup.ftp" name="network.proxy.backup.ftp" type="string"/>
87 <preference id="network.proxy.backup.ftp_port" name="network.proxy.backup.ftp_port" type="int"/>
88 <preference id="network.proxy.backup.ssl" name="network.proxy.backup.ssl" type="string"/>
89 <preference id="network.proxy.backup.ssl_port" name="network.proxy.backup.ssl_port" type="int"/>
90 <preference id="network.proxy.backup.socks" name="network.proxy.backup.socks" type="string"/>
91 <preference id="network.proxy.backup.socks_port" name="network.proxy.backup.socks_port" type="int"/>
92 <preference id="network.proxy.backup.gopher" name="network.proxy.backup.gopher" type="string"/>
93 <preference id="network.proxy.backup.gopher_port" name="network.proxy.backup.gopher_port" type="int"/>
94 </preferences>
96 <script type="application/x-javascript" src="chrome://browser/content/preferences/connection.js"/>
98 <stringbundle id="preferencesBundle" src="chrome://browser/locale/preferences/preferences.properties"/>
100 <groupbox>
101 <caption label="&proxyTitle.label;"/>
103 <radiogroup id="networkProxyType" preference="network.proxy.type"
104 onsyncfrompreference="return gConnectionsDialog.readProxyType();">
105 <radio value="0" label="&noProxyTypeRadio.label;" accesskey="&noProxyTypeRadio.accesskey;"/>
106 <radio value="4" label="&WPADTypeRadio.label;" accesskey="&WPADTypeRadio.accesskey;"/>
107 <radio value="5" label="&systemTypeRadio.label;" accesskey="&systemTypeRadio.accesskey;" id="systemPref" hidden="true"/>
108 <radio value="1" label="&manualTypeRadio.label;" accesskey="&manualTypeRadio.accesskey;"/>
109 <grid class="indent" flex="1">
110 <columns>
111 <column/>
112 <column flex="1"/>
113 </columns>
114 <rows>
115 <row align="center">
116 <hbox pack="end">
117 <label value="&http.label;" accesskey="&http.accesskey;" control="networkProxyHTTP"/>
118 </hbox>
119 <hbox align="center">
120 <textbox id="networkProxyHTTP" flex="1"
121 preference="network.proxy.http" onsyncfrompreference="return gConnectionsDialog.readHTTPProxyServer();"/>
122 <label value="&port.label;" accesskey="&HTTPport.accesskey;" control="networkProxyHTTP_Port"/>
123 <textbox id="networkProxyHTTP_Port" type="number" max="65535" size="5"
124 preference="network.proxy.http_port" onsyncfrompreference="return gConnectionsDialog.readHTTPProxyPort();"/>
125 </hbox>
126 </row>
127 <row>
128 <hbox/>
129 <hbox>
130 <checkbox id="shareAllProxies" label="&shareproxy.label;" accesskey="&shareproxy.accesskey;"
131 preference="network.proxy.share_proxy_settings"
132 onsyncfrompreference="return gConnectionsDialog.updateProtocolPrefs();"/>
133 </hbox>
134 </row>
135 <row align="center">
136 <hbox pack="end">
137 <label value="&ssl.label;" accesskey="&ssl.accesskey;" control="networkProxySSL"/>
138 </hbox>
139 <hbox align="center">
140 <textbox id="networkProxySSL" flex="1" preference="network.proxy.ssl"
141 onsyncfrompreference="return gConnectionsDialog.readProxyProtocolPref('ssl', false);"/>
142 <label value="&port.label;" accesskey="&SSLport.accesskey;" control="networkProxySSL_Port"/>
143 <textbox id="networkProxySSL_Port" type="number" max="65535" size="5" preference="network.proxy.ssl_port"
144 onsyncfrompreference="return gConnectionsDialog.readProxyProtocolPref('ssl', true);"/>
145 </hbox>
146 </row>
147 <row align="center">
148 <hbox pack="end">
149 <label value="&ftp.label;" accesskey="&ftp.accesskey;" control="networkProxyFTP"/>
150 </hbox>
151 <hbox align="center">
152 <textbox id="networkProxyFTP" flex="1" preference="network.proxy.ftp"
153 onsyncfrompreference="return gConnectionsDialog.readProxyProtocolPref('ftp', false);"/>
154 <label value="&port.label;" accesskey="&FTPport.accesskey;" control="networkProxyFTP_Port"/>
155 <textbox id="networkProxyFTP_Port" type="number" max="65535" size="5" preference="network.proxy.ftp_port"
156 onsyncfrompreference="return gConnectionsDialog.readProxyProtocolPref('ftp', true);"/>
157 </hbox>
158 </row>
159 <row align="center">
160 <hbox pack="end">
161 <label value="&gopher.label;" accesskey="&gopher.accesskey;" control="networkProxyGopher"/>
162 </hbox>
163 <hbox align="center">
164 <textbox id="networkProxyGopher" flex="1" preference="network.proxy.gopher"
165 onsyncfrompreference="return gConnectionsDialog.readProxyProtocolPref('gopher', false);"/>
166 <label value="&port.label;" accesskey="&gopherPort.accesskey;" control="networkProxyGopher_Port"/>
167 <textbox id="networkProxyGopher_Port" type="number" max="65535" size="5" preference="network.proxy.gopher_port"
168 onsyncfrompreference="return gConnectionsDialog.readProxyProtocolPref('gopher', true);"/>
169 </hbox>
170 </row>
171 <row align="center">
172 <hbox pack="end">
173 <label value="&socks.label;" accesskey="&socks.accesskey;" control="networkProxySOCKS"/>
174 </hbox>
175 <hbox align="center">
176 <textbox id="networkProxySOCKS" flex="1" preference="network.proxy.socks"
177 onsyncfrompreference="return gConnectionsDialog.readProxyProtocolPref('socks', false);"/>
178 <label value="&port.label;" accesskey="&SOCKSport.accesskey;" control="networkProxySOCKS_Port"/>
179 <textbox id="networkProxySOCKS_Port" type="number" max="65535" size="5" preference="network.proxy.socks_port"
180 onsyncfrompreference="return gConnectionsDialog.readProxyProtocolPref('socks', true);"/>
181 </hbox>
182 </row>
183 <row>
184 <spacer/>
185 <radiogroup id="networkProxySOCKSVersion" orient="horizontal"
186 preference="network.proxy.socks_version">
187 <radio id="networkProxySOCKSVersion4" value="4" label="&socks4.label;" accesskey="&socks4.accesskey;" />
188 <radio id="networkProxySOCKSVersion5" value="5" label="&socks5.label;" accesskey="&socks5.accesskey;" />
189 </radiogroup>
190 </row>
192 <row align="center">
193 <hbox align="center" pack="end">
194 <label value="&noproxy.label;" accesskey="&noproxy.accesskey;" control="networkProxyNone"/>
195 </hbox>
196 <textbox id="networkProxyNone" preference="network.proxy.no_proxies_on"/>
197 </row>
198 <row>
199 <spacer/>
200 <label value="&noproxyExplain.label;" control="networkProxyNone"/>
201 </row>
202 </rows>
203 </grid>
204 <radio value="2" label="&autoTypeRadio.label;" accesskey="&autoTypeRadio.accesskey;"/>
205 <hbox class="indent" flex="1" align="center">
206 <textbox id="networkProxyAutoconfigURL" flex="1" preference="network.proxy.autoconfig_url"
207 oninput="gConnectionsDialog.updateReloadButton();"/>
208 <button id="autoReload" icon="refresh"
209 label="&reload.label;" accesskey="&reload.accesskey;"
210 oncommand="gConnectionsDialog.reloadPAC();"
211 preference="pref.advanced.proxies.disable_button.reload"/>
212 </hbox>
213 </radiogroup>
214 </groupbox>
215 </prefpane>
216 </prefwindow>