preferences.xul 10.1 KB
Newer Older
Scott Squires's avatar
Scott Squires committed
1
2
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
3
<?xml-stylesheet href="chrome://torbutton/skin/preferences.css" type="text/css"?>
Scott Squires's avatar
Scott Squires committed
4
5
6
7
8
9

<!DOCTYPE overlay SYSTEM "chrome://torbutton/locale/torbutton.dtd">

<dialog id="torbutton-prefs"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        xmlns:html="http://www.w3.org/1999/xhtml"
10
        title="&torbutton.prefs.privacy_security_settings;"
Mike Perry's avatar
   
Mike Perry committed
11
        buttons="accept,cancel,extra1"
Mike Perry's avatar
   
Mike Perry committed
12
        buttonlabelextra1="&torbutton.prefs.restore_defaults;"
Mike Perry's avatar
   
Mike Perry committed
13
        ondialogextra1="torbutton_prefs_reset_defaults();"
14
        persist="screenX screenY width height"
Scott Squires's avatar
Scott Squires committed
15
        onload="torbutton_prefs_init(document)"
16
17
        align="stretch"
        pack="center"
Scott Squires's avatar
Scott Squires committed
18
19
        ondialogaccept="torbutton_prefs_save(document)" >

20
    <script type="application/x-javascript" src="torbutton_util.js"/>
Scott Squires's avatar
Scott Squires committed
21
    <script type="application/x-javascript" src="preferences.js"/>
22
    <vbox flex="1" align="stretch">
23
        <groupbox>
24
25
          <caption label="&torbutton.prefs.priv_caption;"
                   tooltiptext="&torbutton.prefs.priv_caption_tooltip;"/>
26
          <checkbox id="torbutton_resistFingerprinting"
27
28
                    label="&torbutton.prefs.resist_fingerprinting;"
                    tooltiptext="&torbutton.prefs.resist_fingerprinting_tooltip;"/>
29
        </groupbox>
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
        <groupbox align="stretch" flex="1"> <!-- security settings container -->
          <caption label="&torbutton.prefs.sec_caption;"/>
          <hbox flex="1" align="stretch">
            <vbox>
              <hbox height="200">
                <vbox>
                  <scale id="torbutton_sec_slider" flex="1" min="1" max="4"
                         movetoclick="true" orient="vertical"/>
                </vbox>
                <vbox>
                  <hbox flex="1" align="start">
                    <description id="torbutton_sec_high"
                                 tooltip="high_preview"
                                 onclick="torbutton_toggle_slider(document, 1);">
                      &torbutton.prefs.sec_high;
                    </description>
                  </hbox>
                  <hbox flex="1" align="center">
                    <description id="torbutton_sec_med_high"
                                 tooltip="mh_preview"
                                 onclick="torbutton_toggle_slider(document, 2);">
                      &torbutton.prefs.sec_med_high;
                    </description>
                  </hbox>
                  <hbox flex="1" align="center">
                    <description id="torbutton_sec_med_low"
                                 tooltip="ml_preview"
                                 onclick="torbutton_toggle_slider(document, 3);">
                      &torbutton.prefs.sec_med_low;
                    </description>
                  </hbox>
                  <hbox flex="1" align="end">
                    <description id="torbutton_sec_low"
                                 tooltip="low_preview"
                                 onclick="torbutton_toggle_slider(document, 4);">
                      &torbutton.prefs.sec_low;
                    </description>
                  </hbox>
                </vbox>
69
              </hbox>
70
71
72
73
74
75
76
              <hbox>
                <!-- We are using |oncommand| instead of |onclick| as the former does
                     not fire if the checkbox is disabled and it does fire after the
                     checkbox adapted its state. -->
                <checkbox id="torbutton_sec_custom" flex="1"
                          oncommand="torbutton_set_slider_text(document, event.target.checked);"
                          label="&torbutton.prefs.sec_custom;"/>
77
78
              </hbox>
            </vbox>
79
80
            <!-- A width of 400 is already too much for OS X it seems. The above
                 spacer tag would basically be useless and the layout ugly. -->
81
            <vbox flex="1" width="300" style="overflow: auto;">
82
83
84
85
86
87
              <vbox id="desc_high" collapsed="true">
                <description
                  class="slider-text-size, slider-text-weight">
                  &torbutton.prefs.sec_gen_desc;
                </description>
                <description class="slider-text-size"
88
89
                  tooltiptext="&torbutton.prefs.sec_js_desc_tooltip;">
                  &torbutton.prefs.sec_all_js_desc;
90
91
92
93
94
                </description>
                <description class="slider-text-size"
                  tooltiptext="&torbutton.prefs.sec_jit_desc_tooltip; &torbutton.prefs.sec_baseline_jit_desc_tooltip;">
                  &torbutton.prefs.sec_all_jit_desc; &torbutton.prefs.sec_jit_slower_desc;
                </description>
95
96
97
98
                <description class="slider-text-size"
                  tooltiptext="&torbutton.prefs.sec_html5_tooltip;">
                  &torbutton.prefs.sec_html5_desc;
                </description>
99
100
101
102
103
                <description class="slider-text-size"
                  tooltiptext="&torbutton.prefs.sec_mathml_desc_tooltip;">
                  &torbutton.prefs.sec_mathml_desc;
                </description>
                <description class="slider-text-size"
104
                  tooltiptext="&torbutton.prefs.sec_font_rend_svg_tooltip;">
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
                  &torbutton.prefs.sec_font_rend_desc;
                </description>
                <description class="slider-text-size"
                  tooltiptext="&torbutton.prefs.sec_svg_desc_tooltip;">
                  &torbutton.prefs.sec_svg_desc;
                </description>
                <description class="slider-text-size"
                  tooltiptext="&torbutton.prefs.sec_webfonts_desc_tooltip;">
                  &torbutton.prefs.sec_webfonts_desc;
                </description>
              </vbox>
              <vbox id="desc_medium_high" collapsed="true">
                <description
                  class="slider-text-size, slider-text-weight">
                  &torbutton.prefs.sec_gen_desc;
                </description>
                <description class="slider-text-size"
122
123
                  tooltiptext="&torbutton.prefs.sec_js_desc_tooltip;">
                  &torbutton.prefs.sec_js_https_desc;
124
125
126
127
128
                </description>
                <description class="slider-text-size"
                  tooltiptext="&torbutton.prefs.sec_jit_desc_tooltip; &torbutton.prefs.sec_baseline_jit_desc_tooltip;">
                  &torbutton.prefs.sec_all_jit_desc; &torbutton.prefs.sec_jit_slower_desc;
                </description>
129
130
131
132
                <description class="slider-text-size"
                  tooltiptext="&torbutton.prefs.sec_html5_tooltip;">
                  &torbutton.prefs.sec_html5_desc;
                </description>
133
134
135
136
137
                <description class="slider-text-size"
                  tooltiptext="&torbutton.prefs.sec_mathml_desc_tooltip;">
                  &torbutton.prefs.sec_mathml_desc;
                </description>
                <description class="slider-text-size"
138
                  tooltiptext="&torbutton.prefs.sec_font_rend_svg_tooltip;">
139
140
141
142
143
144
145
146
147
148
149
150
                  &torbutton.prefs.sec_font_rend_desc;
                </description>
              </vbox>
             <vbox id="desc_medium_low" collapsed="true">
                <description
                  class="slider-text-size, slider-text-weight">
                  &torbutton.prefs.sec_gen_desc;
                </description>
                <description class="slider-text-size"
                  tooltiptext="&torbutton.prefs.sec_jit_desc_tooltip;">
                  &torbutton.prefs.sec_some_jit_desc; &torbutton.prefs.sec_jit_slower_desc;
                </description>
151
152
153
154
                <description class="slider-text-size"
                  tooltiptext="&torbutton.prefs.sec_html5_tooltip;">
                  &torbutton.prefs.sec_html5_desc;
                </description>
155
156
157
158
159
160
161
162
163
164
165
                <description class="slider-text-size"
                  tooltiptext="&torbutton.prefs.sec_mathml_desc_tooltip;">
                  &torbutton.prefs.sec_mathml_desc;
                </description>
              </vbox>
              <vbox id="desc_low" collapsed="false">
                <description
                  class="slider-text-size, slider-text-weight">
                  &torbutton.prefs.sec_low_desc;
                </description>
                <description class="slider-text-size">
166
                  &torbutton.prefs.sec_low_usable_desc;
167
168
169
                </description>
              </vbox>
            </vbox>
170
171
172
          </hbox>
        </groupbox>
      </vbox>
173

174
175
176
177
   <tooltip id="high_preview">
     <html:b>&torbutton.prefs.sec_gen_desc;</html:b>
     <html:br></html:br>
     <html:br></html:br>
178
179
     <html:div>&torbutton.prefs.sec_all_js_desc;</html:div>
     <html:div>&torbutton.prefs.sec_all_jit_desc; &torbutton.prefs.sec_jit_slower_desc;</html:div>
180
181
182
183
184
185
186
187
188
189
     <html:div>&torbutton.prefs.sec_html5_desc;</html:div>
     <html:div>&torbutton.prefs.sec_mathml_desc;</html:div>
     <html:div>&torbutton.prefs.sec_font_rend_desc;</html:div>
     <html:div>&torbutton.prefs.sec_svg_desc;</html:div>
     <html:div>&torbutton.prefs.sec_webfonts_desc;</html:div>
   </tooltip>
   <tooltip id="mh_preview">
     <html:b>&torbutton.prefs.sec_gen_desc;</html:b>
     <html:br></html:br>
     <html:br></html:br>
190
191
     <html:div>&torbutton.prefs.sec_js_https_desc;</html:div>
     <html:div>&torbutton.prefs.sec_all_jit_desc; &torbutton.prefs.sec_jit_slower_desc;</html:div>
192
193
194
195
196
197
198
199
     <html:div>&torbutton.prefs.sec_html5_desc;</html:div>
     <html:div>&torbutton.prefs.sec_mathml_desc;</html:div>
     <html:div>&torbutton.prefs.sec_font_rend_desc;</html:div>
   </tooltip>
   <tooltip id="ml_preview">
     <html:b>&torbutton.prefs.sec_gen_desc;</html:b>
     <html:br></html:br>
     <html:br></html:br>
200
     <html:div>&torbutton.prefs.sec_some_jit_desc; &torbutton.prefs.sec_jit_slower_desc;</html:div>
201
202
203
204
205
206
207
208
209
     <html:div>&torbutton.prefs.sec_html5_desc;</html:div>
     <html:div>&torbutton.prefs.sec_mathml_desc;</html:div>
   </tooltip>
   <tooltip id="low_preview">
     <html:b>&torbutton.prefs.sec_low_desc;</html:b>
     <html:br></html:br>
     <html:br></html:br>
     <html:div>&torbutton.prefs.sec_low_usable_desc;</html:div>
   </tooltip>
Scott Squires's avatar
Scott Squires committed
210
</dialog>