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

Unified Diff: third_party/WebKit/LayoutTests/inspector-protocol/input/emulateTouchFromMouseEvent.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/inspector-protocol/input/emulateTouchFromMouseEvent.html
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/input/emulateTouchFromMouseEvent.html b/third_party/WebKit/LayoutTests/inspector-protocol/input/emulateTouchFromMouseEvent.html
index f141e8c2f62b1cca13672f2380f7ca1c996a2d7d..802f29fe9fb155c52d210eacc1860f1ff53d8312 100644
--- a/third_party/WebKit/LayoutTests/inspector-protocol/input/emulateTouchFromMouseEvent.html
+++ b/third_party/WebKit/LayoutTests/inspector-protocol/input/emulateTouchFromMouseEvent.html
@@ -3,9 +3,9 @@
<script type="text/javascript" src="../../http/tests/inspector-protocol/inspector-protocol-test.js"></script>
<script>
-window.addEventListener("touchstart", logEvent);
+window.addEventListener("touchstart", logEvent, {passive: false});
+window.addEventListener("touchmove", logEvent, {passive: false});
window.addEventListener("touchend", logEvent);
-window.addEventListener("touchmove", logEvent);
window.addEventListener("touchcancel", logEvent);
function logEvent(event)

Powered by Google App Engine
This is Rietveld 408576698