Closed Bug 1399740 Opened 8 years ago Closed 8 years ago

[Pointer Event] Handle the case that invoke setPointerCapture while the page has a locked element

Categories

(Core :: DOM: Events, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
mozilla58
Tracking Status
firefox58 --- fixed

People

(Reporter: stone, Assigned: stone)

References

Details

Attachments

(1 file)

Spec [1] says 'If this method is invoked while the page has a locked element ([PointerLock]), throw an exception with the name InvalidStateError.' More discussions in [2]. [1] https://w3c.github.io/pointerevents/#setting-pointer-capture [2] https://github.com/w3c/pointerevents/issues/176
Assignee: nobody → sshih
Spec [3] also says 'When a pointer lock ([PointerLock]) is successfully applied on an element, a user agent must run the steps as if the releasePointerCapture() method has been called if any element is set to be captured or pending to be captured.' [3] https://w3c.github.io/pointerevents/#implicit-release-of-pointer-capture
Priority: -- → P2
Blocks: 822898
Attachment #8914033 - Flags: review?(bugs)
Comment on attachment 8914033 [details] [diff] [review] Handle the case that invoke setPointerCapture while the page has a locked element But we can still take this. We may need to tweak the implementation once https://github.com/w3c/pointerevents/issues/220 gets resolved somehow.
Attachment #8914033 - Flags: review?(bugs) → review+
Pushed by sshih@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/fa3f9e9479ae [Pointer Event] Handle the case that invokes setPointerCapture while the page has a locked element. r=smaug.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla58
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: