summaryrefslogtreecommitdiffstats
path: root/comm/suite/browser/pageinfo/pageInfo.xul
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--comm/suite/browser/pageinfo/pageInfo.xul531
1 files changed, 531 insertions, 0 deletions
diff --git a/comm/suite/browser/pageinfo/pageInfo.xul b/comm/suite/browser/pageinfo/pageInfo.xul
new file mode 100644
index 0000000000..8f4dc2ae96
--- /dev/null
+++ b/comm/suite/browser/pageinfo/pageInfo.xul
@@ -0,0 +1,531 @@
+<?xml version="1.0"?><!-- -*- Mode: nXML; indent-tabs-mode: nil -*- -->
+<!-- This Source Code Form is subject to the terms of the Mozilla Public
+ - License, v. 2.0. If a copy of the MPL was not distributed with this
+ - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
+
+<?xml-stylesheet href="chrome://navigator/skin/" type="text/css"?>
+<?xml-stylesheet href="chrome://navigator/content/pageinfo/pageInfo.css" type="text/css"?>
+<?xml-stylesheet href="chrome://navigator/skin/pageInfo.css" type="text/css"?>
+
+<!DOCTYPE window [
+ <!ENTITY % pageInfoDTD SYSTEM "chrome://navigator/locale/pageInfo.dtd">
+ %pageInfoDTD;
+]>
+
+<window id="main-window"
+ xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
+ windowtype="Browser:page-info"
+ onload="onLoadPageInfo()"
+ onunload="onUnloadPageInfo()"
+ align="stretch" style="&pageInfoWindow.dimensions;"
+ persist="screenX screenY width height sizemode">
+
+ <script src="chrome://global/content/globalOverlay.js"/>
+ <script src="chrome://global/content/contentAreaUtils.js"/>
+ <script src="chrome://global/content/treeUtils.js"/>
+ <script src="chrome://communicator/content/utilityOverlay.js"/>
+ <script src="chrome://navigator/content/pageinfo/pageInfo.js"/>
+ <script src="chrome://navigator/content/pageinfo/feeds.js"/>
+ <script src="chrome://navigator/content/pageinfo/permissions.js"/>
+ <script src="chrome://navigator/content/pageinfo/security.js"/>
+ <script src="chrome://help/content/contextHelp.js"/>
+ <script src="chrome://communicator/content/tasksOverlay.js"/>
+
+ <stringbundleset id="pageinfobundleset">
+ <stringbundle id="pageinfobundle" src="chrome://navigator/locale/pageInfo.properties"/>
+ <stringbundle id="pkiBundle" src="chrome://pippki/locale/pippki.properties"/>
+ </stringbundleset>
+
+ <commandset id="pageInfoCommandSet">
+ <command id="cmd_close" oncommand="window.close();"/>
+ <command id="cmd_help" oncommand="doHelpButton();"/>
+ <command id="cmd_copy" oncommand="doCopy(false);"/>
+ <command id="cmd_selectall" oncommand="doSelectAll();"/>
+
+ <!-- links tab -->
+ <command id="cmd_openInNewTab" oncommand="onOpenIn('tab');"/>
+ <command id="cmd_openInNewWindow" oncommand="onOpenIn('window');"/>
+ <command id="cmd_copyLinks" oncommand="doCopy(true);"/>
+ </commandset>
+
+ <keyset>
+ <key key="&closeWindow.key;" modifiers="accel" command="cmd_close"/>
+ <key keycode="VK_ESCAPE" command="cmd_close"/>
+ <key key="." modifiers="meta" command="cmd_close"/>
+ <key keycode="VK_F1" command="cmd_help"/>
+ <key key="&openHelpMac.key;" modifiers="meta" command="cmd_help"/>
+ <key key="&copy.key;" modifiers="accel" command="cmd_copy"/>
+ <key key="&selectall.key;" modifiers="accel" command="cmd_selectall"/>
+ <key key="&selectall.key;" modifiers="alt" command="cmd_selectall"/>
+ </keyset>
+
+ <menupopup id="picontext">
+ <menuitem id="menu_selectall" label="&selectall.label;" command="cmd_selectall" accesskey="&selectall.accesskey;"/>
+ <menuitem id="menu_copy" label="&copy.label;" command="cmd_copy" accesskey="&copy.accesskey;"/>
+ </menupopup>
+
+ <menupopup id="piLinksContext">
+ <menuitem id="menu_openInNewTab"
+ label="&openInNewTab.label;"
+ command="cmd_openInNewTab"
+ accesskey="&openInNewTab.accesskey;"/>
+ <menuitem id="menu_openInNewWindow"
+ label="&openInNewWindow.label;"
+ command="cmd_openInNewWindow"
+ accesskey="&openInNewWindow.accesskey;"/>
+ <menuitem id="menu_selectall_links"
+ label="&selectall.label;"
+ command="cmd_selectall"
+ accesskey="&selectall.accesskey;"/>
+ <menuitem id="menu_copyLinks"
+ label="&copyLinks.label;"
+ command="cmd_copyLinks"
+ accesskey="&copyLinks.accesskey;"/>
+ </menupopup>
+
+ <tabbox id="tabbox" flex="1">
+ <vbox id="dragbox">
+ <tabs id="tabs"
+ onselect="[gImageView, gFormView, gLinkView].forEach(ensureSelection);">
+ <tab id="generalTab"
+ label="&generalTab;"
+ accesskey="&generalTab.accesskey;"/>
+ <tab id="mediaTab"
+ label="&mediaTab;"
+ accesskey="&mediaTab.accesskey;"/>
+ <tab id="feedTab"
+ label="&feedTab;"
+ accesskey="&feedTab.accesskey;"/>
+ <tab id="permTab"
+ label="&permTab;"
+ accesskey="&permTab.accesskey;"/>
+ <tab id="formsTab"
+ label="&formsTab;"
+ accesskey="&formsTab.accesskey;"/>
+ <tab id="linksTab"
+ label="&linksTab;"
+ accesskey="&linksTab.accesskey;"/>
+ <tab id="securityTab"
+ label="&securityTab;"
+ accesskey="&securityTab.accesskey;"/>
+ <!-- Others added by overlay -->
+ </tabs>
+ </vbox>
+
+ <tabpanels id="mainDeck" flex="1">
+ <!-- General page information -->
+ <vbox id="generalPanel">
+ <grid>
+ <columns>
+ <column/>
+ <column class="gridSeparator"/>
+ <column flex="1"/>
+ </columns>
+ <rows>
+ <row id="generalTitle">
+ <label control="titletext" value="&generalTitle;"/>
+ <separator/>
+ <textbox readonly="true" id="titletext"/>
+ </row>
+ <row>
+ <label control="urltext" value="&generalURL;"/>
+ <separator/>
+ <textbox readonly="true" id="urltext" class="urltext"/>
+ </row>
+ <row>
+ <separator class="thin"/>
+ </row>
+ <row>
+ <label control="typetext" value="&generalType;"/>
+ <separator/>
+ <textbox readonly="true" id="typetext"/>
+ </row>
+ <row>
+ <label control="modetext" value="&generalMode;"/>
+ <separator/>
+ <textbox readonly="true" crop="end" id="modetext"/>
+ </row>
+ <row>
+ <label control="encodingtext" value="&generalEncoding2;"/>
+ <separator/>
+ <textbox readonly="true" id="encodingtext"/>
+ </row>
+ <row>
+ <label control="sizetext" value="&generalSize;"/>
+ <separator/>
+ <textbox readonly="true" id="sizetext"/>
+ </row>
+ <row>
+ <label control="refertext" value="&generalReferrer;"/>
+ <separator/>
+ <textbox readonly="true" id="refertext" class="urltext"/>
+ </row>
+ <row>
+ <separator class="thin"/>
+ </row>
+ <row>
+ <label control="modifiedtext" value="&generalModified;"/>
+ <separator/>
+ <textbox readonly="true" id="modifiedtext"/>
+ </row>
+ </rows>
+ </grid>
+ <separator class="thin"/>
+ <groupbox id="metaTags" flex="1">
+ <caption id="metaTagsCaption"/>
+ <tree id="metatree" flex="1" hidecolumnpicker="true" contextmenu="picontext">
+ <treecols>
+ <treecol id="meta-name" label="&generalMetaName;"
+ persist="width" flex="1"/>
+ <splitter class="tree-splitter"/>
+ <treecol id="meta-content" label="&generalMetaContent;"
+ persist="width" flex="4"/>
+ </treecols>
+ <treechildren flex="1"/>
+ </tree>
+ </groupbox>
+ <groupbox id="securityBox">
+ <caption id="securityBoxCaption" label="&securityHeader;"/>
+ <description id="general-security-identity" class="indent header"/>
+ <description id="general-security-privacy" class="indent header"/>
+ <hbox align="right">
+ <button id="security-view-details" label="&generalSecurityDetails;"
+ accesskey="&generalSecurityDetails.accesskey;"
+ oncommand="onClickMore();"/>
+ </hbox>
+ </groupbox>
+ </vbox>
+
+ <!-- Media information -->
+ <vbox id="mediaPanel">
+ <tree id="imagetree" onselect="onImageSelect();" contextmenu="picontext"
+ ondragstart="onBeginLinkDrag(event,'image-address','image-alt')">
+ <treecols>
+ <treecol sortSeparators="true" primary="true" persist="width" flex="10"
+ width="10" id="image-address" label="&mediaAddress;"/>
+ <splitter class="tree-splitter"/>
+ <treecol sortSeparators="true" persist="hidden width" flex="2"
+ width="2" id="image-type" label="&mediaType;"/>
+ <splitter class="tree-splitter"/>
+ <treecol sortSeparators="true" hidden="true" persist="hidden width" flex="2"
+ width="2" id="image-size" label="&mediaSize;"/>
+ <splitter class="tree-splitter"/>
+ <treecol sortSeparators="true" hidden="true" persist="hidden width" flex="4"
+ width="4" id="image-alt" label="&mediaAltHeader;"/>
+ <splitter class="tree-splitter"/>
+ <treecol sortSeparators="true" hidden="true" persist="hidden width" flex="1"
+ width="1" id="image-count" label="&mediaCount;"/>
+ </treecols>
+ <treechildren flex="1"/>
+ </tree>
+ <splitter orient="vertical" id="mediaSplitter"/>
+ <vbox flex="1" id="mediaPreviewBox">
+ <grid id="mediaGrid">
+ <columns>
+ <column id="mediaLabelColumn"/>
+ <column class="gridSeparator"/>
+ <column flex="1"/>
+ </columns>
+ <rows>
+ <row>
+ <label control="imageurltext" value="&mediaLocation;"/>
+ <separator/>
+ <textbox readonly="true" id="imageurltext" class="urltext"/>
+ </row>
+ <row>
+ <label control="imagetypetext" value="&generalType;"/>
+ <separator/>
+ <textbox readonly="true" id="imagetypetext"/>
+ </row>
+ <row>
+ <label control="imagesourcetext" value="&generalSource;"/>
+ <separator/>
+ <textbox readonly="true" id="imagesourcetext"/>
+ </row>
+ <row>
+ <label control="imagesizetext" value="&generalSize;"/>
+ <separator/>
+ <textbox readonly="true" id="imagesizetext"/>
+ </row>
+ <row>
+ <label control="imagedimensiontext" value="&mediaDimension;"/>
+ <separator/>
+ <textbox readonly="true" id="imagedimensiontext"/>
+ </row>
+ <row>
+ <label control="imagetext" value="&mediaText;"/>
+ <separator/>
+ <textbox readonly="true" id="imagetext"/>
+ </row>
+ <row>
+ <label control="imagelongdesctext" value="&mediaLongdesc;"/>
+ <separator/>
+ <textbox readonly="true" id="imagelongdesctext"/>
+ </row>
+ </rows>
+ </grid>
+ <hbox align="end">
+ <vbox>
+ <checkbox id="blockImage"
+ hidden="true"
+ oncommand="onBlockImage(this.checked);"
+ accesskey="&mediaBlockImage.accesskey;"/>
+ <label control="thepreviewimage" value="&mediaPreview;" class="header"/>
+ </vbox>
+ <spacer flex="1"/>
+ <button label="&selectall.label;" accesskey="&selectall.accesskey;"
+ id="selectallbutton"
+ oncommand="doSelectAllMedia();"/>
+ <button label="&mediaSaveAs;" accesskey="&mediaSaveAs.accesskey;"
+ icon="save" id="imagesaveasbutton" disabled="true"
+ oncommand="saveMedia();"/>
+ </hbox>
+ <vbox class="inset iframe" flex="1" pack="center">
+ <hbox id="theimagecontainer" pack="center">
+ <image id="thepreviewimage"/>
+ </hbox>
+ <hbox id="brokenimagecontainer" pack="center" collapsed="true">
+ <image id="brokenimage" src="resource://gre-resources/broken-image.png"/>
+ </hbox>
+ </vbox>
+ </vbox>
+ <hbox id="mediaSaveBox" collapsed="true">
+ <spacer flex="1"/>
+ <button label="&mediaSaveAs;" accesskey="&mediaSaveAs2.accesskey;"
+ icon="save" oncommand="saveMedia();"/>
+ </hbox>
+ </vbox>
+
+ <!-- Feeds -->
+ <vbox id="feedPanel">
+ <richlistbox id="feedListbox" flex="1"/>
+ </vbox>
+
+ <!-- Permissions -->
+ <vbox id="permPanel">
+ <hbox>
+ <label control="hostText" value="&permissionsFor;"/>
+ <textbox id="hostText" class="header" readonly="true"
+ crop="end" flex="1"/>
+ </hbox>
+
+ <!--
+ The richlist below is generated by permissions.js.
+ The labels point to the radio groups to give the radio buttons
+ an accessible context. The accessible context for the preceeding
+ checkbox is already taken care of through the richlistitem grouping.
+ -->
+ <richlistbox id="permList" flex="1"/>
+ </vbox>
+
+ <!-- Form information -->
+ <vbox>
+ <tree id="formtree" class="fixedsize" onselect="onFormSelect();" contextmenu="picontext">
+ <treecols>
+ <splitter class="tree-splitter"/>
+ <treecol sortSeparators="true" primary="true" persist="width" flex="1"
+ width="1" id="form-name" label="&formName;"/>
+ <splitter class="tree-splitter"/>
+ <treecol sortSeparators="true" persist="hidden width" flex="3"
+ width="3" id="form-method" label="&formMethod;"/>
+ <splitter class="tree-splitter"/>
+ <treecol sortSeparators="true" persist="hidden width" flex="2"
+ width="2" id="form-action" label="&formAction;"/>
+ </treecols>
+ <treechildren flex="1"/>
+ </tree>
+ <splitter orient="vertical"/>
+ <vbox flex="1">
+ <textbox readonly="true" class="header" id="formname"/>
+ <grid>
+ <columns>
+ <column/>
+ <column style="width: .5em;"/>
+ <column flex="1"/>
+ </columns>
+ <rows>
+ <row>
+ <label control="formenctype" value="&formEncoding;"/>
+ <separator/>
+ <textbox readonly="true" id="formenctype"/>
+ </row>
+ <row>
+ <label control="formtarget" value="&formTarget;"/>
+ <separator/>
+ <textbox readonly="true" class="label" id="formtarget"/>
+ </row>
+ </rows>
+ </grid>
+ <label control="formpreview" class="header" value="&formFields;"/>
+ <tree id="formpreview" flex="1" contextmenu="picontext">
+ <treecols>
+ <treecol sortSeparators="true" primary="true" persist="width" flex="3"
+ width="3" id="field-label" label="&formLabel;"/>
+ <splitter class="tree-splitter"/>
+ <treecol sortSeparators="true" persist="hidden width" flex="3"
+ width="3" id="field-field" label="&formFName;"/>
+ <splitter class="tree-splitter"/>
+ <treecol sortSeparators="true" persist="hidden width" flex="1"
+ width="1" id="field-type" label="&formType;"/>
+ <splitter class="tree-splitter"/>
+ <treecol sortSeparators="true" persist="hidden width" flex="3"
+ width="3" id="field-value" label="&formCValue;"/>
+ </treecols>
+ <treechildren flex="1"/>
+ </tree>
+ </vbox>
+ </vbox>
+
+ <!-- Link info -->
+ <vbox>
+ <tree id="linktree"
+ flex="1"
+ ondragstart="onBeginLinkDrag(event,'link-address','link-name')"
+ contextmenu="piLinksContext">
+ <treecols>
+ <treecol sortSeparators="true" primary="true" persist="width" flex="5"
+ width="5" id="link-name" label="&linkName;"/>
+ <splitter class="tree-splitter"/>
+ <treecol sortSeparators="true" persist="hidden width" flex="7"
+ width="7" id="link-address" label="&linkAddress;"/>
+ <splitter class="tree-splitter"/>
+ <treecol sortSeparators="true" persist="hidden width" flex="2"
+ width="2" id="link-type" label="&linkType;"/>
+ <splitter class="tree-splitter"/>
+ <treecol sortSeparators="true" persist="hidden width" flex="2"
+ width="2" id="link-target" label="&linkTarget;" hidden="true"/>
+ <splitter class="tree-splitter"/>
+ <treecol sortSeparators="true" persist="hidden width" flex="1"
+ width="1" id="link-accesskey" label="&linkAccessKey;" hidden="true"/>
+ </treecols>
+ <treechildren flex="1"/>
+ </tree>
+ </vbox>
+
+ <!-- Security & Privacy -->
+ <vbox id="securityPanel">
+ <!-- Identity Section -->
+ <groupbox id="security-identity-groupbox" flex="1">
+ <caption id="security-identity" label="&securityView.identity.header;"/>
+ <hbox>
+ <image id="identity-icon"/>
+ <grid flex="1">
+ <columns>
+ <column/>
+ <column flex="1"/>
+ </columns>
+ <rows>
+ <row><!-- Domain -->
+ <label control="security-identity-domain-value"
+ id="security-identity-domain-label"
+ class="fieldLabel"
+ value="&securityView.identity.domain;"/>
+ <textbox id="security-identity-domain-value"
+ class="fieldValue" readonly="true"/>
+ </row>
+ <row><!-- Owner -->
+ <label control="security-identity-owner-value"
+ id="security-identity-owner-label"
+ class="fieldLabel"
+ value="&securityView.identity.owner;"/>
+ <textbox id="security-identity-owner-value"
+ class="fieldValue" readonly="true"/>
+ </row>
+ <row><!-- Verifier -->
+ <label control="security-identity-verifier-value"
+ id="security-identity-verifier-label"
+ class="fieldLabel"
+ value="&securityView.identity.verifier;"/>
+ <textbox id="security-identity-verifier-value"
+ class="fieldValue" readonly="true"/>
+ </row>
+ <!-- Certificate Validity -->
+ <row id="security-identity-validity-row">
+ <label id="security-identity-validity-label"
+ class="fieldLabel"
+ value="&securityView.identity.validity;"
+ control="security-identity-validity-value"/>
+ <textbox id="security-identity-validity-value"
+ class="fieldValue" readonly="true" />
+ </row>
+ </rows>
+ </grid>
+ </hbox>
+ <spacer flex="1"/>
+ <hbox pack="end"><!-- Cert button -->
+ <button id="security-view-cert" label="&securityView.certView;"
+ accesskey="&securityView.accesskey;"
+ oncommand="security.viewCert();"/>
+ </hbox>
+ </groupbox>
+
+ <!-- Privacy & History section -->
+ <groupbox id="security-privacy-groupbox" flex="1">
+ <caption id="security-privacy" label="&securityView.privacy.header;" />
+ <grid>
+ <columns>
+ <column flex="1"/>
+ <column flex="1"/>
+ </columns>
+ <rows>
+ <row align="center"><!-- History -->
+ <label id="security-privacy-history-label"
+ control="security-privacy-history-value"
+ class="fieldLabel">&securityView.privacy.history;</label>
+ <textbox id="security-privacy-history-value"
+ class="fieldValue"
+ value="&securityView.unknown;"
+ readonly="true"/>
+ </row>
+ <row align="center"><!-- Cookies -->
+ <label id="security-privacy-cookies-label"
+ control="security-privacy-cookies-value"
+ class="fieldLabel">&securityView.privacy.cookies;</label>
+ <hbox align="center">
+ <textbox id="security-privacy-cookies-value"
+ class="fieldValue"
+ value="&securityView.unknown;"
+ flex="1"
+ readonly="true"/>
+ <button id="security-view-cookies"
+ label="&securityView.privacy.viewCookies;"
+ accesskey="&securityView.privacy.viewCookies.accessKey;"
+ oncommand="security.viewCookies();"/>
+ </hbox>
+ </row>
+ <row align="center"><!-- Passwords -->
+ <label id="security-privacy-passwords-label"
+ control="security-privacy-passwords-value"
+ class="fieldLabel">&securityView.privacy.passwords;</label>
+ <hbox align="center">
+ <textbox id="security-privacy-passwords-value"
+ class="fieldValue"
+ value="&securityView.unknown;"
+ flex="1"
+ readonly="true"/>
+ <button id="security-view-password"
+ label="&securityView.privacy.viewPasswords;"
+ accesskey="&securityView.privacy.viewPasswords.accessKey;"
+ oncommand="security.viewPasswords();"/>
+ </hbox>
+ </row>
+ </rows>
+ </grid>
+ </groupbox>
+
+ <!-- Technical Details section -->
+ <groupbox id="security-technical-groupbox" flex="1">
+ <caption id="security-technical" label="&securityView.technical.header;" />
+ <vbox flex="1">
+ <label id="security-technical-shortform" class="fieldValue"/>
+ <description id="security-technical-longform1" class="fieldLabel"/>
+ <description id="security-technical-longform2" class="fieldLabel"/>
+ <description id="security-technical-certificate-transparency" class="fieldLabel"/>
+ </vbox>
+ </groupbox>
+ </vbox>
+
+ <!-- Others added by overlay -->
+ </tabpanels>
+ </tabbox>
+</window>