|
|
Chromium Code Reviews
DescriptionBookkeep the pointer event listeners added to page
Check if the page has pointer event listeners
before firing the pointer events.
BUG=679828
Review-Url: https://codereview.chromium.org/2916893003
Cr-Commit-Position: refs/heads/master@{#477743}
Committed: https://chromium.googlesource.com/chromium/src/+/6026189765a3923e474f2431524199934c6b162d
Patch Set 1 #
Total comments: 9
Patch Set 2 #Patch Set 3 : add pointer event handler in SliderThumbelement #Patch Set 4 : do DidRemoveAllEventHandlers in two loop #Patch Set 5 : do DidRemoveAllEventHandlers in two loop #
Total comments: 1
Patch Set 6 : Rebase #Patch Set 7 : fix rebase error #Messages
Total messages: 70 (51 generated)
The CQ bit was checked by eirage@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
eirage@chromium.org changed reviewers: + dtapuska@chromium.org, nzolghadr@chromium.org
https://codereview.chromium.org/2916893003/diff/1/third_party/WebKit/Source/c... File third_party/WebKit/Source/core/input/PointerEventManager.cpp (right): https://codereview.chromium.org/2916893003/diff/1/third_party/WebKit/Source/c... third_party/WebKit/Source/core/input/PointerEventManager.cpp:168: !RuntimeEnabledFeatures::pointerEventEnabled()) We should probably log a bug to remove RuntimeEnabledFeatures::pointerEventEnabled no? Since it has long shipped? https://codereview.chromium.org/2916893003/diff/1/third_party/WebKit/Source/c... File third_party/WebKit/Source/core/testing/Internals.cpp (right): https://codereview.chromium.org/2916893003/diff/1/third_party/WebKit/Source/c... third_party/WebKit/Source/core/testing/Internals.cpp:1611: unsigned Internals::pointerEventHandlerCount(Document* document) { This should be able to be const.
https://codereview.chromium.org/2916893003/diff/1/third_party/WebKit/Source/c... File third_party/WebKit/Source/core/input/PointerEventManager.cpp (right): https://codereview.chromium.org/2916893003/diff/1/third_party/WebKit/Source/c... third_party/WebKit/Source/core/input/PointerEventManager.cpp:168: !RuntimeEnabledFeatures::pointerEventEnabled()) On 2017/06/01 16:03:01, dtapuska wrote: > We should probably log a bug to remove > RuntimeEnabledFeatures::pointerEventEnabled no? Since it has long shipped? We have a bug for this: crbug.com/687976
https://codereview.chromium.org/2916893003/diff/1/third_party/WebKit/LayoutTe... File third_party/WebKit/LayoutTests/fast/events/pointerevents/pointer-handler-count.html (right): https://codereview.chromium.org/2916893003/diff/1/third_party/WebKit/LayoutTe... third_party/WebKit/LayoutTests/fast/events/pointerevents/pointer-handler-count.html:5: var listener = function() { } Can you also add another scenario for testing all possible pointerevent listeners to make sure we don't miss anyone: pointerenter pointerover pointerleave pointerout pointermove pointerup pointerdown pointercancel gotpointercapture lostpointercapture https://codereview.chromium.org/2916893003/diff/1/third_party/WebKit/LayoutTe... File third_party/WebKit/LayoutTests/fast/events/pointerevents/pointer-input-element-change-documents-expected.txt (right): https://codereview.chromium.org/2916893003/diff/1/third_party/WebKit/LayoutTe... third_party/WebKit/LayoutTests/fast/events/pointerevents/pointer-input-element-change-documents-expected.txt:1: This test checks that we correctly update the pointer event handler count when an Input element with default pointer handlers changes documents. Is this file needed?
The CQ bit was checked by eirage@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: android_clang_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_clan...) android_compile_dbg on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_comp...) android_cronet on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_cron...) android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_...) cast_shell_android on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/cast_shell_a...) linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_androi...) chromeos_daisy_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_daisy_...) linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) linux_chromium_compile_dbg_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) linux_chromium_headless_rel on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by eirage@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
ptal https://codereview.chromium.org/2916893003/diff/1/third_party/WebKit/LayoutTe... File third_party/WebKit/LayoutTests/fast/events/pointerevents/pointer-handler-count.html (right): https://codereview.chromium.org/2916893003/diff/1/third_party/WebKit/LayoutTe... third_party/WebKit/LayoutTests/fast/events/pointerevents/pointer-handler-count.html:5: var listener = function() { } On 2017/06/01 16:26:13, Navid Zolghadr wrote: > Can you also add another scenario for testing all possible pointerevent > listeners to make sure we don't miss anyone: > > pointerenter > pointerover > pointerleave > pointerout > pointermove > pointerup > pointerdown > pointercancel > gotpointercapture > lostpointercapture Done. https://codereview.chromium.org/2916893003/diff/1/third_party/WebKit/LayoutTe... File third_party/WebKit/LayoutTests/fast/events/pointerevents/pointer-input-element-change-documents-expected.txt (right): https://codereview.chromium.org/2916893003/diff/1/third_party/WebKit/LayoutTe... third_party/WebKit/LayoutTests/fast/events/pointerevents/pointer-input-element-change-documents-expected.txt:1: This test checks that we correctly update the pointer event handler count when an Input element with default pointer handlers changes documents. On 2017/06/01 16:26:13, Navid Zolghadr wrote: > Is this file needed? This is not needed. I forgot to remove this file. https://codereview.chromium.org/2916893003/diff/1/third_party/WebKit/Source/c... File third_party/WebKit/Source/core/input/PointerEventManager.cpp (right): https://codereview.chromium.org/2916893003/diff/1/third_party/WebKit/Source/c... third_party/WebKit/Source/core/input/PointerEventManager.cpp:168: !RuntimeEnabledFeatures::pointerEventEnabled()) On 2017/06/01 16:10:41, Navid Zolghadr wrote: > On 2017/06/01 16:03:01, dtapuska wrote: > > We should probably log a bug to remove > > RuntimeEnabledFeatures::pointerEventEnabled no? Since it has long shipped? > > We have a bug for this: > crbug.com/687976 Acknowledged. https://codereview.chromium.org/2916893003/diff/1/third_party/WebKit/Source/c... File third_party/WebKit/Source/core/testing/Internals.cpp (right): https://codereview.chromium.org/2916893003/diff/1/third_party/WebKit/Source/c... third_party/WebKit/Source/core/testing/Internals.cpp:1611: unsigned Internals::pointerEventHandlerCount(Document* document) { On 2017/06/01 16:03:01, dtapuska wrote: > This should be able to be const. Done.
lgtm
On 2017/06/01 20:31:59, Navid Zolghadr wrote: > lgtm lgtm
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by eirage@chromium.org
The CQ bit was unchecked by eirage@chromium.org
The CQ bit was checked by eirage@chromium.org
The CQ bit was unchecked by eirage@chromium.org
The CQ bit was checked by dtapuska@chromium.org
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by dtapuska@chromium.org
The CQ bit was checked by eirage@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Patchset #3 (id:40001) has been deleted
Dry run: Try jobs failed on following builders: chromeos_daisy_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_daisy_...) linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) linux_chromium_tsan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) win_chromium_compile_dbg_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_comp...)
The CQ bit was checked by eirage@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by eirage@chromium.org
The CQ bit was checked by eirage@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from dtapuska@chromium.org, nzolghadr@chromium.org Link to the patchset: https://codereview.chromium.org/2916893003/#ps60001 (title: "add pointer event handler in SliderThumbelement")
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
On 2017/06/05 18:02:14, commit-bot: I haz the power wrote: > CQ is trying da patch. > > Follow status at: > https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or... still lgtm
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: linux_chromium_tsan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by eirage@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by eirage@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
I uploaded a new patch, ptal
https://codereview.chromium.org/2916893003/diff/100001/third_party/WebKit/Lay... File third_party/WebKit/LayoutTests/inspector/tracing/timeline-misc/timeline-event-dispatch-expected.txt (left): https://codereview.chromium.org/2916893003/diff/100001/third_party/WebKit/Lay... third_party/WebKit/LayoutTests/inspector/tracing/timeline-misc/timeline-event-dispatch-expected.txt:8: type : "pointerover" Dave, I don't recall the purpose of this test particularly. But on a second thought, should we just add the pointer event listener to the test so we keep these in the expected file instead or do you think this is alright?
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
On 2017/06/06 19:09:21, Navid Zolghadr wrote: > https://codereview.chromium.org/2916893003/diff/100001/third_party/WebKit/Lay... > File > third_party/WebKit/LayoutTests/inspector/tracing/timeline-misc/timeline-event-dispatch-expected.txt > (left): > > https://codereview.chromium.org/2916893003/diff/100001/third_party/WebKit/Lay... > third_party/WebKit/LayoutTests/inspector/tracing/timeline-misc/timeline-event-dispatch-expected.txt:8: > type : "pointerover" > Dave, I don't recall the purpose of this test particularly. But on a second > thought, should we just add the pointer event listener to the test so we keep > these in the expected file instead or do you think this is alright? Changing the expected results seems fine to me. We have lots of tests already asserting the ordering of pointer and mouse events. lgtm
On 2017/06/06 19:09:21, Navid Zolghadr wrote: > https://codereview.chromium.org/2916893003/diff/100001/third_party/WebKit/Lay... > File > third_party/WebKit/LayoutTests/inspector/tracing/timeline-misc/timeline-event-dispatch-expected.txt > (left): > > https://codereview.chromium.org/2916893003/diff/100001/third_party/WebKit/Lay... > third_party/WebKit/LayoutTests/inspector/tracing/timeline-misc/timeline-event-dispatch-expected.txt:8: > type : "pointerover" > Dave, I don't recall the purpose of this test particularly. But on a second > thought, should we just add the pointer event listener to the test so we keep > these in the expected file instead or do you think this is alright? Changing the expected results seems fine to me. We have lots of tests already asserting the ordering of pointer and mouse events. lgtm
The CQ bit was checked by eirage@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from nzolghadr@chromium.org Link to the patchset: https://codereview.chromium.org/2916893003/#ps100001 (title: "do DidRemoveAllEventHandlers in two loop")
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presub...)
The CQ bit was checked by eirage@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_headless_rel on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_comp...)
The CQ bit was checked by eirage@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was checked by dtapuska@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from dtapuska@chromium.org, nzolghadr@chromium.org Link to the patchset: https://codereview.chromium.org/2916893003/#ps140001 (title: "fix rebase error")
The CQ bit was unchecked by dtapuska@chromium.org
The CQ bit was checked by dtapuska@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from dtapuska@chromium.org, nzolghadr@chromium.org Link to the patchset: https://codereview.chromium.org/2916893003/#ps140001 (title: "fix rebase error")
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch.
Bot data: {"patchset_id": 140001, "attempt_start_ts": 1496864165988740,
"parent_rev": "0527f72f6822c6aba0370d8245bd9acb6715a2f8", "commit_rev":
"6026189765a3923e474f2431524199934c6b162d"}
Message was sent while issue was closed.
Description was changed from ========== Bookkeep the pointer event listeners added to page Check if the page has pointer event listeners before firing the pointer events. BUG=679828 ========== to ========== Bookkeep the pointer event listeners added to page Check if the page has pointer event listeners before firing the pointer events. BUG=679828 Review-Url: https://codereview.chromium.org/2916893003 Cr-Commit-Position: refs/heads/master@{#477743} Committed: https://chromium.googlesource.com/chromium/src/+/6026189765a3923e474f24315241... ==========
Message was sent while issue was closed.
Committed patchset #7 (id:140001) as https://chromium.googlesource.com/chromium/src/+/6026189765a3923e474f24315241... |
