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