setPointerCapture does not work across Fission frames
Categories
(Core :: DOM: UI Events & Focus Handling, defect, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox84 | --- | fixed |
People
(Reporter: robbendebiene, Assigned: edgar)
References
(Blocks 2 open bugs)
Details
Attachments
(1 file)
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0
Steps to reproduce:
Using element.setPointerCapture on an element inside an iframe normally re-targets all mouse events across frames to one particular element.
Best way to test this is using the example on MDN here: https://developer.mozilla.org/en-US/docs/Web/API/Element/setPointerCapture
This does not work when Fission is enabled.
Actual results:
The mouse movement is not detected outside of the iframe.
Expected results:
The mouse events should be redirected to the element inside the iframe on which setPointerCapture was called on.
Reporter | ||
Updated•4 years ago
|
Comment 1•4 years ago
|
||
Thank you for the report, I've confirmed this on Nightly 80 with Fission. Probably a blocker for Nightly or Beta rollout.
Updated•4 years ago
|
Updated•4 years ago
|
Comment 4•4 years ago
|
||
Olli reported the failure with pointer capture: http://mozilla.pettay.fi/moztests/pointercapture_parent.html
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 5•4 years ago
|
||
This seems like a similar issue as the pointer lock bug we had in bug 1662587, i.e. the mouse event doesn't dispatch to the right process. I will take a look.
Updated•4 years ago
|
Assignee | ||
Comment 6•4 years ago
|
||
Assignee | ||
Comment 7•4 years ago
|
||
Assignee | ||
Comment 8•4 years ago
|
||
I tried to write a test for implicit pointer capture for touch event, and just realized we didn't support dispatching touch event asynchronously.
Assignee | ||
Comment 9•4 years ago
|
||
(In reply to Edgar Chen [:edgar] from comment #8)
I tried to write a test for implicit pointer capture for touch event, and just realized we didn't support dispatching touch event asynchronously.
I did some quick try but failed to make it work, file bug 1672726 to add tests for implicit pointer capture for fission.
Assignee | ||
Comment 10•4 years ago
|
||
I have verified manually on Surface Pro that implicit pointer capture for touch events works on Fission.
Comment 11•4 years ago
|
||
Pushed by echen@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/82dc435b2c6d Make pointer capture fission compatible; r=smaug
Comment 12•4 years ago
|
||
bugherder |
Updated•3 years ago
|
Description
•