Closed Bug 467484 Opened 16 years ago Closed 15 years ago

dom.event.contextmenu.enabled doesn't work: Websites can still disable the context menu

Categories

(Core :: DOM: Events, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 486990

People

(Reporter: site-mozilla-bugzilla, Unassigned)

References

()

Details

User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.4) Gecko/2008111319 Ubuntu/8.10 (intrepid) Firefox/3.0.4 Build Identifier: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.4) Gecko/2008111319 Ubuntu/8.10 (intrepid) Firefox/3.0.4 The following code will completely suppress the context menu within an element: document.getElementById('foo').addEventListener('contextmenu', function(ev){ ev.stopPropagation(); }, false); // capture or bubble, doesn't matter The setting is clearly ineffective. This may be a regression, or maybe web developers stumbled onto something new—I certainly don't remember encountering this several years ago. Reproducible: Always
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 This works fine for me (the Google Maps page).
Component: General → DOM: Events
Product: Firefox → Core
QA Contact: general → events
Version: unspecified → Trunk
This is probably a dup of bug 486990.
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.