Along with adding new APIs for pointer capture like set/releasepointercapture we need to send got/lostpointercapture events accordingly and also when elements get removed as per spec: https://www.w3.org/TR/pointerevents/#the-gotpointercapture-event
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/3add13bbfb3537a8a243711bb184d12faf3ef096 commit 3add13bbfb3537a8a243711bb184d12faf3ef096 Author: nzolghadr <nzolghadr@chromium.org> Date: Mon Mar 14 20:37:33 2016 Firing got/lost pointer capture events This CL is taking care of firing gotpointercapture and lostpointercapture events based on the status of the pointer capture and whether the element is still in the document or not. BUG= 592280 Review URL: https://codereview.chromium.org/1774913004 Cr-Commit-Position: refs/heads/master@{#381061} [modify] https://crrev.com/3add13bbfb3537a8a243711bb184d12faf3ef096/third_party/WebKit/LayoutTests/virtual/pointerevent/fast/events/pointerevents/mouse-pointer-capture-expected.txt [modify] https://crrev.com/3add13bbfb3537a8a243711bb184d12faf3ef096/third_party/WebKit/LayoutTests/virtual/pointerevent/fast/events/pointerevents/mouse-pointer-capture.html [modify] https://crrev.com/3add13bbfb3537a8a243711bb184d12faf3ef096/third_party/WebKit/Source/core/dom/Element.h [modify] https://crrev.com/3add13bbfb3537a8a243711bb184d12faf3ef096/third_party/WebKit/Source/core/dom/Element.idl [modify] https://crrev.com/3add13bbfb3537a8a243711bb184d12faf3ef096/third_party/WebKit/Source/core/events/PointerEventFactory.cpp [modify] https://crrev.com/3add13bbfb3537a8a243711bb184d12faf3ef096/third_party/WebKit/Source/core/events/PointerEventFactory.h [modify] https://crrev.com/3add13bbfb3537a8a243711bb184d12faf3ef096/third_party/WebKit/Source/core/events/PointerEventFactoryTest.cpp [modify] https://crrev.com/3add13bbfb3537a8a243711bb184d12faf3ef096/third_party/WebKit/Source/core/html/HTMLAttributeNames.in [modify] https://crrev.com/3add13bbfb3537a8a243711bb184d12faf3ef096/third_party/WebKit/Source/core/html/HTMLElement.cpp [modify] https://crrev.com/3add13bbfb3537a8a243711bb184d12faf3ef096/third_party/WebKit/Source/core/input/PointerEventManager.cpp [modify] https://crrev.com/3add13bbfb3537a8a243711bb184d12faf3ef096/third_party/WebKit/Source/core/input/PointerEventManager.h
Comment 1 by mustaq@chromium.org
, Mar 8 2016