bug 117532 UI Pref to prevent sites from taking over context menu - patch by Robert J. Accettura (robert@accettura.com), r=jst sr=ben

This commit is contained in:
mconnor%myrealbox.com 2004-03-10 02:56:30 +00:00
Родитель 9383b61a6e
Коммит c44cb742bf
3 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -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(){

Просмотреть файл

@ -52,6 +52,7 @@
"allowWindowFlip",
"allowWindowStatusChange",
"allowImageSrcChange",
"allowContextmenuDisable",
"allowHideStatusBar"];
]]>
</script>
@ -78,6 +79,8 @@
prefinverse="true" prefstring="dom.disable_window_status_change"/>
<listitem type="checkbox" id="allowImageSrcChange" label="&allowWindowImageSrcChange.label;"
prefinverse="true" prefstring="dom.disable_image_src_set"/>
<listitem type="checkbox" id="allowContextmenuDisable" label="&allowContextmenuDisable.label;"
prefinverse="true" prefstring="dom.event.contextmenu.enabled"/>
</listbox>
</groupbox>

Просмотреть файл

@ -14,6 +14,7 @@
<!ENTITY allowWindowFlip.label "Raise or lower windows">
<!ENTITY allowWindowStatusChange.label "Change status bar text">
<!ENTITY allowWindowImageSrcChange.label "Change images">
<!ENTITY allowContextmenuDisable.label "Disable a Page's Context Menu">
<!ENTITY allowHideStatusBar.label "Hide the status bar">
<!ENTITY enablePlugin.label "Enable Plug-ins for">