|
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 <!ENTITY % pageInfoDTD SYSTEM "chrome://browser/locale/pageInfo.dtd"> |
|
11 %pageInfoDTD; |
|
12 ]> |
|
13 |
|
14 #ifdef XP_MACOSX |
|
15 <?xul-overlay href="chrome://browser/content/macBrowserOverlay.xul"?> |
|
16 #endif |
|
17 |
|
18 <window id="main-window" |
|
19 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" |
|
20 windowtype="Browser:page-info" |
|
21 onload="onLoadPageInfo()" |
|
22 onunload="onUnloadPageInfo()" |
|
23 align="stretch" |
|
24 screenX="10" screenY="10" |
|
25 width="&pageInfoWindow.width;" height="&pageInfoWindow.height;" |
|
26 persist="screenX screenY width height sizemode"> |
|
27 |
|
28 <script type="application/javascript" src="chrome://global/content/globalOverlay.js"/> |
|
29 <script type="application/javascript" src="chrome://global/content/contentAreaUtils.js"/> |
|
30 <script type="application/javascript" src="chrome://global/content/treeUtils.js"/> |
|
31 <script type="application/javascript" src="chrome://browser/content/pageinfo/pageInfo.js"/> |
|
32 <script type="application/javascript" src="chrome://browser/content/pageinfo/feeds.js"/> |
|
33 <script type="application/javascript" src="chrome://browser/content/pageinfo/permissions.js"/> |
|
34 <script type="application/javascript" src="chrome://browser/content/pageinfo/security.js"/> |
|
35 <script type="application/javascript" src="chrome://browser/content/utilityOverlay.js"/> |
|
36 |
|
37 <stringbundleset id="pageinfobundleset"> |
|
38 <stringbundle id="pageinfobundle" src="chrome://browser/locale/pageInfo.properties"/> |
|
39 <stringbundle id="pkiBundle" src="chrome://pippki/locale/pippki.properties"/> |
|
40 <stringbundle id="browserBundle" src="chrome://browser/locale/browser.properties"/> |
|
41 </stringbundleset> |
|
42 |
|
43 <commandset id="pageInfoCommandSet"> |
|
44 <command id="cmd_close" oncommand="window.close();"/> |
|
45 <command id="cmd_help" oncommand="doHelpButton();"/> |
|
46 <command id="cmd_copy" oncommand="doCopy();"/> |
|
47 <command id="cmd_selectall" oncommand="doSelectAll();"/> |
|
48 |
|
49 <!-- permissions tab --> |
|
50 <command id="cmd_pluginsDef" oncommand="onCheckboxClick('plugins');"/> |
|
51 <command id="cmd_pluginsToggle" oncommand="onPluginRadioClick(event);"/> |
|
52 </commandset> |
|
53 |
|
54 <keyset id="pageInfoKeySet"> |
|
55 <key key="&closeWindow.key;" modifiers="accel" command="cmd_close"/> |
|
56 <key keycode="VK_ESCAPE" command="cmd_close"/> |
|
57 #ifdef XP_MACOSX |
|
58 <key key="." modifiers="meta" command="cmd_close"/> |
|
59 #else |
|
60 <key keycode="VK_F1" command="cmd_help"/> |
|
61 #endif |
|
62 <key key="©.key;" modifiers="accel" command="cmd_copy"/> |
|
63 <key key="&selectall.key;" modifiers="accel" command="cmd_selectall"/> |
|
64 <key key="&selectall.key;" modifiers="alt" command="cmd_selectall"/> |
|
65 </keyset> |
|
66 |
|
67 <menupopup id="picontext"> |
|
68 <menuitem id="menu_selectall" label="&selectall.label;" command="cmd_selectall" accesskey="&selectall.accesskey;"/> |
|
69 <menuitem id="menu_copy" label="©.label;" command="cmd_copy" accesskey="©.accesskey;"/> |
|
70 </menupopup> |
|
71 |
|
72 <windowdragbox id="topBar" class="viewGroupWrapper"> |
|
73 <radiogroup id="viewGroup" class="chromeclass-toolbar" orient="horizontal"> |
|
74 <radio id="generalTab" label="&generalTab;" accesskey="&generalTab.accesskey;" |
|
75 oncommand="showTab('general');"/> |
|
76 <radio id="mediaTab" label="&mediaTab;" accesskey="&mediaTab.accesskey;" |
|
77 oncommand="showTab('media');" hidden="true"/> |
|
78 <radio id="feedTab" label="&feedTab;" accesskey="&feedTab.accesskey;" |
|
79 oncommand="showTab('feed');" hidden="true"/> |
|
80 <radio id="permTab" label="&permTab;" accesskey="&permTab.accesskey;" |
|
81 oncommand="showTab('perm');"/> |
|
82 <radio id="securityTab" label="&securityTab;" accesskey="&securityTab.accesskey;" |
|
83 oncommand="showTab('security');"/> |
|
84 <!-- Others added by overlay --> |
|
85 </radiogroup> |
|
86 </windowdragbox> |
|
87 |
|
88 <deck id="mainDeck" flex="1"> |
|
89 <!-- General page information --> |
|
90 <vbox id="generalPanel"> |
|
91 <textbox class="header" readonly="true" id="titletext"/> |
|
92 <grid id="generalGrid"> |
|
93 <columns> |
|
94 <column/> |
|
95 <column class="gridSeparator"/> |
|
96 <column flex="1"/> |
|
97 </columns> |
|
98 <rows id="generalRows"> |
|
99 <row id="generalURLRow"> |
|
100 <label control="urltext" value="&generalURL;"/> |
|
101 <separator/> |
|
102 <textbox readonly="true" id="urltext"/> |
|
103 </row> |
|
104 <row id="generalSeparatorRow1"> |
|
105 <separator class="thin"/> |
|
106 </row> |
|
107 <row id="generalTypeRow"> |
|
108 <label control="typetext" value="&generalType;"/> |
|
109 <separator/> |
|
110 <textbox readonly="true" id="typetext"/> |
|
111 </row> |
|
112 <row id="generalModeRow"> |
|
113 <label control="modetext" value="&generalMode;"/> |
|
114 <separator/> |
|
115 <textbox readonly="true" crop="end" id="modetext"/> |
|
116 </row> |
|
117 <row id="generalEncodingRow"> |
|
118 <label control="encodingtext" value="&generalEncoding;"/> |
|
119 <separator/> |
|
120 <textbox readonly="true" id="encodingtext"/> |
|
121 </row> |
|
122 <row id="generalSizeRow"> |
|
123 <label control="sizetext" value="&generalSize;"/> |
|
124 <separator/> |
|
125 <textbox readonly="true" id="sizetext"/> |
|
126 </row> |
|
127 <row id="generalReferrerRow"> |
|
128 <label control="refertext" value="&generalReferrer;"/> |
|
129 <separator/> |
|
130 <textbox readonly="true" id="refertext"/> |
|
131 </row> |
|
132 <row id="generalSeparatorRow2"> |
|
133 <separator class="thin"/> |
|
134 </row> |
|
135 <row id="generalModifiedRow"> |
|
136 <label control="modifiedtext" value="&generalModified;"/> |
|
137 <separator/> |
|
138 <textbox readonly="true" id="modifiedtext"/> |
|
139 </row> |
|
140 </rows> |
|
141 </grid> |
|
142 <separator class="thin"/> |
|
143 <groupbox id="metaTags" flex="1" class="collapsable treebox"> |
|
144 <caption id="metaTagsCaption" onclick="toggleGroupbox('metaTags');"/> |
|
145 <tree id="metatree" flex="1" hidecolumnpicker="true" contextmenu="picontext"> |
|
146 <treecols> |
|
147 <treecol id="meta-name" label="&generalMetaName;" |
|
148 persist="width" flex="1" |
|
149 onclick="gMetaView.onPageMediaSort('meta-name');"/> |
|
150 <splitter class="tree-splitter"/> |
|
151 <treecol id="meta-content" label="&generalMetaContent;" |
|
152 persist="width" flex="4" |
|
153 onclick="gMetaView.onPageMediaSort('meta-content');"/> |
|
154 </treecols> |
|
155 <treechildren id="metatreechildren" flex="1"/> |
|
156 </tree> |
|
157 </groupbox> |
|
158 <groupbox id="securityBox"> |
|
159 <caption id="securityBoxCaption" label="&securityHeader;"/> |
|
160 <description id="general-security-identity" class="header"/> |
|
161 <description id="general-security-privacy" class="header"/> |
|
162 <hbox id="securityDetailsButtonBox" align="right"> |
|
163 <button id="security-view-details" label="&generalSecurityDetails;" |
|
164 accesskey="&generalSecurityDetails.accesskey;" |
|
165 oncommand="onClickMore();"/> |
|
166 </hbox> |
|
167 </groupbox> |
|
168 </vbox> |
|
169 |
|
170 <!-- Media information --> |
|
171 <vbox id="mediaPanel"> |
|
172 <tree id="imagetree" onselect="onImageSelect();" contextmenu="picontext" |
|
173 ondragstart="onBeginLinkDrag(event,'image-address','image-alt')"> |
|
174 <treecols> |
|
175 <treecol sortSeparators="true" primary="true" persist="width" flex="10" |
|
176 width="10" id="image-address" label="&mediaAddress;" |
|
177 onclick="gImageView.onPageMediaSort('image-address');"/> |
|
178 <splitter class="tree-splitter"/> |
|
179 <treecol sortSeparators="true" persist="hidden width" flex="2" |
|
180 width="2" id="image-type" label="&mediaType;" |
|
181 onclick="gImageView.onPageMediaSort('image-type');"/> |
|
182 <splitter class="tree-splitter"/> |
|
183 <treecol sortSeparators="true" hidden="true" persist="hidden width" flex="2" |
|
184 width="2" id="image-size" label="&mediaSize;" value="size" |
|
185 onclick="gImageView.onPageMediaSort('image-size');"/> |
|
186 <splitter class="tree-splitter"/> |
|
187 <treecol sortSeparators="true" hidden="true" persist="hidden width" flex="4" |
|
188 width="4" id="image-alt" label="&mediaAltHeader;" |
|
189 onclick="gImageView.onPageMediaSort('image-alt');"/> |
|
190 <splitter class="tree-splitter"/> |
|
191 <treecol sortSeparators="true" hidden="true" persist="hidden width" flex="1" |
|
192 width="1" id="image-count" label="&mediaCount;" |
|
193 onclick="gImageView.onPageMediaSort('image-count');"/> |
|
194 </treecols> |
|
195 <treechildren id="imagetreechildren" flex="1"/> |
|
196 </tree> |
|
197 <splitter orient="vertical" id="mediaSplitter"/> |
|
198 <vbox flex="1" id="mediaPreviewBox" collapsed="true"> |
|
199 <grid id="mediaGrid"> |
|
200 <columns> |
|
201 <column id="mediaLabelColumn"/> |
|
202 <column class="gridSeparator"/> |
|
203 <column flex="1"/> |
|
204 </columns> |
|
205 <rows id="mediaRows"> |
|
206 <row id="mediaLocationRow"> |
|
207 <label control="imageurltext" value="&mediaLocation;"/> |
|
208 <separator/> |
|
209 <textbox readonly="true" id="imageurltext"/> |
|
210 </row> |
|
211 <row id="mediaTypeRow"> |
|
212 <label control="imagetypetext" value="&generalType;"/> |
|
213 <separator/> |
|
214 <textbox readonly="true" id="imagetypetext"/> |
|
215 </row> |
|
216 <row id="mediaSizeRow"> |
|
217 <label control="imagesizetext" value="&generalSize;"/> |
|
218 <separator/> |
|
219 <textbox readonly="true" id="imagesizetext"/> |
|
220 </row> |
|
221 <row id="mediaDimensionRow"> |
|
222 <label control="imagedimensiontext" value="&mediaDimension;"/> |
|
223 <separator/> |
|
224 <textbox readonly="true" id="imagedimensiontext"/> |
|
225 </row> |
|
226 <row id="mediaTextRow"> |
|
227 <label control="imagetext" value="&mediaText;"/> |
|
228 <separator/> |
|
229 <textbox readonly="true" id="imagetext"/> |
|
230 </row> |
|
231 <row id="mediaLongdescRow"> |
|
232 <label control="imagelongdesctext" value="&mediaLongdesc;"/> |
|
233 <separator/> |
|
234 <textbox readonly="true" id="imagelongdesctext"/> |
|
235 </row> |
|
236 </rows> |
|
237 </grid> |
|
238 <hbox id="imageSaveBox" align="end"> |
|
239 <vbox id="blockImageBox"> |
|
240 <checkbox id="blockImage" hidden="true" oncommand="onBlockImage()" |
|
241 accesskey="&mediaBlockImage.accesskey;"/> |
|
242 <label control="thepreviewimage" value="&mediaPreview;" class="header"/> |
|
243 </vbox> |
|
244 <spacer id="imageSaveBoxSpacer" flex="1"/> |
|
245 <button label="&mediaSaveAs;" accesskey="&mediaSaveAs.accesskey;" |
|
246 icon="save" id="imagesaveasbutton" |
|
247 oncommand="saveMedia();"/> |
|
248 </hbox> |
|
249 <vbox id="imagecontainerbox" class="inset iframe" flex="1" pack="center"> |
|
250 <hbox id="theimagecontainer" pack="center"> |
|
251 <image id="thepreviewimage"/> |
|
252 </hbox> |
|
253 <hbox id="brokenimagecontainer" pack="center" collapsed="true"> |
|
254 <image id="brokenimage" src="resource://gre-resources/broken-image.png"/> |
|
255 </hbox> |
|
256 </vbox> |
|
257 </vbox> |
|
258 <hbox id="mediaSaveBox" collapsed="true"> |
|
259 <spacer id="mediaSaveBoxSpacer" flex="1"/> |
|
260 <button label="&mediaSaveAs;" accesskey="&mediaSaveAs2.accesskey;" |
|
261 icon="save" id="mediasaveasbutton" |
|
262 oncommand="saveMedia();"/> |
|
263 </hbox> |
|
264 </vbox> |
|
265 |
|
266 <!-- Feeds --> |
|
267 <vbox id="feedPanel"> |
|
268 <richlistbox id="feedListbox" flex="1"/> |
|
269 </vbox> |
|
270 |
|
271 <!-- Permissions --> |
|
272 <vbox id="permPanel"> |
|
273 <hbox id="permHostBox"> |
|
274 <label value="&permissionsFor;" control="hostText" /> |
|
275 <textbox id="hostText" class="header" readonly="true" |
|
276 crop="end" flex="1"/> |
|
277 </hbox> |
|
278 |
|
279 <vbox id="permList" flex="1"> |
|
280 <hbox id="perm-indexedDB-extras"> |
|
281 <spacer flex="1"/> |
|
282 <vbox id="permIndexedDBStatusBox" pack="center"> |
|
283 <label id="indexedDBStatus" control="indexedDBClear" hidden="true"/> |
|
284 </vbox> |
|
285 <button id="indexedDBClear" label="&permClearStorage;" hidden="true" |
|
286 accesskey="&permClearStorage.accesskey;" onclick="onIndexedDBClear();"/> |
|
287 </hbox> |
|
288 <vbox class="permission" id="perm-plugins-row"> |
|
289 <label class="permissionLabel" id="permPluginsLabel" |
|
290 value="&permPlugins;" control="pluginsRadioGroup"/> |
|
291 <hbox id="permPluginTemplate" role="group" aria-labelledby="permPluginsLabel" align="baseline"> |
|
292 <label class="permPluginTemplateLabel"/> |
|
293 <spacer flex="1"/> |
|
294 <radiogroup class="permPluginTemplateRadioGroup" orient="horizontal" command="cmd_pluginsToggle"> |
|
295 <radio class="permPluginTemplateRadioDefault" label="&permUseDefault;"/> |
|
296 <radio class="permPluginTemplateRadioAsk" label="&permAskAlways;"/> |
|
297 <radio class="permPluginTemplateRadioAllow" label="&permAllow;"/> |
|
298 <radio class="permPluginTemplateRadioBlock" label="&permBlock;"/> |
|
299 </radiogroup> |
|
300 </hbox> |
|
301 </vbox> |
|
302 </vbox> |
|
303 </vbox> |
|
304 |
|
305 <!-- Security & Privacy --> |
|
306 <vbox id="securityPanel"> |
|
307 <!-- Identity Section --> |
|
308 <groupbox id="security-identity-groupbox" flex="1"> |
|
309 <caption id="security-identity" label="&securityView.identity.header;"/> |
|
310 <grid id="security-identity-grid" flex="1"> |
|
311 <columns> |
|
312 <column/> |
|
313 <column flex="1"/> |
|
314 </columns> |
|
315 <rows id="security-identity-rows"> |
|
316 <!-- Domain --> |
|
317 <row id="security-identity-domain-row"> |
|
318 <label id="security-identity-domain-label" |
|
319 class="fieldLabel" |
|
320 value="&securityView.identity.domain;" |
|
321 control="security-identity-domain-value"/> |
|
322 <textbox id="security-identity-domain-value" |
|
323 class="fieldValue" readonly="true"/> |
|
324 </row> |
|
325 <!-- Owner --> |
|
326 <row id="security-identity-owner-row"> |
|
327 <label id="security-identity-owner-label" |
|
328 class="fieldLabel" |
|
329 value="&securityView.identity.owner;" |
|
330 control="security-identity-owner-value"/> |
|
331 <textbox id="security-identity-owner-value" |
|
332 class="fieldValue" readonly="true"/> |
|
333 </row> |
|
334 <!-- Verifier --> |
|
335 <row id="security-identity-verifier-row"> |
|
336 <label id="security-identity-verifier-label" |
|
337 class="fieldLabel" |
|
338 value="&securityView.identity.verifier;" |
|
339 control="security-identity-verifier-value"/> |
|
340 <textbox id="security-identity-verifier-value" |
|
341 class="fieldValue" readonly="true" /> |
|
342 </row> |
|
343 </rows> |
|
344 </grid> |
|
345 <spacer flex="1"/> |
|
346 <!-- Cert button --> |
|
347 <hbox id="security-view-cert-box" pack="end"> |
|
348 <button id="security-view-cert" label="&securityView.certView;" |
|
349 accesskey="&securityView.accesskey;" |
|
350 oncommand="security.viewCert();"/> |
|
351 </hbox> |
|
352 </groupbox> |
|
353 |
|
354 <!-- Privacy & History section --> |
|
355 <groupbox id="security-privacy-groupbox" flex="1"> |
|
356 <caption id="security-privacy" label="&securityView.privacy.header;" /> |
|
357 <grid id="security-privacy-grid"> |
|
358 <columns> |
|
359 <column flex="1"/> |
|
360 <column flex="1"/> |
|
361 </columns> |
|
362 <rows id="security-privacy-rows"> |
|
363 <!-- History --> |
|
364 <row id="security-privacy-history-row"> |
|
365 <label id="security-privacy-history-label" |
|
366 control="security-privacy-history-value" |
|
367 class="fieldLabel">&securityView.privacy.history;</label> |
|
368 <textbox id="security-privacy-history-value" |
|
369 class="fieldValue" |
|
370 value="&securityView.unknown;" |
|
371 readonly="true"/> |
|
372 </row> |
|
373 <!-- Cookies --> |
|
374 <row id="security-privacy-cookies-row"> |
|
375 <label id="security-privacy-cookies-label" |
|
376 control="security-privacy-cookies-value" |
|
377 class="fieldLabel">&securityView.privacy.cookies;</label> |
|
378 <hbox id="security-privacy-cookies-box" align="center"> |
|
379 <textbox id="security-privacy-cookies-value" |
|
380 class="fieldValue" |
|
381 value="&securityView.unknown;" |
|
382 flex="1" |
|
383 readonly="true"/> |
|
384 <button id="security-view-cookies" |
|
385 label="&securityView.privacy.viewCookies;" |
|
386 accesskey="&securityView.privacy.viewCookies.accessKey;" |
|
387 oncommand="security.viewCookies();"/> |
|
388 </hbox> |
|
389 </row> |
|
390 <!-- Passwords --> |
|
391 <row id="security-privacy-passwords-row"> |
|
392 <label id="security-privacy-passwords-label" |
|
393 control="security-privacy-passwords-value" |
|
394 class="fieldLabel">&securityView.privacy.passwords;</label> |
|
395 <hbox id="security-privacy-passwords-box" align="center"> |
|
396 <textbox id="security-privacy-passwords-value" |
|
397 class="fieldValue" |
|
398 value="&securityView.unknown;" |
|
399 flex="1" |
|
400 readonly="true"/> |
|
401 <button id="security-view-password" |
|
402 label="&securityView.privacy.viewPasswords;" |
|
403 accesskey="&securityView.privacy.viewPasswords.accessKey;" |
|
404 oncommand="security.viewPasswords();"/> |
|
405 </hbox> |
|
406 </row> |
|
407 </rows> |
|
408 </grid> |
|
409 </groupbox> |
|
410 |
|
411 <!-- Technical Details section --> |
|
412 <groupbox id="security-technical-groupbox" flex="1"> |
|
413 <caption id="security-technical" label="&securityView.technical.header;" /> |
|
414 <vbox id="security-technical-box" flex="1"> |
|
415 <label id="security-technical-shortform" class="fieldValue"/> |
|
416 <description id="security-technical-longform1" class="fieldLabel"/> |
|
417 <description id="security-technical-longform2" class="fieldLabel"/> |
|
418 </vbox> |
|
419 </groupbox> |
|
420 </vbox> |
|
421 <!-- Others added by overlay --> |
|
422 </deck> |
|
423 |
|
424 #ifdef XP_MACOSX |
|
425 #include ../browserMountPoints.inc |
|
426 #endif |
|
427 |
|
428 </window> |