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

Unified Diff: third_party/WebKit/Source/core/frame/Settings.in

Issue 1949793002: Emit a console warning when blocking event listener is delayed for too long (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 7 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/core/frame/Settings.in
diff --git a/third_party/WebKit/Source/core/frame/Settings.in b/third_party/WebKit/Source/core/frame/Settings.in
index b5982071f26d3709328184b1b17b2b225371df09..09969f1127ab4fd6b5566b9d3b8638b76f1a9399 100644
--- a/third_party/WebKit/Source/core/frame/Settings.in
+++ b/third_party/WebKit/Source/core/frame/Settings.in
@@ -403,3 +403,8 @@ resizeIsDeviceSizeChange initial=false
# Whether the browser process sends gesture events for wheel events.
# Can be removed when crbug.com/598798 is fixed.
wheelGesturesEnabled initial=false
+
+# If set to a positive value, emit a console warning once for each non-passive
+# event listener that caused an event to be dispatched to main thread and
+# delayed by more than the specified time (in seconds).
+blockedMainThreadEventsWarningThreshold type=double, initial=0

Powered by Google App Engine
This is Rietveld 408576698