pointerlock is broken if page contains an OOP iframe
Categories
(Core :: DOM: Core & HTML, defect, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox83 | --- | fixed |
People
(Reporter: edgar, Assigned: edgar)
References
(Blocks 1 open bug)
Details
(Whiteboard: patch in draft mode)
Attachments
(2 files, 1 obsolete file)
STR:
Click on the canvas area in top-level document to request a pointer lock.
Expected results:
Mouse will directly control the red ball inside the canvas.
Actual result:
The mouse cursor is showed and locked inside the iframe.
And you can request a pointer lock again in iframe.
Assignee | ||
Updated•4 years ago
|
Updated•4 years ago
|
Assignee | ||
Comment 1•4 years ago
|
||
(In reply to Edgar Chen [:edgar] from comment #0)
The mouse cursor is showed and locked inside the iframe.
I think it is because we reset mouse/pointer to the window center while pointer lock is enabled, so it looks like we need to have some information stored in chrome process in order to dispatch event to the right content process.
Assignee | ||
Comment 2•4 years ago
|
||
Comment 3•4 years ago
|
||
Edgar, please provide an estimate date for the patch in the Whiteboard field as M6b is nearing completion.
Assignee | ||
Comment 4•4 years ago
|
||
Patch should be ready for review soon, probably later today.
Updated•4 years ago
|
Assignee | ||
Comment 5•4 years ago
•
|
||
Assignee | ||
Comment 6•4 years ago
|
||
Updated•4 years ago
|
Assignee | ||
Comment 7•4 years ago
|
||
Assignee | ||
Comment 8•4 years ago
•
|
||
Comment 10•4 years ago
|
||
Backed out for mochitest crashes on test_pointerlock_xorigin_iframe.html
Backout link: https://hg.mozilla.org/integration/autoland/rev/beef7a777c85e557c6f01f0ff01bf4fbcd80b830
Log link: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=316224259&repo=autoland&lineNumber=3596
Assignee | ||
Comment 11•4 years ago
|
||
Hmm, it seems asynchronously dispatch synthesized mouse event somehow doesn't work on Android, but I could not reproduce locally, seem to happen only on try? Filed bug 1666201.
Assignee | ||
Comment 12•4 years ago
|
||
Comment 13•4 years ago
|
||
Comment 14•4 years ago
|
||
bugherder |
Assignee | ||
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Description
•