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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorInstrumentation.idl

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: review comments addressed 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/inspector/InspectorInstrumentation.idl
diff --git a/third_party/WebKit/Source/core/inspector/InspectorInstrumentation.idl b/third_party/WebKit/Source/core/inspector/InspectorInstrumentation.idl
index 91feced9e7bbc72d48e23af67303eb424a33d777..bc0a814020c765d97fa54ece108b05286b18ee0f 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorInstrumentation.idl
+++ b/third_party/WebKit/Source/core/inspector/InspectorInstrumentation.idl
@@ -63,6 +63,7 @@ interface InspectorInstrumentation {
#include "core/dom/CharacterData.h"
#include "core/dom/PseudoElement.h"
+class RegisteredEventListener;
class ThreadableLoaderClient;
class WebSocketHandshakeRequest;
class WebSocketHandshakeResponse;
@@ -321,6 +322,9 @@ class XMLHttpRequest;
[Page]
void windowCreated(LocalFrame* opener, LocalFrame* created);
+
+ [Input]
+ void reportBlockedEvent([Keep] ExecutionContext*, const Event*, RegisteredEventListener*, double delayedSeconds);
}
interface InspectorConsoleInstrumentation {
@@ -348,4 +352,7 @@ interface InspectorOverrides {
[Resource]
bool shouldBlockRequest(LocalFrame*, const ResourceRequest&);
+
+ [Input]
+ bool shouldReportBlockedEvent(ExecutionContext*, const Event*);
}

Powered by Google App Engine
This is Rietveld 408576698