From c44cb742bf5caf4cb4550c8c14df48d9847a177d Mon Sep 17 00:00:00 2001 From: "mconnor%myrealbox.com" Date: Wed, 10 Mar 2004 02:56:30 +0000 Subject: [PATCH] bug 117532 UI Pref to prevent sites from taking over context menu - patch by Robert J. Accettura (robert@accettura.com), r=jst sr=ben --- xpfe/components/prefwindow/resources/content/pref-scripts.js | 1 + xpfe/components/prefwindow/resources/content/pref-scripts.xul | 3 +++ .../prefwindow/resources/locale/en-US/pref-scripts.dtd | 1 + 3 files changed, 5 insertions(+) diff --git a/xpfe/components/prefwindow/resources/content/pref-scripts.js b/xpfe/components/prefwindow/resources/content/pref-scripts.js index 770ed1abef53..5e9ea29b1df5 100644 --- a/xpfe/components/prefwindow/resources/content/pref-scripts.js +++ b/xpfe/components/prefwindow/resources/content/pref-scripts.js @@ -43,6 +43,7 @@ function changeDisabledState(state){ document.getElementById("allowWindowStatusChange").disabled = state; document.getElementById("allowWindowFlip").disabled = state; document.getElementById("allowHideStatusBar").disabled = state; + document.getElementById("allowContextmenuDisable").disabled = state; } function javascriptEnabledChange(){ diff --git a/xpfe/components/prefwindow/resources/content/pref-scripts.xul b/xpfe/components/prefwindow/resources/content/pref-scripts.xul index c22675de595b..6ab007eb2c17 100644 --- a/xpfe/components/prefwindow/resources/content/pref-scripts.xul +++ b/xpfe/components/prefwindow/resources/content/pref-scripts.xul @@ -52,6 +52,7 @@ "allowWindowFlip", "allowWindowStatusChange", "allowImageSrcChange", + "allowContextmenuDisable", "allowHideStatusBar"]; ]]> @@ -78,6 +79,8 @@ prefinverse="true" prefstring="dom.disable_window_status_change"/> + diff --git a/xpfe/components/prefwindow/resources/locale/en-US/pref-scripts.dtd b/xpfe/components/prefwindow/resources/locale/en-US/pref-scripts.dtd index 0ab1bd21ebfd..45fbf54e67c4 100644 --- a/xpfe/components/prefwindow/resources/locale/en-US/pref-scripts.dtd +++ b/xpfe/components/prefwindow/resources/locale/en-US/pref-scripts.dtd @@ -14,6 +14,7 @@ +