browser/components/preferences/advanced-scripts.xul
author Daniel Holbert <dholbert@cs.stanford.edu>
Fri, 15 Mar 2013 10:52:10 -0700
changeset 124959 8c4e1ad6d30b0e179ac4d322d18af827a25047f2
parent 102366 6d0ce062c403c25589e153b835650eebaa8d9e7d
permissions -rw-r--r--
Bug 849086: Remove unused *_CLASSNAME defines. r=bsmedberg

<?xml version="1.0"?>

<!-- -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- -->
<!-- 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/. -->

<!DOCTYPE prefwindow SYSTEM "chrome://browser/locale/preferences/advanced-scripts.dtd">

<?xml-stylesheet href="chrome://global/skin/"?>

<prefwindow id="AdvancedJSDialog" type="child"
            xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
            title="&advancedJSDialog.title;"
            dlgbuttons="accept,cancel,help"
            ondialoghelp="openPrefsHelp()">

  <script type="application/javascript" src="chrome://browser/content/utilityOverlay.js"/>

  <prefpane id="AdvancedJSDialogPane"
            helpTopic="prefs-advanced-javascript">

    <preferences>
     <preference id="dom.event.contextmenu.enabled"  name="dom.event.contextmenu.enabled"  type="bool"/>
     <preference id="dom.disable_window_move_resize" name="dom.disable_window_move_resize" type="bool" inverted="true"/>
     <preference id="dom.disable_window_flip"        name="dom.disable_window_flip"        type="bool" inverted="true"/>
    </preferences>
    
    <script type="application/javascript" src="chrome://browser/content/preferences/advanced-scripts.js"/>

    <stringbundle id="preferencesBundle" src="chrome://browser/locale/preferences/preferences.properties"/>

    <description value="&allowScripts.label;"/>

    <checkbox id="moveResizePopupWindows" label="&moveResizePopupWindows.label;"
              accesskey="&moveResizePopupWindows.accesskey;"
              preference="dom.disable_window_move_resize"/>
    <checkbox id="raiseLowerWindows" label="&raiseLowerWindows.label;" 
              accesskey="&raiseLowerWindows.accesskey;"
              preference="dom.disable_window_flip"/>
    <checkbox id="disableContextMenus" label="&disableContextMenus.label;" 
              accesskey="&disableContextMenus.accesskey;"
              preference="dom.event.contextmenu.enabled"/>

  </prefpane>
</prefwindow>