Open Bug 1610659 Opened 6 years ago Updated 2 years ago

Click event on <area> is not triggered when clicking after setPointerCapture() on <area>

Categories

(Core :: DOM: Events, defect, P3)

72 Branch
defect

Tracking

()

People

(Reporter: soniarode, Unassigned)

References

(Blocks 1 open bug, )

Details

(Keywords: parity-chrome, testcase)

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36

Steps to reproduce:

I created https://jsfiddle.net/hkdjLr1f/2/ to demonstrate. It reproduces consistently.

  1. Create an <img> with usemap and a corresponding <map><area>
  2. Add a listener to <area> pointerdown that calls setPointerCapture() on the <area>
  3. Click the <area>

Actual results:

pointerdown and pointerup events are fired.

Expected results:

pointerdown, pointerup, and click events are fired.

Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:74.0) Gecko/20100101 Firefox/74.0
20200120154412

Status: UNCONFIRMED → NEW
Has STR: --- → yes
Component: Untriaged → DOM: Events
Ever confirmed: true
Product: Firefox → Core
Blocks: 822898
Priority: -- → P3

One wpt test that might be related is this:
https://wpt.fyi/results/pointerevents/pointerevent_click_during_capture.html

Feel free to update the test as well with new element types such as <area> thing mentioned here.

See Also: → 1556240
Severity: normal → S3
Blocks: pointerevent
No longer blocks: 822898
See Also: → 1755752
You need to log in before you can comment on or make changes to this bug.