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

Issue 562683003: Tidy up ConsoleMessage callstack inclusion, fix Worker console crashes (Closed)

Created:
6 years, 3 months ago by sof
Modified:
6 years, 3 months ago
CC:
aandrey, blink-reviews, falken, horo+watch_chromium.org, kinuko+worker_chromium.org, kozyatinskiy1
Project:
blink
Visibility:
Public.

Description

Tidy up ConsoleMessage callstack inclusion, fix Worker console crashes Follow up r181319 (+ r180544) and annotate ConsoleMessages from console.count() and console.timeEnd() with a call stack. Not doing so broke the WorkerConsole::reportMessageToConsole() assumption that a ConsoleMessage has a call stack. An unnecessary assumption to make, so instead have it mirror how "non-Worker" console messages are handled when reported, and allow "stackless" messages. R=kozyatinskiy,aandrey,jochen BUG=413223 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=182056

Patch Set 1 #

Total comments: 9
Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -7 lines) Patch
M LayoutTests/fast/workers/shared-worker-console-log.html View 1 chunk +3 lines, -0 lines 0 comments Download
M LayoutTests/fast/workers/worker-console-log.html View 1 chunk +3 lines, -0 lines 0 comments Download
M LayoutTests/fast/workers/worker-console-log-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/frame/ConsoleBase.cpp View 4 chunks +4 lines, -4 lines 6 comments Download
M Source/core/workers/WorkerConsole.cpp View 1 chunk +5 lines, -3 lines 3 comments Download

Messages

Total messages: 18 (5 generated)
sof
Please take a look.
6 years, 3 months ago (2014-09-14 22:08:29 UTC) #2
aandrey
6 years, 3 months ago (2014-09-15 04:12:21 UTC) #4
sof
+jochen - seems like other reviewers are enjoying some time off today :-)
6 years, 3 months ago (2014-09-15 08:21:35 UTC) #6
kozyatinskiy1
https://codereview.chromium.org/562683003/diff/1/Source/core/frame/ConsoleBase.cpp File Source/core/frame/ConsoleBase.cpp (right): https://codereview.chromium.org/562683003/diff/1/Source/core/frame/ConsoleBase.cpp#newcode106 Source/core/frame/ConsoleBase.cpp:106: RefPtrWillBeRawPtr<ScriptCallStack> callStack(createScriptCallStackForConsole(1)); createScriptCallStack(1) is equivalent createScriptCallStackForConsole(1). In createScriptCallStackForConsole if ...
6 years, 3 months ago (2014-09-15 12:57:26 UTC) #7
sof
https://codereview.chromium.org/562683003/diff/1/Source/core/frame/ConsoleBase.cpp File Source/core/frame/ConsoleBase.cpp (right): https://codereview.chromium.org/562683003/diff/1/Source/core/frame/ConsoleBase.cpp#newcode106 Source/core/frame/ConsoleBase.cpp:106: RefPtrWillBeRawPtr<ScriptCallStack> callStack(createScriptCallStackForConsole(1)); On 2014/09/15 12:57:25, kozyatinskiy wrote: > createScriptCallStack(1) ...
6 years, 3 months ago (2014-09-15 13:09:33 UTC) #8
kozyatinskiy1
https://codereview.chromium.org/562683003/diff/1/Source/core/frame/ConsoleBase.cpp File Source/core/frame/ConsoleBase.cpp (right): https://codereview.chromium.org/562683003/diff/1/Source/core/frame/ConsoleBase.cpp#newcode106 Source/core/frame/ConsoleBase.cpp:106: RefPtrWillBeRawPtr<ScriptCallStack> callStack(createScriptCallStackForConsole(1)); On 2014/09/15 13:09:32, sof wrote: > On ...
6 years, 3 months ago (2014-09-15 13:31:29 UTC) #9
sof
https://codereview.chromium.org/562683003/diff/1/Source/core/frame/ConsoleBase.cpp File Source/core/frame/ConsoleBase.cpp (right): https://codereview.chromium.org/562683003/diff/1/Source/core/frame/ConsoleBase.cpp#newcode106 Source/core/frame/ConsoleBase.cpp:106: RefPtrWillBeRawPtr<ScriptCallStack> callStack(createScriptCallStackForConsole(1)); On 2014/09/15 13:31:29, kozyatinskiy wrote: > On ...
6 years, 3 months ago (2014-09-15 13:44:18 UTC) #10
kozyatinskiy1
lgtm, but please wait for aandrey or vsevik to review. https://codereview.chromium.org/562683003/diff/1/Source/core/frame/ConsoleBase.cpp File Source/core/frame/ConsoleBase.cpp (right): https://codereview.chromium.org/562683003/diff/1/Source/core/frame/ConsoleBase.cpp#newcode106 ...
6 years, 3 months ago (2014-09-15 14:18:21 UTC) #11
sof
On 2014/09/15 14:18:21, kozyatinskiy wrote: > lgtm, but please wait for aandrey or vsevik to ...
6 years, 3 months ago (2014-09-16 12:24:46 UTC) #12
aandrey
lgtm (not owner)
6 years, 3 months ago (2014-09-16 12:38:57 UTC) #14
jochen (gone - plz use gerrit)
lgtm
6 years, 3 months ago (2014-09-16 14:26:27 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/562683003/1
6 years, 3 months ago (2014-09-16 14:52:33 UTC) #17
commit-bot: I haz the power
6 years, 3 months ago (2014-09-16 15:26:45 UTC) #18
Message was sent while issue was closed.
Committed patchset #1 (id:1) as 182056

Powered by Google App Engine
This is Rietveld 408576698