Open Bug 443191 Opened 17 years ago Updated 3 years ago

Mac: Context menu doesn't appear when mouse down handler prevents default action

Categories

(Core :: DOM: UI Events & Focus Handling, defect)

All
macOS
defect

Tracking

()

People

(Reporter: masykora, Unassigned)

Details

Attachments

(1 file)

User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506) Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; cs; rv:1.9) In Web application is useful to disable text selection, it could be implemented by setting following handler <body onmousedown="event.preventDefault()>. Also you need to use context menu in some parts. You can use own menu by setting handler <body ... oncontextmenu="openMyContextMenu()">. Unfortunately this doesn't work in Firefox 3 on Mac OS X. Reproducible: Always Steps to Reproduce: 1. use the testcase.html attached below, copy it to disc on your Mac 2. open the testcase.html in Firefox 3 3. do right click (please use 2-button mouse) Actual Results: Nothing happens, no context menu. Expected Results: Context menu should appear. Firefox 2 for Mac is not affected, Firefox 3 for Win is also not affected. You can use ctrl+click in Firefox 3 for Mac, but it could be annoying for many users.
Attached file Testcase
This reminds of this (oldish) Camino bug: bug 312714. The testcase linked in https://bugzilla.mozilla.org/show_bug.cgi?id=312714#c6 also affects Firefox 3. Note that, on the testcase here, triggering the context menu with control+click works in both Camino (2.0a1pre) and Firefox3/Minefield latest.
Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.5; en-US; rv:1.9.0.1) Gecko/2008070206 Firefox/3.0.1 Reproduced the bug - tried 2 ways: Method 1 Copied the test file to desktop. Opened with BBedit to see what it was doing. saved file as test created a new window with FF3 used open file with ff3 - opened test with FF3 FF3 sends an alert - file was downloaded ... etc - open with FF3 Blank page - right click page Getting a pulldown alert - javascript Function Disabled! Method 2 I tried the bug copying by moving the saved test icon from the desktop to the blank WEB page and got a pulldown menu resulting from a right click.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Component: Event Handling → User events and focus handling
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: