browser/components/preferences/permissions.xul

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/browser/components/preferences/permissions.xul	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,83 @@
     1.4 +<?xml version="1.0"?>
     1.5 +
     1.6 +# -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
     1.7 +# This Source Code Form is subject to the terms of the Mozilla Public
     1.8 +# License, v. 2.0. If a copy of the MPL was not distributed with this
     1.9 +# file, You can obtain one at http://mozilla.org/MPL/2.0/.
    1.10 +
    1.11 +<?xml-stylesheet href="chrome://global/skin/" type="text/css"?> 
    1.12 +<?xml-stylesheet href="chrome://browser/skin/preferences/preferences.css" type="text/css"?> 
    1.13 +
    1.14 +<!DOCTYPE dialog SYSTEM "chrome://browser/locale/preferences/permissions.dtd" >
    1.15 +
    1.16 +<window id="PermissionsDialog" class="windowDialog"
    1.17 +        windowtype="Browser:Permissions"
    1.18 +        title="&window.title;"
    1.19 +        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
    1.20 +        style="width: &window.width;;"
    1.21 +        onload="gPermissionManager.onLoad();"
    1.22 +        onunload="gPermissionManager.uninit();"
    1.23 +        persist="screenX screenY width height"
    1.24 +        onkeypress="gPermissionManager.onWindowKeyPress(event);">
    1.25 +
    1.26 +  <script src="chrome://global/content/treeUtils.js"/>
    1.27 +  <script src="chrome://browser/content/preferences/permissions.js"/>
    1.28 +
    1.29 +  <stringbundle id="bundlePreferences"
    1.30 +                src="chrome://browser/locale/preferences/preferences.properties"/>
    1.31 +
    1.32 +  <keyset>
    1.33 +    <key key="&windowClose.key;" modifiers="accel" oncommand="window.close();"/>
    1.34 +  </keyset>
    1.35 +  
    1.36 +  <vbox class="contentPane" flex="1">
    1.37 +    <description id="permissionsText" control="url"/>
    1.38 +    <separator class="thin"/>
    1.39 +    <label id="urlLabel" control="url" value="&address.label;" accesskey="&address.accesskey;"/>
    1.40 +    <hbox align="start">
    1.41 +      <textbox id="url" flex="1" 
    1.42 +               oninput="gPermissionManager.onHostInput(event.target);"
    1.43 +               onkeypress="gPermissionManager.onHostKeyPress(event);"/>
    1.44 +    </hbox>
    1.45 +    <hbox pack="end">
    1.46 +      <button id="btnBlock" disabled="true" label="&block.label;" accesskey="&block.accesskey;"
    1.47 +              oncommand="gPermissionManager.addPermission(nsIPermissionManager.DENY_ACTION);"/>
    1.48 +      <button id="btnSession" disabled="true" label="&session.label;" accesskey="&session.accesskey;"
    1.49 +              oncommand="gPermissionManager.addPermission(nsICookiePermission.ACCESS_SESSION);"/>
    1.50 +      <button id="btnAllow" disabled="true" label="&allow.label;" default="true" accesskey="&allow.accesskey;"
    1.51 +              oncommand="gPermissionManager.addPermission(nsIPermissionManager.ALLOW_ACTION);"/>
    1.52 +    </hbox>
    1.53 +    <separator class="thin"/>
    1.54 +    <tree id="permissionsTree" flex="1" style="height: 18em;"
    1.55 +          hidecolumnpicker="true"
    1.56 +          onkeypress="gPermissionManager.onPermissionKeyPress(event)"
    1.57 +          onselect="gPermissionManager.onPermissionSelected();">
    1.58 +      <treecols>
    1.59 +        <treecol id="siteCol" label="&treehead.sitename.label;" flex="3"
    1.60 +                onclick="gPermissionManager.onPermissionSort('rawHost');" persist="width"/>
    1.61 +        <splitter class="tree-splitter"/>
    1.62 +        <treecol id="statusCol" label="&treehead.status.label;" flex="1"
    1.63 +                onclick="gPermissionManager.onPermissionSort('capability');" persist="width"/>
    1.64 +      </treecols>
    1.65 +      <treechildren/>
    1.66 +    </tree>
    1.67 +  </vbox>
    1.68 +  <hbox align="end">
    1.69 +    <hbox class="actionButtons" flex="1">
    1.70 +      <button id="removePermission" disabled="true"
    1.71 +              accesskey="&removepermission.accesskey;"
    1.72 +              icon="remove" label="&removepermission.label;"
    1.73 +              oncommand="gPermissionManager.onPermissionDeleted();"/>
    1.74 +      <button id="removeAllPermissions"
    1.75 +              icon="clear" label="&removeallpermissions.label;"
    1.76 +              accesskey="&removeallpermissions.accesskey;" 
    1.77 +              oncommand="gPermissionManager.onAllPermissionsDeleted();"/>
    1.78 +      <spacer flex="1"/>
    1.79 +#ifndef XP_MACOSX
    1.80 +      <button oncommand="close();" icon="close"
    1.81 +              label="&button.close.label;" accesskey="&button.close.accesskey;"/>
    1.82 +#endif
    1.83 +    </hbox>
    1.84 +    <resizer type="window" dir="bottomend"/>
    1.85 +  </hbox>
    1.86 +</window>

mercurial