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

Issue 1999463002: Cleanup ConsoleMessage interface. (Closed)

Created:
4 years, 7 months ago by dgozman
Modified:
4 years, 7 months ago
Reviewers:
kozy, pfeldman
CC:
chromium-reviews, tzik, eae+blinkwatch, fs, dominicc+watchlist_chromium.org, apavlov+blink_chromium.org, kinuko+worker_chromium.org, kouhei+svg_chromium.org, rwlbuis, jsbell+serviceworker_chromium.org, caseq+blink_chromium.org, krit, yhirano+watch_chromium.org, kinuko+serviceworker, blink-reviews-dom_chromium.org, dglazkov+blink, blink-reviews-bindings_chromium.org, devtools-reviews_chromium.org, blink-reviews, gyuyoung2, pdr+svgwatchlist_chromium.org, blink-worker-reviews_chromium.org, sof, lushnikov+blink_chromium.org, nhiroki, haraken, Stephen Chennney, michaeln, mkwst+watchlist-csp_chromium.org, tyoshino+watch_chromium.org, serviceworker-reviews, falken, pfeldman+blink_chromium.org, f(malita), horo+watch_chromium.org, sergeyv+blink_chromium.org, kozyatinskiy+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@console-message-callstack-in-constructor
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Cleanup ConsoleMessage interface. Now that all places that need it collect call stack, we can remove redundant methods on ConsoleMessage and introduce a few create() functions. This also cleans up console message reporting a bit (FrameConsole and ConsoleMessageStorage). BUG=611926 Committed: https://crrev.com/c76cb79e1aed30402db1f5cb598c382f42aafd05 Cr-Commit-Position: refs/heads/master@{#395216}

Patch Set 1 #

Total comments: 6

Patch Set 2 : comments addressed #

Patch Set 3 : extensions fix #

Patch Set 4 : PassRefPtr + win #

Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -111 lines) Patch
M third_party/WebKit/LayoutTests/inspector-enabled/console/console-uncaught-promise-no-inspector-expected.txt View 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-log-eval-syntax-error-expected.txt View 1 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-message-from-inline-with-url-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/sources/debugger-pause/debugger-pause-in-internal-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/RejectedPromises.cpp View 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.cpp View 1 2 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/core/events/EventTarget.cpp View 1 2 1 chunk +5 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/frame/Deprecation.cpp View 1 2 2 chunks +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FrameConsole.cpp View 1 2 3 chunks +10 lines, -25 lines 0 comments Download
M third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/inspector/ConsoleMessage.h View 4 chunks +13 lines, -17 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/ConsoleMessage.cpp View 1 2 3 4 chunks +32 lines, -26 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/ConsoleMessageStorage.cpp View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGDocumentExtensions.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/workers/SharedWorkerGlobalScope.cpp View 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/xml/XSLTProcessorLibxslt.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp View 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/websockets/DocumentWebSocketChannel.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/worklet/WorkletGlobalScope.cpp View 1 chunk +1 line, -3 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 24 (11 generated)
dgozman
Could you please take a look?
4 years, 7 months ago (2016-05-19 21:19:13 UTC) #2
kozy
https://codereview.chromium.org/1999463002/diff/1/third_party/WebKit/Source/core/events/EventTarget.cpp File third_party/WebKit/Source/core/events/EventTarget.cpp (right): https://codereview.chromium.org/1999463002/diff/1/third_party/WebKit/Source/core/events/EventTarget.cpp#newcode105 third_party/WebKit/Source/core/events/EventTarget.cpp:105: message = ConsoleMessage::create(JSMessageSource, WarningMessageLevel, messageText, String(), function->GetScriptLineNumber() + 1, ...
4 years, 7 months ago (2016-05-19 21:46:30 UTC) #3
dgozman
https://codereview.chromium.org/1999463002/diff/1/third_party/WebKit/Source/core/events/EventTarget.cpp File third_party/WebKit/Source/core/events/EventTarget.cpp (right): https://codereview.chromium.org/1999463002/diff/1/third_party/WebKit/Source/core/events/EventTarget.cpp#newcode105 third_party/WebKit/Source/core/events/EventTarget.cpp:105: message = ConsoleMessage::create(JSMessageSource, WarningMessageLevel, messageText, String(), function->GetScriptLineNumber() + 1, ...
4 years, 7 months ago (2016-05-19 22:57:14 UTC) #4
kozy
lgtm
4 years, 7 months ago (2016-05-19 23:07:49 UTC) #5
pfeldman
lgtm
4 years, 7 months ago (2016-05-19 23:09:15 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1999463002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1999463002/20001
4 years, 7 months ago (2016-05-20 00:16:09 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_gn_rel on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_gn_rel/builds/114665)
4 years, 7 months ago (2016-05-20 01:03:45 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1999463002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1999463002/40001
4 years, 7 months ago (2016-05-20 21:03:03 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: win8_chromium_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_ng/builds/152003)
4 years, 7 months ago (2016-05-20 22:59:50 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1999463002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1999463002/40001
4 years, 7 months ago (2016-05-20 23:02:09 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1999463002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1999463002/60001
4 years, 7 months ago (2016-05-20 23:08:23 UTC) #21
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 7 months ago (2016-05-21 00:29:44 UTC) #22
commit-bot: I haz the power
4 years, 7 months ago (2016-05-21 00:31:08 UTC) #24
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/c76cb79e1aed30402db1f5cb598c382f42aafd05
Cr-Commit-Position: refs/heads/master@{#395216}

Powered by Google App Engine
This is Rietveld 408576698