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

Issue 645693003: [DevTools] Console Message Storage moved from top local frame to frame host (Closed)

Created:
6 years, 2 months ago by kozyatinskiy1
Modified:
6 years, 2 months ago
Reviewers:
Charlie Reis, vsevik, dcheng
CC:
blink-reviews, caseq+blink_chromium.org, loislo+blink_chromium.org, eustas+blink_chromium.org, malch+blink_chromium.org, yurys+blink_chromium.org, lushnikov+blink_chromium.org, vsevik+blink_chromium.org, pfeldman+blink_chromium.org, paulirish+reviews_chromium.org, apavlov+blink_chromium.org, Inactive, devtools-reviews_chromium.org, arv+blink, sergeyv+blink_chromium.org, aandrey+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

[DevTools] Console Message Storage moved from top local frame to frame host Console Message Storage was moved to frame host because remote frame which used in site-per-process mode not contains Frame Console. Instrumentation Code generator supports agent dispatching by different objects e.g. messagesCleared dispatch by execution context for workers and by FrameHost for pages. R=vsevik@chromium.org BUG=421948 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=183735

Patch Set 1 #

Patch Set 2 : Rebased #

Total comments: 6

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -33 lines) Patch
M Source/core/frame/FrameConsole.cpp View 1 chunk +2 lines, -10 lines 1 comment Download
M Source/core/frame/FrameHost.h View 3 chunks +4 lines, -0 lines 0 comments Download
M Source/core/frame/FrameHost.cpp View 3 chunks +8 lines, -0 lines 0 comments Download
M Source/core/frame/LocalDOMWindow.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/frame/LocalFrame.cpp View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/inspector/CodeGeneratorInstrumentation.py View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
M Source/core/inspector/ConsoleMessageStorage.h View 3 chunks +5 lines, -6 lines 0 comments Download
M Source/core/inspector/ConsoleMessageStorage.cpp View 4 chunks +12 lines, -11 lines 0 comments Download
M Source/core/inspector/InspectorInstrumentation.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M Source/core/inspector/InspectorInstrumentation.cpp View 2 chunks +6 lines, -0 lines 2 comments Download
M Source/core/inspector/InspectorInstrumentation.idl View 1 2 2 chunks +6 lines, -0 lines 0 comments Download
M Source/core/inspector/PageConsoleAgent.cpp View 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 17 (4 generated)
kozyatinskiy1
Vsevolod, please take a look!
6 years, 2 months ago (2014-10-14 14:00:42 UTC) #1
vsevik
lgtm https://codereview.chromium.org/645693003/diff/20001/Source/core/frame/LocalFrame.cpp File Source/core/frame/LocalFrame.cpp (right): https://codereview.chromium.org/645693003/diff/20001/Source/core/frame/LocalFrame.cpp#newcode314 Source/core/frame/LocalFrame.cpp:314: InspectorInstrumentation::frameWindowDiscarded(this, m_domWindow.get()); I think this should not be ...
6 years, 2 months ago (2014-10-14 14:34:08 UTC) #2
kozyatinskiy1
https://codereview.chromium.org/645693003/diff/20001/Source/core/frame/LocalFrame.cpp File Source/core/frame/LocalFrame.cpp (right): https://codereview.chromium.org/645693003/diff/20001/Source/core/frame/LocalFrame.cpp#newcode314 Source/core/frame/LocalFrame.cpp:314: InspectorInstrumentation::frameWindowDiscarded(this, m_domWindow.get()); On 2014/10/14 14:34:08, vsevik wrote: > I ...
6 years, 2 months ago (2014-10-14 17:17:01 UTC) #3
kozyatinskiy1
https://codereview.chromium.org/645693003/diff/20001/Source/core/inspector/InspectorInstrumentation.idl File Source/core/inspector/InspectorInstrumentation.idl (right): https://codereview.chromium.org/645693003/diff/20001/Source/core/inspector/InspectorInstrumentation.idl#newcode487 Source/core/inspector/InspectorInstrumentation.idl:487: void addMessageToConsole(FrameHost* frameHost, ConsoleMessage* consoleMessage); On 2014/10/14 14:34:08, vsevik ...
6 years, 2 months ago (2014-10-14 17:17:47 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/645693003/40001
6 years, 2 months ago (2014-10-14 17:18:45 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/android_chromium_gn_compile_rel/builds/13645)
6 years, 2 months ago (2014-10-14 17:29:18 UTC) #8
vsevik
https://codereview.chromium.org/645693003/diff/40001/Source/core/frame/LocalFrame.cpp File Source/core/frame/LocalFrame.cpp (right): https://codereview.chromium.org/645693003/diff/40001/Source/core/frame/LocalFrame.cpp#newcode312 Source/core/frame/LocalFrame.cpp:312: if (host()) we should move inspector instrumentation call under ...
6 years, 2 months ago (2014-10-15 08:06:22 UTC) #9
kozyatinskiy1
https://codereview.chromium.org/645693003/diff/40001/Source/core/frame/LocalFrame.cpp File Source/core/frame/LocalFrame.cpp (right): https://codereview.chromium.org/645693003/diff/40001/Source/core/frame/LocalFrame.cpp#newcode312 Source/core/frame/LocalFrame.cpp:312: if (host()) On 2014/10/15 08:06:22, vsevik wrote: > we ...
6 years, 2 months ago (2014-10-15 08:38:03 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/645693003/60001
6 years, 2 months ago (2014-10-15 08:38:41 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:60001) as 183735
6 years, 2 months ago (2014-10-15 10:59:19 UTC) #13
Charlie Reis
[+dcheng for FYI] Thanks for taking care of this so quickly! A few post-commit nits, ...
6 years, 2 months ago (2014-10-15 17:09:18 UTC) #15
Charlie Reis
https://codereview.chromium.org/645693003/diff/60001/Source/core/inspector/InspectorInstrumentation.cpp File Source/core/inspector/InspectorInstrumentation.cpp (right): https://codereview.chromium.org/645693003/diff/60001/Source/core/inspector/InspectorInstrumentation.cpp#newcode234 Source/core/inspector/InspectorInstrumentation.cpp:234: return instrumentationForPage(&host->page()); On 2014/10/15 17:09:17, Charlie Reis wrote: > ...
6 years, 2 months ago (2014-10-15 17:17:41 UTC) #16
vsevik
6 years, 2 months ago (2014-10-15 20:23:41 UTC) #17
Message was sent while issue was closed.
>
https://codereview.chromium.org/645693003/diff/60001/Source/core/frame/FrameC...
> Source/core/frame/FrameConsole.cpp:169: return
> &m_frame->page()->frameHost().consoleMessageStorage();
> nit: Can we use m_frame->host() instead of m_frame->page()->frameHost()?  Page
> is eventually going to go away.
That's right, we'll fix this.

>
https://codereview.chromium.org/645693003/diff/60001/Source/core/inspector/In...
> Source/core/inspector/InspectorInstrumentation.cpp:234: return
> instrumentationForPage(&host->page());
> This might be ok for now, but there's a comment on FrameHost::page() warning
> that it will eventually be removed (since Page is going away).
The thing is right now InspectorController object that is orchestrating all
inspector instrumentation is created per Page, not per FrameHost.
We are aware that we will need to move it to FrameHost eventually and the code
above will change naturally as well at the same moment.
We are not directly working on this yet though.

Powered by Google App Engine
This is Rietveld 408576698