Closed Bug 174792 Opened 22 years ago Closed 22 years ago

Option to block Javascript Blocking of right click

Categories

(Core :: DOM: Events, enhancement)

enhancement
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 86193

People

(Reporter: henrik, Assigned: joki)

References

()

Details

Some sites disables the right click menu of the browser. They use code similar to this: <script language=JavaScript> <!-- //Disable right click script III- By Renigade (renigade@mediaone.net) //For full source code, visit http://www.dynamicdrive.com var message=""; /////////////////////////////////// function clickIE() {if (document.all) {(message);return false;}} function clickNS(e) {if (document.layers||(document.getElementById&&!document.all)) { if (e.which==2||e.which==3) {(message);return false;}}} if (document.layers) {document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;} else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;} document.oncontextmenu=new Function("return false") // --> </script> I would like an option to block these kind of script, just like we have an option to block opening new windows or change the status text. Setting severity to major as it disables all context menues in the webpage
should have been an enhancement, my bad sorry for the spam
Severity: major → enhancement
*** This bug has been marked as a duplicate of 86193 ***
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
v
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.