Wed, 31 Dec 2014 06:09:35 +0100
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 | |
michael@0 | 3 | # -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- |
michael@0 | 4 | # This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 5 | # License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 6 | # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
michael@0 | 7 | |
michael@0 | 8 | <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> |
michael@0 | 9 | <?xml-stylesheet href="chrome://browser/skin/preferences/preferences.css" type="text/css"?> |
michael@0 | 10 | |
michael@0 | 11 | <!DOCTYPE dialog SYSTEM "chrome://browser/locale/preferences/permissions.dtd" > |
michael@0 | 12 | |
michael@0 | 13 | <window id="PermissionsDialog" class="windowDialog" |
michael@0 | 14 | windowtype="Browser:Permissions" |
michael@0 | 15 | title="&window.title;" |
michael@0 | 16 | xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" |
michael@0 | 17 | style="width: &window.width;;" |
michael@0 | 18 | onload="gPermissionManager.onLoad();" |
michael@0 | 19 | onunload="gPermissionManager.uninit();" |
michael@0 | 20 | persist="screenX screenY width height" |
michael@0 | 21 | onkeypress="gPermissionManager.onWindowKeyPress(event);"> |
michael@0 | 22 | |
michael@0 | 23 | <script src="chrome://global/content/treeUtils.js"/> |
michael@0 | 24 | <script src="chrome://browser/content/preferences/permissions.js"/> |
michael@0 | 25 | |
michael@0 | 26 | <stringbundle id="bundlePreferences" |
michael@0 | 27 | src="chrome://browser/locale/preferences/preferences.properties"/> |
michael@0 | 28 | |
michael@0 | 29 | <keyset> |
michael@0 | 30 | <key key="&windowClose.key;" modifiers="accel" oncommand="window.close();"/> |
michael@0 | 31 | </keyset> |
michael@0 | 32 | |
michael@0 | 33 | <vbox class="contentPane" flex="1"> |
michael@0 | 34 | <description id="permissionsText" control="url"/> |
michael@0 | 35 | <separator class="thin"/> |
michael@0 | 36 | <label id="urlLabel" control="url" value="&address.label;" accesskey="&address.accesskey;"/> |
michael@0 | 37 | <hbox align="start"> |
michael@0 | 38 | <textbox id="url" flex="1" |
michael@0 | 39 | oninput="gPermissionManager.onHostInput(event.target);" |
michael@0 | 40 | onkeypress="gPermissionManager.onHostKeyPress(event);"/> |
michael@0 | 41 | </hbox> |
michael@0 | 42 | <hbox pack="end"> |
michael@0 | 43 | <button id="btnBlock" disabled="true" label="&block.label;" accesskey="&block.accesskey;" |
michael@0 | 44 | oncommand="gPermissionManager.addPermission(nsIPermissionManager.DENY_ACTION);"/> |
michael@0 | 45 | <button id="btnSession" disabled="true" label="&session.label;" accesskey="&session.accesskey;" |
michael@0 | 46 | oncommand="gPermissionManager.addPermission(nsICookiePermission.ACCESS_SESSION);"/> |
michael@0 | 47 | <button id="btnAllow" disabled="true" label="&allow.label;" default="true" accesskey="&allow.accesskey;" |
michael@0 | 48 | oncommand="gPermissionManager.addPermission(nsIPermissionManager.ALLOW_ACTION);"/> |
michael@0 | 49 | </hbox> |
michael@0 | 50 | <separator class="thin"/> |
michael@0 | 51 | <tree id="permissionsTree" flex="1" style="height: 18em;" |
michael@0 | 52 | hidecolumnpicker="true" |
michael@0 | 53 | onkeypress="gPermissionManager.onPermissionKeyPress(event)" |
michael@0 | 54 | onselect="gPermissionManager.onPermissionSelected();"> |
michael@0 | 55 | <treecols> |
michael@0 | 56 | <treecol id="siteCol" label="&treehead.sitename.label;" flex="3" |
michael@0 | 57 | onclick="gPermissionManager.onPermissionSort('rawHost');" persist="width"/> |
michael@0 | 58 | <splitter class="tree-splitter"/> |
michael@0 | 59 | <treecol id="statusCol" label="&treehead.status.label;" flex="1" |
michael@0 | 60 | onclick="gPermissionManager.onPermissionSort('capability');" persist="width"/> |
michael@0 | 61 | </treecols> |
michael@0 | 62 | <treechildren/> |
michael@0 | 63 | </tree> |
michael@0 | 64 | </vbox> |
michael@0 | 65 | <hbox align="end"> |
michael@0 | 66 | <hbox class="actionButtons" flex="1"> |
michael@0 | 67 | <button id="removePermission" disabled="true" |
michael@0 | 68 | accesskey="&removepermission.accesskey;" |
michael@0 | 69 | icon="remove" label="&removepermission.label;" |
michael@0 | 70 | oncommand="gPermissionManager.onPermissionDeleted();"/> |
michael@0 | 71 | <button id="removeAllPermissions" |
michael@0 | 72 | icon="clear" label="&removeallpermissions.label;" |
michael@0 | 73 | accesskey="&removeallpermissions.accesskey;" |
michael@0 | 74 | oncommand="gPermissionManager.onAllPermissionsDeleted();"/> |
michael@0 | 75 | <spacer flex="1"/> |
michael@0 | 76 | #ifndef XP_MACOSX |
michael@0 | 77 | <button oncommand="close();" icon="close" |
michael@0 | 78 | label="&button.close.label;" accesskey="&button.close.accesskey;"/> |
michael@0 | 79 | #endif |
michael@0 | 80 | </hbox> |
michael@0 | 81 | <resizer type="window" dir="bottomend"/> |
michael@0 | 82 | </hbox> |
michael@0 | 83 | </window> |