Closed
Bug 1293174
Opened 7 years ago
Closed 7 years ago
[Pointer Event] Implement implicit pointer capture for touch
Categories
(Core :: DOM: Events, defect)
Core
DOM: Events
Tracking
()
RESOLVED
FIXED
mozilla52
Tracking | Status | |
---|---|---|
firefox52 | --- | fixed |
People
(Reporter: stone, Assigned: stone)
References
Details
Attachments
(1 file, 4 obsolete files)
15.97 KB,
patch
|
stone
:
review+
stone
:
feedback+
|
Details | Diff | Splinter Review |
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → sshih
Assignee | ||
Comment 1•7 years ago
|
||
There are some discussions whether we should implicit capture pointer for touch or all input types in https://github.com/w3c/pointerevents/issues/8. It's not concluded yet. Implement it in case we want to do some experiments and use preference to control on/off. Set it's default value to off since it isn't part of spec at this moment.
Attachment #8788367 -
Flags: feedback?(btseng)
Assignee | ||
Comment 2•7 years ago
|
||
Removed redundant modifications to gfxPrefs.h
Attachment #8788367 -
Attachment is obsolete: true
Attachment #8788367 -
Flags: feedback?(btseng)
Attachment #8788709 -
Flags: feedback?(btseng)
Comment 3•7 years ago
|
||
Comment on attachment 8788709 [details] [diff] [review] Bug 1293174 - [Pointer Event] Implement implicit pointer capture for touch (V2) Review of attachment 8788709 [details] [diff] [review]: ----------------------------------------------------------------- Please see my comments below, thanks! ::: dom/events/test/pointerevents/bug1293174_implicit_pointer_capture_for_touch-1.html @@ +38,5 @@ > + target1.addEventListener("pointermove", (e) => { > + ok(false, "pointer should be captured by target0, target1 should never receive pointer events"); > + }, false); > + > + parent.turnOnOffPointerEvents( function() { We are not supposed to do this twice in a test. Please try to create a iframe element dynamically in parent window to see if we can skip this workaround. Or figure out a correct solution to prevent this if a static iframe is needed. ::: dom/events/test/pointerevents/bug1293174_implicit_pointer_capture_for_touch-2.html @@ +39,5 @@ > + target1.addEventListener("pointermove", (e) => { > + ++pointermove_count_of_target1; > + }, false); > + > + parent.turnOnOffPointerEvents( function() { ditto ::: dom/events/test/pointerevents/test_bug1293174_implicit_pointer_capture_for_touch-1.html @@ +8,5 @@ > + <title>Test for Bug 1293174</title> > + <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> > + <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> > + <script type="text/javascript"> > + function prepareTest() { let's see if we can move these common use functions into a help.js @@ +12,5 @@ > + function prepareTest() { > + SimpleTest.waitForExplicitFinish(); > + turnOnOffPointerEvents(startTest); > + } > + function turnOnOffPointerEvents(callback) { ditto
Attachment #8788709 -
Flags: feedback?(btseng)
Assignee | ||
Comment 4•7 years ago
|
||
Use pointer events helper functions to refine the test cases
Attachment #8788709 -
Attachment is obsolete: true
Attachment #8789708 -
Flags: feedback?(btseng)
Comment 5•7 years ago
|
||
Comment on attachment 8789708 [details] [diff] [review] Bug 1293174 - [Pointer Event] Implement implicit pointer capture for touch (V3) Review of attachment 8789708 [details] [diff] [review]: ----------------------------------------------------------------- Please see my comment below: ::: dom/events/test/pointerevents/mochitest_support_external.js @@ +27,5 @@ > SpecialPowers.pushPrefEnv({ > "set": [ > ["dom.w3c_pointer_events.enabled", true], > + ["layout.css.touch_action.enabled", true], > + ["dom.w3c_pointer_events.implicit_capture", implicitCapture] This is NG since we named this function as turn"On"PointerEvents() while all other preferences are true but implicit_capture is set depends on the value of |implicitCaputure|. Please have a dedicated function named enableImplicitPointerCapture(enabled, callback) { } for toggling this feature.
Attachment #8789708 -
Flags: feedback?(btseng)
Assignee | ||
Comment 6•7 years ago
|
||
Attachment #8789708 -
Attachment is obsolete: true
Assignee | ||
Updated•7 years ago
|
Attachment #8792450 -
Flags: feedback?(btseng)
Comment 7•7 years ago
|
||
Comment on attachment 8792450 [details] [diff] [review] Bug 1293174 - [Pointer Event] Implement implicit pointer capture for touch (V4) Review of attachment 8792450 [details] [diff] [review]: ----------------------------------------------------------------- LGTM, thanks!
Attachment #8792450 -
Flags: feedback?(btseng) → feedback+
Assignee | ||
Updated•7 years ago
|
Attachment #8792450 -
Flags: review?(bugs)
Comment 8•7 years ago
|
||
Comment on attachment 8792450 [details] [diff] [review] Bug 1293174 - [Pointer Event] Implement implicit pointer capture for touch (V4) >+ <meta name="author" content="Maksim Lebedev" /> This looks wrong. In couple of places. Just remove it.
Attachment #8792450 -
Flags: review?(bugs) → review+
Assignee | ||
Comment 9•7 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=ad44cb9ef8c0b4efd58bb36f33d3fc7f4eed1d85
Assignee | ||
Comment 10•7 years ago
|
||
Attachment #8792450 -
Attachment is obsolete: true
Attachment #8796415 -
Flags: review+
Attachment #8796415 -
Flags: feedback+
Assignee | ||
Updated•7 years ago
|
Keywords: checkin-needed
Comment 11•7 years ago
|
||
Pushed by ryanvm@gmail.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/b577f6e25606 [Pointer Event] Implement implicit pointer capture for touch. f=bevistseng. r=smaug
Keywords: checkin-needed
Comment 12•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/b577f6e25606
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox52:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla52
You need to log in
before you can comment on or make changes to this bug.
Description
•