Source code

Revision control

Other Tools

1
<?xml version="1.0"?>
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/.
5
6
<?xml-stylesheet href="chrome://browser/content/pageinfo/pageInfo.css" type="text/css"?>
7
<?xml-stylesheet href="chrome://browser/skin/pageInfo.css" type="text/css"?>
8
9
<!DOCTYPE window [
10
#ifdef XP_MACOSX
11
#include ../browser-doctype.inc
12
#endif
13
]>
14
15
<window id="main-window"
19
data-l10n-id="page-info-window"
20
data-l10n-attrs="style"
21
windowtype="Browser:page-info"
22
onload="onLoadPageInfo()"
23
onunload="onUnloadPageInfo()"
24
align="stretch"
25
screenX="10" screenY="10"
26
persist="screenX screenY width height sizemode">
27
28
<linkset>
29
<html:link rel="localization" href="browser/pageInfo.ftl"/>
30
</linkset>
31
#ifdef XP_MACOSX
32
#include ../macWindow.inc.xhtml
33
#else
37
#endif
43
44
<stringbundleset id="pageinfobundleset">
45
<stringbundle id="pkiBundle" src="chrome://pippki/locale/pippki.properties"/>
46
<stringbundle id="browserBundle" src="chrome://browser/locale/browser.properties"/>
47
</stringbundleset>
48
49
<commandset id="pageInfoCommandSet">
50
<command id="cmd_close" oncommand="window.close();"/>
51
<command id="cmd_help" oncommand="doHelpButton();"/>
52
<command id="cmd_copy_tree" oncommand="doCopy();"/>
53
<command id="cmd_selectall_tree" oncommand="doSelectAll();"/>
54
</commandset>
55
56
<keyset id="pageInfoKeySet">
57
<key data-l10n-id="close-dialog" data-l10n-attrs="key" modifiers="accel" command="cmd_close"/>
58
<key keycode="VK_ESCAPE" command="cmd_close"/>
59
#ifdef XP_MACOSX
60
<key key="." modifiers="meta" command="cmd_close"/>
61
#else
62
<key keycode="VK_F1" command="cmd_help"/>
63
#endif
64
<key data-l10n-id="copy" data-l10n-attrs="key" modifiers="accel" command="cmd_copy_tree"/>
65
<key data-l10n-id="select-all" data-l10n-attrs="key" modifiers="accel" command="cmd_selectall_tree"/>
66
<key data-l10n-id="select-all" data-l10n-attrs="key" modifiers="alt" command="cmd_selectall_tree"/>
67
</keyset>
68
69
<menupopup id="picontext">
70
<menuitem id="menu_selectall" data-l10n-id="menu-select-all" command="cmd_selectall_tree"/>
71
<menuitem id="menu_copy" data-l10n-id="menu-copy" command="cmd_copy_tree"/>
72
</menupopup>
73
74
<vbox id="topBar">
75
<radiogroup id="viewGroup" class="chromeclass-toolbar" orient="horizontal">
76
<radio id="generalTab" data-l10n-id="general-tab"
77
oncommand="showTab('general');"/>
78
<radio id="mediaTab" data-l10n-id="media-tab"
79
oncommand="showTab('media');" hidden="true"/>
80
<radio id="permTab" data-l10n-id="perm-tab"
81
oncommand="showTab('perm');"/>
82
<radio id="securityTab" data-l10n-id="security-tab"
83
oncommand="showTab('security');"/>
84
</radiogroup>
85
</vbox>
86
87
<deck id="mainDeck" flex="1">
88
<!-- General page information -->
89
<vbox id="generalPanel">
90
<table id="generalTable" xmlns="http://www.w3.org/1999/xhtml">
91
<tr id="generalTitle">
92
<th>
93
<xul:label control="titletext" data-l10n-id="general-title"/>
94
</th>
95
<td>
96
<input readonly="readonly" id="titletext" data-l10n-attrs="value"/>
97
</td>
98
</tr>
99
<tr id="generalURLRow">
100
<th>
101
<xul:label control="urltext" data-l10n-id="general-url"/>
102
</th>
103
<td>
104
<input readonly="readonly" id="urltext"/>
105
</td>
106
</tr>
107
<tr class="tableSeparator"/>
108
<tr id="generalTypeRow">
109
<th>
110
<xul:label control="typetext" data-l10n-id="general-type"/>
111
</th>
112
<td>
113
<input readonly="readonly" id="typetext"/>
114
</td>
115
</tr>
116
<tr id="generalModeRow">
117
<th>
118
<xul:label control="modetext" data-l10n-id="general-mode"/>
119
</th>
120
<td>
121
<input readonly="readonly" id="modetext" data-l10n-attrs="value"/>
122
</td>
123
</tr>
124
<tr id="generalEncodingRow">
125
<th>
126
<xul:label control="encodingtext" data-l10n-id="general-encoding"/>
127
</th>
128
<td>
129
<input readonly="readonly" id="encodingtext"/>
130
</td>
131
</tr>
132
<tr id="generalSizeRow">
133
<th>
134
<xul:label control="sizetext" data-l10n-id="general-size"/>
135
</th>
136
<td>
137
<input readonly="readonly" id="sizetext" data-l10n-attrs="value"/>
138
</td>
139
</tr>
140
<tr id="generalReferrerRow">
141
<th>
142
<xul:label control="refertext" data-l10n-id="general-referrer"/>
143
</th>
144
<td>
145
<input readonly="readonly" id="refertext"/>
146
</td>
147
</tr>
148
<tr class="tableSeparator"/>
149
<tr id="generalModifiedRow">
150
<th>
151
<xul:label control="modifiedtext" data-l10n-id="general-modified"/>
152
</th>
153
<td>
154
<input readonly="readonly" id="modifiedtext"/>
155
</td>
156
</tr>
157
</table>
158
<separator class="thin"/>
159
<vbox id="metaTags" flex="1">
160
<label control="metatree" id="metaTagsCaption" class="header"/>
161
<tree id="metatree" flex="1" hidecolumnpicker="true" contextmenu="picontext">
162
<treecols>
163
<treecol id="meta-name" data-l10n-id="general-meta-name"
164
persist="width" flex="1"
165
onclick="gMetaView.onPageMediaSort('meta-name');"/>
166
<splitter class="tree-splitter"/>
167
<treecol id="meta-content" data-l10n-id="general-meta-content"
168
persist="width" flex="4"
169
onclick="gMetaView.onPageMediaSort('meta-content');"/>
170
</treecols>
171
<treechildren id="metatreechildren" flex="1"/>
172
</tree>
173
</vbox>
174
<hbox pack="end">
175
<button command="cmd_help" data-l10n-id="help-button" dlgtype="help"/>
176
</hbox>
177
</vbox>
178
179
<!-- Media information -->
180
<vbox id="mediaPanel">
181
<tree id="imagetree" onselect="onImageSelect();" contextmenu="picontext"
182
ondragstart="onBeginLinkDrag(event, 'image-address', 'image-alt')">
183
<treecols>
184
<treecol primary="true" persist="width" flex="10"
185
width="10" id="image-address" data-l10n-id="media-address"
186
onclick="gImageView.onPageMediaSort('image-address');"/>
187
<splitter class="tree-splitter"/>
188
<treecol persist="hidden width" flex="2"
189
width="2" id="image-type" data-l10n-id="media-type"
190
onclick="gImageView.onPageMediaSort('image-type');"/>
191
<splitter class="tree-splitter"/>
192
<treecol hidden="true" persist="hidden width" flex="2"
193
width="2" id="image-size" data-l10n-id="media-size" value="size"
194
onclick="gImageView.onPageMediaSort('image-size');"/>
195
<splitter class="tree-splitter"/>
196
<treecol hidden="true" persist="hidden width" flex="4"
197
width="4" id="image-alt" data-l10n-id="media-alt-header"
198
onclick="gImageView.onPageMediaSort('image-alt');"/>
199
<splitter class="tree-splitter"/>
200
<treecol hidden="true" persist="hidden width" flex="1"
201
width="1" id="image-count" data-l10n-id="media-count"
202
onclick="gImageView.onPageMediaSort('image-count');"/>
203
</treecols>
204
<treechildren id="imagetreechildren" flex="1"/>
205
</tree>
206
<splitter orient="vertical" id="mediaSplitter"/>
207
<vbox flex="1" id="mediaPreviewBox" collapsed="true">
208
<table id="mediaTable" xmlns="http://www.w3.org/1999/xhtml">
209
<tr id="mediaLocationRow">
210
<th>
211
<xul:label control="imageurltext" data-l10n-id="media-location"/>
212
</th>
213
<td>
214
<input readonly="readonly" id="imageurltext"/>
215
</td>
216
</tr>
217
<tr id="mediaTypeRow">
218
<th>
219
<xul:label control="imagetypetext" data-l10n-id="general-type"/>
220
</th>
221
<td>
222
<input id="imagetypetext" data-l10n-attrs="value"/>
223
</td>
224
</tr>
225
<tr id="mediaSizeRow">
226
<th>
227
<xul:label control="imagesizetext" data-l10n-id="general-size"/>
228
</th>
229
<td>
230
<input readonly="readonly" id="imagesizetext" data-l10n-attrs="value"/>
231
</td>
232
</tr>
233
<tr id="mediaDimensionRow">
234
<th>
235
<xul:label control="imagedimensiontext" data-l10n-id="media-dimension"/>
236
</th>
237
<td>
238
<input readonly="readonly" id="imagedimensiontext" data-l10n-attrs="value"/>
239
</td>
240
</tr>
241
<tr id="mediaTextRow">
242
<th>
243
<xul:label control="imagetext" data-l10n-id="media-text"/>
244
</th>
245
<td>
246
<input readonly="readonly" id="imagetext"/>
247
</td>
248
</tr>
249
<tr id="mediaLongdescRow">
250
<th>
251
<xul:label control="imagelongdesctext" data-l10n-id="media-long-desc"/>
252
</th>
253
<td>
254
<input readonly="readonly" id="imagelongdesctext"/>
255
</td>
256
</tr>
257
</table>
258
<hbox id="imageSaveBox" align="end">
259
<spacer id="imageSaveBoxSpacer" flex="1"/>
260
<button data-l10n-id="menu-select-all"
261
id="selectallbutton"
262
oncommand="doSelectAllMedia();"/>
263
<button data-l10n-id="media-save-as"
264
id="imagesaveasbutton"
265
oncommand="saveMedia();"/>
266
</hbox>
267
<vbox id="imagecontainerbox" flex="1" pack="center">
268
<hbox id="theimagecontainer" pack="center">
269
<image id="thepreviewimage"/>
270
</hbox>
271
<hbox id="brokenimagecontainer" pack="center" collapsed="true">
272
<image id="brokenimage" src="resource://gre-resources/broken-image.png"/>
273
</hbox>
274
</vbox>
275
</vbox>
276
<hbox id="mediaSaveBox" collapsed="true">
277
<spacer id="mediaSaveBoxSpacer" flex="1"/>
278
<button data-l10n-id="media-save-image-as"
279
id="mediasaveasbutton"
280
oncommand="saveMedia();"/>
281
</hbox>
282
<hbox pack="end">
283
<button command="cmd_help" data-l10n-id="help-button" dlgtype="help"/>
284
</hbox>
285
</vbox>
286
287
<!-- Permissions -->
288
<vbox id="permPanel">
289
<hbox id="permHostBox">
290
<label data-l10n-id="permissions-for" control="hostText" />
291
<html:input id="hostText" class="header" readonly="readonly"/>
292
</hbox>
293
294
<vbox id="permList" flex="1"/>
295
<hbox pack="end">
296
<button command="cmd_help" data-l10n-id="help-button" dlgtype="help"/>
297
</hbox>
298
</vbox>
299
300
<!-- Security & Privacy -->
301
<vbox id="securityPanel">
302
<!-- Identity Section -->
303
<groupbox>
304
<label class="header" data-l10n-id="security-view-identity"/>
305
<table xmlns="http://www.w3.org/1999/xhtml">
306
<!-- Domain -->
307
<tr>
308
<th>
309
<xul:label data-l10n-id="security-view-identity-domain"
310
control="security-identity-domain-value"/>
311
</th>
312
<td>
313
<input id="security-identity-domain-value" readonly="readonly"/>
314
</td>
315
</tr>
316
<!-- Owner -->
317
<tr>
318
<th>
319
<xul:label id="security-identity-owner-label"
320
class="fieldLabel"
321
data-l10n-id="security-view-identity-owner"
322
control="security-identity-owner-value"/>
323
</th>
324
<td>
325
<input id="security-identity-owner-value" readonly="readonly" data-l10n-attrs="value"/>
326
</td>
327
</tr>
328
<!-- Verifier -->
329
<tr>
330
<th>
331
<xul:label data-l10n-id="security-view-identity-verifier"
332
control="security-identity-verifier-value"/>
333
</th>
334
<td>
335
<div class="table-split-column">
336
<input id="security-identity-verifier-value" readonly="readonly"
337
data-l10n-attrs="value"/>
338
<xul:button id="security-view-cert" data-l10n-id="security-view"
339
collapsed="true"
340
oncommand="security.viewCert();"/>
341
</div>
342
</td>
343
</tr>
344
<!-- Certificate Validity -->
345
<tr id="security-identity-validity-row">
346
<th>
347
<xul:label data-l10n-id="security-view-identity-validity"
348
control="security-identity-validity-value"/>
349
</th>
350
<td>
351
<input id="security-identity-validity-value" readonly="readonly"/>
352
</td>
353
</tr>
354
</table>
355
</groupbox>
356
357
<!-- Privacy & History section -->
358
<groupbox>
359
<label class="header" data-l10n-id="security-view-privacy"/>
360
<table id="securityTable" xmlns="http://www.w3.org/1999/xhtml">
361
<!-- History -->
362
<tr>
363
<th>
364
<xul:label control="security-privacy-history-value" data-l10n-id="security-view-privacy-history-value"/>
365
</th>
366
<td>
367
<xul:label id="security-privacy-history-value"
368
data-l10n-id="security-view-unknown"/>
369
</td>
370
</tr>
371
<!-- Site Data & Cookies -->
372
<tr id="security-privacy-sitedata-row">
373
<th>
374
<xul:label control="security-privacy-sitedata-value" data-l10n-id="security-view-privacy-sitedata-value"/>
375
</th>
376
<td>
377
<div class="table-split-column">
378
<xul:label id="security-privacy-sitedata-value" data-l10n-id="security-view-unknown"/>
379
<xul:button id="security-clear-sitedata"
380
disabled="true"
381
data-l10n-id="security-view-privacy-clearsitedata"
382
oncommand="security.clearSiteData();"/>
383
</div>
384
</td>
385
</tr>
386
<!-- Passwords -->
387
<tr>
388
<th>
389
<xul:label control="security-privacy-passwords-value" data-l10n-id="security-view-privacy-passwords-value"/>
390
</th>
391
<td>
392
<div class="table-split-column">
393
<xul:label id="security-privacy-passwords-value"
394
data-l10n-id="security-view-unknown"/>
395
<xul:button id="security-view-password"
396
data-l10n-id="security-view-privacy-viewpasswords"
397
oncommand="security.viewPasswords();"/>
398
</div>
399
</td>
400
</tr>
401
</table>
402
</groupbox>
403
404
<!-- Technical Details section -->
405
<groupbox>
406
<label class="header" data-l10n-id="security-view-technical"/>
407
<label id="security-technical-shortform"/>
408
<description id="security-technical-longform1"/>
409
<description id="security-technical-longform2"/>
410
<description id="security-technical-certificate-transparency"/>
411
</groupbox>
412
413
<hbox pack="end">
414
<button command="cmd_help" data-l10n-id="help-button" dlgtype="help"/>
415
</hbox>
416
</vbox>
417
<!-- Others added by overlay -->
418
</deck>
419
420
</window>