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

Issue 1949793002: Emit a console warning when blocking event listener is delayed for too long (Closed)

Created:
4 years, 7 months ago by caseq
Modified:
4 years, 7 months ago
Reviewers:
dtapuska, pfeldman
CC:
chromium-reviews, caseq+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, blink-reviews, blink-reviews-bindings_chromium.org, sergeyv+blink_chromium.org, pfeldman, kozyatinskiy+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Emit a console warning when blocking event listener is delayed for too long BUG=609172 Committed: https://crrev.com/d6fb47a68199ad74ddbc33c5cf88bfdfed5fce86 Cr-Commit-Position: refs/heads/master@{#393432}

Patch Set 1 #

Total comments: 7

Patch Set 2 : review comments addressed #

Total comments: 2

Patch Set 3 : moved logic to EventTarget.cpp, use Settings for warning threshold #

Patch Set 4 : removed forward decls & includes that are not in use now #

Total comments: 5

Patch Set 5 : moved setting to Page agent, fixed warning wording #

Patch Set 6 : rebased #

Patch Set 7 : reverted changes to InspectorInputAgent.h #

Patch Set 8 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+145 lines, -24 lines) Patch
M third_party/WebKit/Source/core/events/EventTarget.cpp View 1 2 3 4 5 6 7 5 chunks +69 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/events/RegisteredEventListener.h View 1 2 4 chunks +13 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/Settings.in View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/ConsoleMessage.h View 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/inspector/ConsoleMessage.cpp View 2 chunks +10 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorInputAgent.cpp View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorPageAgent.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp View 1 2 3 4 4 chunks +15 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/main/Main.js View 1 2 3 4 5 6 7 2 chunks +15 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/main/module.json View 1 chunk +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/protocol.json View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (16 generated)
caseq
4 years, 7 months ago (2016-05-03 22:55:41 UTC) #2
dtapuska
Bug=? https://codereview.chromium.org/1949793002/diff/1/third_party/WebKit/Source/core/events/EventTarget.cpp File third_party/WebKit/Source/core/events/EventTarget.cpp (right): https://codereview.chromium.org/1949793002/diff/1/third_party/WebKit/Source/core/events/EventTarget.cpp#newcode429 third_party/WebKit/Source/core/events/EventTarget.cpp:429: bool shouldReportBlockedEvent = InspectorInstrumentation::shouldReportBlockedEvent(context, event); This code codes ...
4 years, 7 months ago (2016-05-03 23:42:07 UTC) #3
caseq
https://codereview.chromium.org/1949793002/diff/1/third_party/WebKit/Source/core/events/EventTarget.cpp File third_party/WebKit/Source/core/events/EventTarget.cpp (right): https://codereview.chromium.org/1949793002/diff/1/third_party/WebKit/Source/core/events/EventTarget.cpp#newcode429 third_party/WebKit/Source/core/events/EventTarget.cpp:429: bool shouldReportBlockedEvent = InspectorInstrumentation::shouldReportBlockedEvent(context, event); On 2016/05/03 23:42:06, dtapuska ...
4 years, 7 months ago (2016-05-04 00:04:49 UTC) #4
dtapuska
https://codereview.chromium.org/1949793002/diff/1/third_party/WebKit/Source/core/events/EventTarget.cpp File third_party/WebKit/Source/core/events/EventTarget.cpp (right): https://codereview.chromium.org/1949793002/diff/1/third_party/WebKit/Source/core/events/EventTarget.cpp#newcode429 third_party/WebKit/Source/core/events/EventTarget.cpp:429: bool shouldReportBlockedEvent = InspectorInstrumentation::shouldReportBlockedEvent(context, event); On 2016/05/04 00:04:49, caseq ...
4 years, 7 months ago (2016-05-04 17:46:10 UTC) #6
caseq
On 2016/05/04 17:46:10, dtapuska wrote: > So this is when the event listener registers as ...
4 years, 7 months ago (2016-05-04 19:01:18 UTC) #8
dtapuska
On 2016/05/04 19:01:18, caseq wrote: > On 2016/05/04 17:46:10, dtapuska wrote: > > > So ...
4 years, 7 months ago (2016-05-04 19:08:18 UTC) #9
pfeldman
https://codereview.chromium.org/1949793002/diff/40001/third_party/WebKit/Source/core/events/EventTarget.cpp File third_party/WebKit/Source/core/events/EventTarget.cpp (right): https://codereview.chromium.org/1949793002/diff/40001/third_party/WebKit/Source/core/events/EventTarget.cpp#newcode429 third_party/WebKit/Source/core/events/EventTarget.cpp:429: bool shouldReportBlockedEvent = InspectorInstrumentation::shouldReportBlockedEvent(context, event); Lets instead call EventTarget::logBlockedEventsToConsole(); ...
4 years, 7 months ago (2016-05-04 22:58:02 UTC) #10
caseq
ptal -- the logic is moved to EventTarget.cpp and the threshold value is now in ...
4 years, 7 months ago (2016-05-10 01:54:56 UTC) #11
pfeldman
lgtm % comments https://codereview.chromium.org/1949793002/diff/100001/third_party/WebKit/Source/core/events/EventTarget.cpp File third_party/WebKit/Source/core/events/EventTarget.cpp (right): https://codereview.chromium.org/1949793002/diff/100001/third_party/WebKit/Source/core/events/EventTarget.cpp#newcode104 third_party/WebKit/Source/core/events/EventTarget.cpp:104: "Handling of %s input event was ...
4 years, 7 months ago (2016-05-10 20:01:23 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1949793002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1949793002/140001
4 years, 7 months ago (2016-05-11 20:20:56 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1949793002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1949793002/160001
4 years, 7 months ago (2016-05-11 20:29:55 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1949793002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1949793002/160001
4 years, 7 months ago (2016-05-12 01:38:36 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/181790)
4 years, 7 months ago (2016-05-12 01:44:02 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1949793002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1949793002/180001
4 years, 7 months ago (2016-05-13 00:00:43 UTC) #28
commit-bot: I haz the power
Committed patchset #8 (id:180001)
4 years, 7 months ago (2016-05-13 02:20:34 UTC) #30
commit-bot: I haz the power
4 years, 7 months ago (2016-05-13 02:21:51 UTC) #32
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/d6fb47a68199ad74ddbc33c5cf88bfdfed5fce86
Cr-Commit-Position: refs/heads/master@{#393432}

Powered by Google App Engine
This is Rietveld 408576698