summaryrefslogtreecommitdiffstats
path: root/comm/mail/components/preferences/permissions.xhtml
diff options
context:
space:
mode:
Diffstat (limited to 'comm/mail/components/preferences/permissions.xhtml')
-rw-r--r--comm/mail/components/preferences/permissions.xhtml128
1 files changed, 128 insertions, 0 deletions
diff --git a/comm/mail/components/preferences/permissions.xhtml b/comm/mail/components/preferences/permissions.xhtml
new file mode 100644
index 0000000000..33340d3f63
--- /dev/null
+++ b/comm/mail/components/preferences/permissions.xhtml
@@ -0,0 +1,128 @@
+<?xml version="1.0"?>
+
+<!-- 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://global/skin/global.css"?>
+<?xml-stylesheet href="chrome://messenger/skin/input-fields.css"?>
+
+<!DOCTYPE dialog>
+
+<window
+ id="PermissionsDialog"
+ class="windowDialog"
+ data-l10n-id="permissions-reminder-window2"
+ xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
+ xmlns:html="http://www.w3.org/1999/xhtml"
+ onload="gPermissionManager.onLoad();"
+ onunload="gPermissionManager.uninit();"
+ persist="width height"
+ onkeypress="gPermissionManager.onWindowKeyPress(event);"
+>
+ <script src="chrome://messenger/content/globalOverlay.js" />
+ <script src="chrome://global/content/editMenuOverlay.js" />
+ <script src="chrome://global/content/treeUtils.js" />
+ <script src="chrome://messenger/content/preferences/permissions.js" />
+
+ <linkset>
+ <html:link
+ rel="localization"
+ href="messenger/preferences/permissions.ftl"
+ />
+ </linkset>
+
+ <keyset>
+ <key
+ data-l10n-id="permission-preferences-close-window"
+ data-l10n-attrs="key"
+ modifiers="accel"
+ oncommand="window.close();"
+ />
+ </keyset>
+
+ <vbox class="contentPane largeDialogContainer" flex="1">
+ <description id="permissionsText" control="url" />
+ <separator class="thin" />
+ <label id="urlLabel" control="url" data-l10n-id="website-address-label" />
+ <hbox align="start" class="input-container">
+ <html:input
+ id="url"
+ type="text"
+ oninput="gPermissionManager.onHostInput(event.target);"
+ onkeypress="gPermissionManager.onHostKeyPress(event);"
+ />
+ </hbox>
+ <hbox pack="end">
+ <button
+ id="btnBlock"
+ disabled="true"
+ data-l10n-id="block-button"
+ oncommand="gPermissionManager.addPermission(Ci.nsIPermissionManager.DENY_ACTION);"
+ />
+ <button
+ id="btnSession"
+ disabled="true"
+ data-l10n-id="allow-session-button"
+ oncommand="gPermissionManager.addPermission(Ci.nsICookiePermission.ACCESS_SESSION);"
+ />
+ <button
+ id="btnAllow"
+ disabled="true"
+ data-l10n-id="allow-button"
+ default="true"
+ oncommand="gPermissionManager.addPermission(Ci.nsIPermissionManager.ALLOW_ACTION);"
+ />
+ </hbox>
+ <separator class="thin" />
+ <tree
+ id="permissionsTree"
+ flex="1"
+ style="height: 18em"
+ hidecolumnpicker="true"
+ onkeypress="gPermissionManager.onPermissionKeyPress(event)"
+ onselect="gPermissionManager.onPermissionSelected();"
+ >
+ <treecols>
+ <treecol
+ id="siteCol"
+ data-l10n-id="treehead-sitename-label"
+ data-field-name="rawHost"
+ persist="width"
+ />
+ <splitter class="tree-splitter" />
+ <treecol
+ id="statusCol"
+ data-l10n-id="treehead-status-label"
+ data-field-name="capability"
+ persist="width"
+ />
+ </treecols>
+ <treechildren />
+ </tree>
+ </vbox>
+ <vbox>
+ <hbox class="actionButtons" flex="1">
+ <button
+ id="removePermission"
+ disabled="true"
+ data-l10n-id="remove-site-button"
+ oncommand="gPermissionManager.onPermissionDeleted();"
+ />
+ <button
+ id="removeAllPermissions"
+ data-l10n-id="remove-all-site-button"
+ oncommand="gPermissionManager.onAllPermissionsDeleted();"
+ />
+ </hbox>
+ <spacer flex="1" />
+ <hbox class="actionButtons" pack="end" flex="1">
+ <button oncommand="window.close();" data-l10n-id="cancel-button" />
+ <button
+ id="btnApplyChanges"
+ oncommand="gPermissionManager.onApplyChanges();"
+ data-l10n-id="save-button"
+ />
+ </hbox>
+ </vbox>
+</window>