setPointerCapture on element in shadow DOM produces InvalidStateError
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox67 | --- | fixed |
People
(Reporter: luki.schaer, Assigned: smaug)
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36
Steps to reproduce:
- Open the attached .html file in Firefox.
- Click the red square to trigger the onpointerdown function attached to the innerDiv
-> This triggers the function that calls setPointerCapture
Actual results:
An InvalidStateError is produced and logged to the console (An attempt was made to use an object that is not, or is no longer, usable)
Expected results:
The function call should be allowed and not produce this error, as it seems to be allowed according to this specification[1]: there is no PointerLock, and the innerDiv is connected.
[1] https://w3c.github.io/pointerevents/#setting-pointer-capture
Updated•5 years ago
|
Assignee | ||
Updated•5 years ago
|
Updated•5 years ago
|
Assignee | ||
Comment 1•5 years ago
|
||
FWIW, this is a change in pointer events v2. We seem to follow v1 here.
Assignee | ||
Comment 2•5 years ago
|
||
Assignee | ||
Comment 3•5 years ago
|
||
Assignee | ||
Comment 4•5 years ago
|
||
remote: Follow the progress of your build on Treeherder:
remote: https://treeherder.mozilla.org/#/jobs?repo=try&revision=20f1412469d341565290ee37c08721fca549474a
Pushed by opettay@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/cc090db10bec setPointerCapture should work also in Shadow DOM, r=masayuki
Comment 6•5 years ago
|
||
bugherder |
Description
•