Closed Bug 207442 Opened 23 years ago Closed 23 years ago

Right click disable script is working now, it didn't used to prevent the context menu in mozilla.

Categories

(SeaMonkey :: General, enhancement)

x86
Windows 98
enhancement
Not set
normal

Tracking

(Not tracked)

VERIFIED DUPLICATE of bug 86193

People

(Reporter: steevo, Unassigned)

References

()

Details

User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.2.1) Gecko/20021130 Build Identifier: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.2.1) Gecko/20021130 Right click disable scripts are used by spammers to prevent analysis of their site. This works well with IE. However it never worked with Mozilla. Or I should say, it worked, but the context menu then appears anyway. Someone has now fixed one of those scripts so it works now. Reproducible: Always Steps to Reproduce: 1. Right click on page to view source or open frame in new window. 2. Javascript popup says "function disabled" 3. Turning off javascript stops that and re enables the context menu. Actual Results: Received popup "Javascript Appication" Function disabled I went to prefs and killed javascript, I was then able to select "show only this frame" so I could find out the actual munged url. Otherwise it was in a frame. Expected Results: With all scripts that perform this function before, Receive popup "Javascript Appication" Function disabled Context menu works anyway. I prefer it to always work. Alternately could add a selection to the script prefs to disallow mucking with the mouse buttons. Here is the script. [/SCRIPT> [script language=JavaScript> <!-- //Disable right mouse click Script //By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive //For full source code, visit http://www.dynamicdrive.com var message="Function Disabled!"; /////////////////////////////////// function clickIE4(){ if (event.button==2){ alert(message); return false; } } function clickNS4(e){ if (document.layers||document.getElementById&&!document.all){ if (e.which==2||e.which==3){ alert(message); return false; } } } if (document.layers){ document.captureEvents(Event.MOUSEDOWN); document.onmousedown=clickNS4; } else if (document.all&&!document.getElementById){ document.onmousedown=clickIE4; } document.oncontextmenu=new Function("alert(message);return false") // -->
*** This bug has been marked as a duplicate of 86193 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
Summary: Right click disable script is working now, it didn't used to prevent the context menu in mozilla. → Right click disable script is working now, it didn't used to prevent the context menu in mozilla.
v
Severity: normal → enhancement
Status: RESOLVED → VERIFIED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.