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

Unified Diff: third_party/WebKit/Source/core/events/Event.cpp

Issue 2520423004: Don't log a console warning when touch-action is used. (Closed)
Patch Set: Created 4 years, 1 month 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/core/events/Event.cpp
diff --git a/third_party/WebKit/Source/core/events/Event.cpp b/third_party/WebKit/Source/core/events/Event.cpp
index 68487d551634c0155fb61f6f3ee8cbb118e37006..779a2047a27693e1d25ace1ba3f31cb58a4f4f8e 100644
--- a/third_party/WebKit/Source/core/events/Event.cpp
+++ b/third_party/WebKit/Source/core/events/Event.cpp
@@ -225,7 +225,7 @@ void Event::preventDefault() {
const LocalDOMWindow* window =
m_eventPath ? m_eventPath->windowEventContext().window() : 0;
- if (window) {
+ if (window && shouldLogPassiveDevtoolsWarning()) {
const char* devToolsMsg = nullptr;
switch (m_handlingPassive) {
case PassiveMode::NotPassive:

Powered by Google App Engine
This is Rietveld 408576698