Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(60)

Unified Diff: third_party/WebKit/LayoutTests/fast/events/pointerevents/touch-capture-in-iframe.html

Issue 2408133007: Check the root frame pointer events as well for capture (Closed)
Patch Set: Fix the function naming Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/events/pointerevents/touch-capture-in-iframe-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/events/pointerevents/touch-capture-in-iframe.html
diff --git a/third_party/WebKit/LayoutTests/fast/events/pointerevents/touch-capture-in-iframe.html b/third_party/WebKit/LayoutTests/fast/events/pointerevents/touch-capture-in-iframe.html
index b9b9ffe74869479105f87c210adf50a0e205ca68..b9aa1ca662de94d66ded4daba52bb42a335ee787 100644
--- a/third_party/WebKit/LayoutTests/fast/events/pointerevents/touch-capture-in-iframe.html
+++ b/third_party/WebKit/LayoutTests/fast/events/pointerevents/touch-capture-in-iframe.html
@@ -22,11 +22,10 @@ iframe {
<script>
top.document.testEventList.forEach(function(eventName) {
document.addEventListener(eventName, function(event) {
-
- // TODO(crbug.com/449649): Due to inconsistency of the frame vs page
- // event handling in EventHandler the releasePointerCapture and setPointerCapture
- // do not work inside the iframe for touch pointer events.
-
+ if (top.document.releaseTouchCapture && event.type == 'pointerdown') {
+ top.debug('--- Release pointer capture for ' + event.pointerId + ' ---');
+ event.target.releasePointerCapture(event.pointerId);
+ }
top.logEvent(event);
});
});
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/events/pointerevents/touch-capture-in-iframe-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698