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

Issue 2900613002: Support DevTools for off-main-thread-fetch (Closed)

Created:
3 years, 7 months ago by horo
Modified:
3 years, 5 months ago
Reviewers:
kinuko, caseq, dgozman, pfeldman
CC:
chromium-reviews, kinuko+worker_chromium.org, caseq+blink_chromium.org, Yoav Weiss, lushnikov+blink_chromium.org, shimazu+worker_chromium.org, pfeldman+blink_chromium.org, apavlov+blink_chromium.org, pfeldman, devtools-reviews_chromium.org, blink-reviews, horo+watch_chromium.org, falken+watch_chromium.org, blink-worker-reviews_chromium.org, kozyatinskiy+blink_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Support DevTools for off-main-thread-fetch After this CL, we can see the requests from workers in DevTool's network tab even if chrome://flags/#enable-off-main-thread-fetch is enabled. BUG=443374 Review-Url: https://codereview.chromium.org/2900613002 Cr-Commit-Position: refs/heads/master@{#484009} Committed: https://chromium.googlesource.com/chromium/src/+/3f61513654aecf07ba4fac786d17689750bf288f

Patch Set 1 #

Total comments: 11

Patch Set 2 : incorporated kinuko's comment #

Total comments: 4

Patch Set 3 : s/worker_global_scope/execution_context/ #

Patch Set 4 : Revive ShouldBlockRequestByInspector and DispatchDidReceiveEncodedData #

Patch Set 5 : rebase #

Total comments: 9

Patch Set 6 : incorporated dgozman's comment #

Total comments: 11

Patch Set 7 : incorporated dgozman's comment #

Total comments: 10

Patch Set 8 : incorporated dgozman's comment #

Patch Set 9 : Use Maybe<String> in InspectorNetworkAgent::DidReceiveResourceResponse() #

Patch Set 10 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+273 lines, -141 lines) Patch
M content/browser/devtools/protocol/network_handler.cc View 1 2 3 4 5 6 3 chunks +3 lines, -5 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/network/network-datareceived.html View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.h View 1 2 3 4 5 6 7 4 chunks +21 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp View 1 2 3 4 5 6 7 8 20 chunks +84 lines, -41 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorTraceEvents.h View 1 2 3 4 5 6 1 chunk +6 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorTraceEvents.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +20 lines, -15 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/WorkerInspectorController.cpp View 1 2 3 4 5 6 2 chunks +10 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/browser_protocol.json View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/FrameFetchContext.cpp View 1 2 3 4 5 6 7 8 9 8 chunks +18 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoader.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/WorkerFetchContext.h View 1 2 3 4 5 6 1 chunk +17 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/loader/WorkerFetchContext.cpp View 1 2 3 4 5 6 7 8 9 5 chunks +55 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/probe/CoreProbes.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/probe/CoreProbes.pidl View 1 2 3 4 5 2 chunks +9 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/main/Main.js View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sdk/NetworkManager.js View 1 2 3 4 5 6 7 3 chunks +8 lines, -16 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sdk/TargetManager.js View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/timeline_model/TimelineModel.js View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 78 (56 generated)
horo
kinuko@ Could you please review this?
3 years, 7 months ago (2017-05-22 05:55:47 UTC) #15
kinuko
Very cool. https://codereview.chromium.org/2900613002/diff/60001/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp File third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp (right): https://codereview.chromium.org/2900613002/diff/60001/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp#newcode1460 third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp:1460: IsMainThread()) { DCHECK(IsMainThread()) seems fine https://codereview.chromium.org/2900613002/diff/60001/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp#newcode1513 third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp:1513: ...
3 years, 7 months ago (2017-05-22 06:53:40 UTC) #16
horo
https://codereview.chromium.org/2900613002/diff/60001/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp File third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp (right): https://codereview.chromium.org/2900613002/diff/60001/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp#newcode1460 third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp:1460: IsMainThread()) { On 2017/05/22 06:53:40, kinuko wrote: > DCHECK(IsMainThread()) ...
3 years, 7 months ago (2017-05-22 07:32:17 UTC) #17
kinuko
lgtm for my eyes https://codereview.chromium.org/2900613002/diff/80001/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.h File third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.h (right): https://codereview.chromium.org/2900613002/diff/80001/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.h#newcode72 third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.h:72: return new InspectorNetworkAgent(worker_global_scope); Could you ...
3 years, 7 months ago (2017-05-22 07:51:03 UTC) #20
horo
https://codereview.chromium.org/2900613002/diff/60001/third_party/WebKit/Source/core/loader/WorkerFetchContext.cpp File third_party/WebKit/Source/core/loader/WorkerFetchContext.cpp (right): https://codereview.chromium.org/2900613002/diff/60001/third_party/WebKit/Source/core/loader/WorkerFetchContext.cpp#newcode250 third_party/WebKit/Source/core/loader/WorkerFetchContext.cpp:250: encoded_data_length); On 2017/05/22 07:32:17, horo wrote: > On 2017/05/22 ...
3 years, 7 months ago (2017-05-22 10:42:39 UTC) #25
horo
dgozman@ Could you please review third_party/WebKit/Source/devtools/front_end/?
3 years, 7 months ago (2017-05-22 10:43:54 UTC) #27
dgozman
Is there a design doc or some plan outlined? Are we going to support everything ...
3 years, 7 months ago (2017-05-22 19:04:18 UTC) #33
horo
Thank you. > Is there a design doc or some plan outlined? https://goo.gl/hgmQbP is the ...
3 years, 7 months ago (2017-05-23 11:26:45 UTC) #41
horo
dgozman@, caseq@, pfeldman@ Could you please review Patch Set 6?
3 years, 7 months ago (2017-05-24 22:35:09 UTC) #46
dgozman
On 2017/05/24 22:35:09, horo wrote: > dgozman@, caseq@, pfeldman@ > > Could you please review ...
3 years, 7 months ago (2017-05-25 21:42:15 UTC) #47
dgozman
I'm thinking whether we should extract main-thread-only bits of InspectorNetworkAgent into FrameNetworkAgent, and have a ...
3 years, 6 months ago (2017-05-26 23:46:48 UTC) #48
kinuko
On 2017/05/26 23:46:48, dgozman wrote: > I'm thinking whether we should extract main-thread-only bits of ...
3 years, 6 months ago (2017-05-29 09:30:10 UTC) #49
dgozman
> > I'm thinking whether we should extract main-thread-only bits of > > InspectorNetworkAgent into ...
3 years, 6 months ago (2017-05-30 23:34:47 UTC) #50
horo
I'm so sorry for the late response. Currently I have to work on other P1 ...
3 years, 6 months ago (2017-06-20 11:14:31 UTC) #51
horo
https://codereview.chromium.org/2900613002/diff/180001/content/browser/devtools/protocol/network_handler.cc File content/browser/devtools/protocol/network_handler.cc (right): https://codereview.chromium.org/2900613002/diff/180001/content/browser/devtools/protocol/network_handler.cc#newcode624 content/browser/devtools/protocol/network_handler.cc:624: request_id, "" /* loader_id */, request.url.spec(), On 2017/05/26 23:46:47, ...
3 years, 5 months ago (2017-06-27 09:29:14 UTC) #55
dgozman
Overall looks good, mostly nits below. I will take one more look tomorrow just to ...
3 years, 5 months ago (2017-06-28 22:50:32 UTC) #58
horo
Thank you. https://codereview.chromium.org/2900613002/diff/220001/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp File third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp (right): https://codereview.chromium.org/2900613002/diff/220001/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp#newcode679 third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp:679: } On 2017/06/28 22:50:32, dgozman wrote: > ...
3 years, 5 months ago (2017-06-29 02:14:28 UTC) #60
caseq
front_end/timeline_model lgtm
3 years, 5 months ago (2017-06-29 22:20:24 UTC) #66
horo
On 2017/06/28 22:50:32, dgozman wrote: > Overall looks good, mostly nits below. I will take ...
3 years, 5 months ago (2017-07-03 06:19:56 UTC) #67
dgozman
lgtm
3 years, 5 months ago (2017-07-03 15:02:40 UTC) #72
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2900613002/280001
3 years, 5 months ago (2017-07-03 15:45:48 UTC) #75
commit-bot: I haz the power
3 years, 5 months ago (2017-07-03 15:50:00 UTC) #78
Message was sent while issue was closed.
Committed patchset #10 (id:280001) as
https://chromium.googlesource.com/chromium/src/+/3f61513654aecf07ba4fac786d17...

Powered by Google App Engine
This is Rietveld 408576698