browser/base/content/pageinfo/pageInfo.xul

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

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

mercurial