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

Unified Diff: third_party/WebKit/LayoutTests/fast/events/touch/compositor-touch-hit-rects-global.html

Issue 2127163002: Limit PassiveDocumentEventListeners to touch and make it experimental (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 5 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
Index: third_party/WebKit/LayoutTests/fast/events/touch/compositor-touch-hit-rects-global.html
diff --git a/third_party/WebKit/LayoutTests/fast/events/touch/compositor-touch-hit-rects-global.html b/third_party/WebKit/LayoutTests/fast/events/touch/compositor-touch-hit-rects-global.html
index 5f8c979cf4696f597d2e34991c0f7b15aadfedc3..d41a66b60e61099b8a94e69a54b69735d492c0c0 100644
--- a/third_party/WebKit/LayoutTests/fast/events/touch/compositor-touch-hit-rects-global.html
+++ b/third_party/WebKit/LayoutTests/fast/events/touch/compositor-touch-hit-rects-global.html
@@ -27,14 +27,14 @@ function runGlobalTest(name, element) {
// With a global handler, no other handlers should matter
var elements = [document.getElementById('description'), element, document.getElementById('tests')];
for (var i = 0; i < elements.length; i++)
- elements[i].addEventListener('touchmove', listener, false);
+ elements[i].addEventListener('touchmove', listener, {passive: false});
if (window.internals)
internals.forceCompositingUpdate(document);
logRects(name, true);
for (var i = 0; i < elements.length; i++)
- elements[i].removeEventListener('touchmove', listener, false);
+ elements[i].removeEventListener('touchmove', listener, {passive: false});
}
function runOverlayTest() {

Powered by Google App Engine
This is Rietveld 408576698