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

Issue 976313003: [DevTools] Expose DevToolsAgentHost for OOPIF, display it in chrome://inspect. (Closed)

Created:
5 years, 9 months ago by dgozman
Modified:
5 years, 9 months ago
CC:
chromium-reviews, creis+watch_chromium.org, nasko+codewatch_chromium.org, jam, yurys, darin-cc_chromium.org, devtools-reviews_chromium.org, aandrey+blink_chromium.org, pfeldman, site-isolation-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[DevTools] Expose DevToolsAgentHost for OOPIF, display it in chrome://inspect. BUG=451004, 464993 Committed: https://crrev.com/ea764811d0f4a41ef8bb9768737bc6f7dde6f27f Cr-Commit-Position: refs/heads/master@{#319613}

Patch Set 1 #

Total comments: 11

Patch Set 2 : Fixed review comments #

Patch Set 3 : DevToolsAgentHost::List #

Total comments: 4

Patch Set 4 : Test, test fixes #

Total comments: 3

Patch Set 5 : Disabled test on android #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+212 lines, -42 lines) Patch
M chrome/browser/devtools/devtools_target_impl.cc View 1 3 chunks +25 lines, -12 lines 0 comments Download
M chrome/browser/devtools/devtools_window.h View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/devtools/devtools_window.cc View 1 chunk +15 lines, -0 lines 0 comments Download
M content/browser/devtools/devtools_agent_host_impl.h View 1 chunk +0 lines, -3 lines 0 comments Download
M content/browser/devtools/devtools_agent_host_impl.cc View 1 2 3 4 2 chunks +2 lines, -6 lines 0 comments Download
M content/browser/devtools/render_frame_devtools_agent_host.h View 1 2 3 3 chunks +9 lines, -0 lines 0 comments Download
M content/browser/devtools/render_frame_devtools_agent_host.cc View 1 2 3 5 chunks +39 lines, -21 lines 0 comments Download
A content/browser/devtools/site_per_process_devtools_browsertest.cc View 1 2 3 4 1 chunk +113 lines, -0 lines 2 comments Download
M content/content_tests.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/public/browser/devtools_agent_host.h View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (4 generated)
dgozman
Take a look please.
5 years, 9 months ago (2015-03-05 14:23:41 UTC) #2
pfeldman
lgtm
5 years, 9 months ago (2015-03-05 14:57:13 UTC) #3
dgozman
@creis, @nasko: take a look at frame_host and public please.
5 years, 9 months ago (2015-03-05 15:08:49 UTC) #5
nasko
Just one minor thing. I'd like to get Charlie's take on the method name, as ...
5 years, 9 months ago (2015-03-05 15:20:48 UTC) #6
Charlie Reis
Great, thanks! We probably don't need IsFrameGroupRoot, plus a few nits. Otherwise this looks nice. ...
5 years, 9 months ago (2015-03-05 20:31:15 UTC) #7
Charlie Reis
[oops, +site-isolation-reviews@chromium.org for real this time]
5 years, 9 months ago (2015-03-05 20:31:43 UTC) #8
dgozman
Please take another look. https://codereview.chromium.org/976313003/diff/1/chrome/browser/devtools/devtools_target_impl.cc File chrome/browser/devtools/devtools_target_impl.cc (right): https://codereview.chromium.org/976313003/diff/1/chrome/browser/devtools/devtools_target_impl.cc#newcode67 chrome/browser/devtools/devtools_target_impl.cc:67: web_contents->GetRenderViewHost()->GetMainFrame(); On 2015/03/05 20:31:14, Charlie ...
5 years, 9 months ago (2015-03-06 16:14:14 UTC) #9
nasko
This looks really nice! LGTM
5 years, 9 months ago (2015-03-06 19:36:18 UTC) #10
Charlie Reis
Nice! Are there any tests for opening DevTools? We should have one for an OOPIF ...
5 years, 9 months ago (2015-03-06 21:33:50 UTC) #11
dgozman
Added test. https://codereview.chromium.org/976313003/diff/40001/content/browser/devtools/render_frame_devtools_agent_host.cc File content/browser/devtools/render_frame_devtools_agent_host.cc (right): https://codereview.chromium.org/976313003/diff/40001/content/browser/devtools/render_frame_devtools_agent_host.cc#newcode94 content/browser/devtools/render_frame_devtools_agent_host.cc:94: DevToolsAgentHost::List* result, RenderFrameHost* host) { On 2015/03/06 ...
5 years, 9 months ago (2015-03-07 14:13:01 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/976313003/80001
5 years, 9 months ago (2015-03-09 12:16:19 UTC) #15
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 9 months ago (2015-03-09 13:08:04 UTC) #16
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/ea764811d0f4a41ef8bb9768737bc6f7dde6f27f Cr-Commit-Position: refs/heads/master@{#319613}
5 years, 9 months ago (2015-03-09 13:08:35 UTC) #17
nasko
https://codereview.chromium.org/976313003/diff/60001/content/browser/devtools/render_frame_devtools_agent_host.cc File content/browser/devtools/render_frame_devtools_agent_host.cc (right): https://codereview.chromium.org/976313003/diff/60001/content/browser/devtools/render_frame_devtools_agent_host.cc#newcode476 content/browser/devtools/render_frame_devtools_agent_host.cc:476: return web_contents->GetVisibleURL(); On 2015/03/07 14:13:01, dgozman wrote: > I ...
5 years, 9 months ago (2015-03-09 14:14:46 UTC) #18
dgozman
On 2015/03/09 14:14:46, nasko wrote: > https://codereview.chromium.org/976313003/diff/60001/content/browser/devtools/render_frame_devtools_agent_host.cc > File content/browser/devtools/render_frame_devtools_agent_host.cc (right): > > https://codereview.chromium.org/976313003/diff/60001/content/browser/devtools/render_frame_devtools_agent_host.cc#newcode476 > ...
5 years, 9 months ago (2015-03-09 14:16:46 UTC) #19
nasko
On 2015/03/09 14:16:46, dgozman wrote: > On 2015/03/09 14:14:46, nasko wrote: > > > https://codereview.chromium.org/976313003/diff/60001/content/browser/devtools/render_frame_devtools_agent_host.cc ...
5 years, 9 months ago (2015-03-09 14:18:51 UTC) #20
Charlie Reis
5 years, 9 months ago (2015-03-09 23:02:38 UTC) #21
Message was sent while issue was closed.
Awesome.  Thanks for the test and still LGTM.  A few minor notes below for
future CLs.

https://codereview.chromium.org/976313003/diff/60001/content/browser/devtools...
File content/browser/devtools/render_frame_devtools_agent_host.cc (right):

https://codereview.chromium.org/976313003/diff/60001/content/browser/devtools...
content/browser/devtools/render_frame_devtools_agent_host.cc:476: return
web_contents->GetVisibleURL();
On 2015/03/09 14:16:46, dgozman wrote:
> On 2015/03/09 14:14:46, nasko wrote:
> >
>
https://codereview.chromium.org/976313003/diff/60001/content/browser/devtools...
> > File content/browser/devtools/render_frame_devtools_agent_host.cc (right):
> > 
> >
>
https://codereview.chromium.org/976313003/diff/60001/content/browser/devtools...
> > content/browser/devtools/render_frame_devtools_agent_host.cc:476: return
> > web_contents->GetVisibleURL();
> > On 2015/03/07 14:13:01, dgozman wrote:
> > > I had to bring this back, since tests expect correct url before load has
> > > finished.
> > 
> > Can you point me to which test is expecting this? Other than the network tab
> > collecting data for the pending navigation, I don't see any other reason
> > DevTools should be operating on the pending URL, so I'm curious where my
> > understanding is lacking.
> 
> Here you go:
>
http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_....
> 
> We expect DevToolsTarget to report correct URL for just-created page. We can
> probably fix that, but it's a separate non-trivial effort.

Thanks for the test pointer.  Agreed that we should try to fix that in a future
CL, since tests shouldn't assume that the pending URL is the current one (or
even that it will necessarily commit).

https://codereview.chromium.org/976313003/diff/80001/content/browser/devtools...
File content/browser/devtools/site_per_process_devtools_browsertest.cc (right):

https://codereview.chromium.org/976313003/diff/80001/content/browser/devtools...
content/browser/devtools/site_per_process_devtools_browsertest.cc:1: //
Copyright (c) 2014 The Chromium Authors. All rights reserved.
nit: 2015

https://codereview.chromium.org/976313003/diff/80001/content/browser/devtools...
content/browser/devtools/site_per_process_devtools_browsertest.cc:4: 
nit: Remove one of the two blank lines.

Powered by Google App Engine
This is Rietveld 408576698