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/Source/web/tests/FrameThrottlingTest.cpp

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/Source/web/tests/FrameThrottlingTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/FrameThrottlingTest.cpp b/third_party/WebKit/Source/web/tests/FrameThrottlingTest.cpp
index 667b09874c808cb497a15fa91243c7cb09cf6313..13d13fee9221ed14ec03c2e1e5677a53c04f525c 100644
--- a/third_party/WebKit/Source/web/tests/FrameThrottlingTest.cpp
+++ b/third_party/WebKit/Source/web/tests/FrameThrottlingTest.cpp
@@ -633,8 +633,8 @@ TEST_F(FrameThrottlingTest, ThrottledTopLevelEventHandlerIgnored)
mainResource.complete("<iframe id=frame sandbox=allow-scripts src=iframe.html></iframe>");
frameResource.complete(
"<script>"
- "window.addEventListener('touchstart', function(){});"
- "document.addEventListener('touchstart', function(){});"
+ "window.addEventListener('touchstart', function(){}, {passive: false});"
+ "document.addEventListener('touchstart', function(){}, {passive: false});"
"</script>");
auto* frameElement = toHTMLIFrameElement(document().getElementById("frame"));
frameElement->setAttribute(styleAttr, "transform: translateY(480px)");

Powered by Google App Engine
This is Rietveld 408576698