Closed Bug 435160 Opened 17 years ago Closed 9 years ago

Right-click oncontextmenu event does not fire if table onmousedown returns false.

Categories

(Core :: Widget: Cocoa, defect)

1.9.0 Branch
All
macOS
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: rom_music, Unassigned)

Details

(Keywords: regression, testcase, Whiteboard: DUPEME?)

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9) Gecko/2008051202 Firefox/3.0 Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9) Gecko/2008051202 Firefox/3.0 The oncontextmenu event on a table row does not fire after a right-click if the enclosing table returns false for the onmousedown event. Ctrl-click works fine. Right-click in this scenario also works fine in FF2 on Mac OSX and in FF2 & FF3 on XP SP2. Reproducible: Always Steps to Reproduce: The code is simple: <html> <body> <table onmousedown="return false;"> <tr oncontextmenu="alert('Context menu event fired.'); return false;"> <td>Right click me</td> </tr> </table> </body> </html> Right-click on the text. Actual Results: No oncontextmenu event fired. Expected Results: oncontextmenu event fires. If you change the table onmousedown event to return true, right-click works correctly. May be related to other Mac context menu issues like bug #422021.
This reminds me of bug 418689 comment 4.
Hi I've encountered the same issue although its with iframes instead of tables. See http://unbolt.net/dev/contextmenutest.html Right-click in the iframe on my test page works fine in FF2 on Mac OSX, FF2 & FF3 on XP, Safari 3.x, IE6 and IE7. It doesnt work in FF3 on OSX specifically tested on 3.0.8
Would someone have time to check for the regression range? As given by comment 0 it has been regressed in the development cycle for Firefox 3.0. So checking offical alpha and beta builds would be the first step. Further checking nightlies could give us the bug which regressed this one.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Hardware: PowerPC → All
Version: unspecified → 3.0 Branch
Nothing to do with it being a table though.
Component: Menus → Widget: Cocoa
Product: Firefox → Core
QA Contact: menus → cocoa
Summary: Right-click oncontextmenu event on table row does not fire if table onmousedown returns false. → Right-click oncontextmenu event does not fire if table onmousedown returns false.
Version: 3.0 Branch → unspecified
I forgot to add as well that in FF3, holding ctrl and left clicking works fine. This issue has been around since 3.0.5 although I havent checked versions older than that
Same regression range as bug 426643. Probably the switch to Cocoa widgets. Steven, shall we dupe or adding a dependency?
Version: unspecified → 1.9.0 Branch
Whiteboard: DUPEME?
I can not reproduce this issue as "context menu even fired" appears on firefox 48.0a1 for the attached test case. I will close this issue as WFM. Please reopen if you can still reproduce this issue.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: