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

Issue 2266913002: DevTools Disable cache should properly handle LoadOnlyFromCache resources (Closed)

Created:
4 years, 4 months ago by jkarlin
Modified:
4 years, 2 months ago
Reviewers:
Nate Chapin, pfeldman
CC:
chromium-reviews, tyoshino+watch_chromium.org, Yoav Weiss, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, caseq+blink_chromium.org, apavlov+blink_chromium.org, gavinp+loader_chromium.org, devtools-reviews_chromium.org, blink-reviews, loading-reviews+fetch_chromium.org, kozyatinskiy+blink_chromium.org, allada
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

DevTools Disable cache should properly handle LoadOnlyFromCache resources Currently, checking the "disable cache" button on the networking page in dev tools causes all requests to run with a bypass cache directive. Even those resources meant to be fetched exclusively from the cache. This means resources meant to be served only from the cache wind up being served from the network. This CL causes such requests to fail early, as would happen if the object were not in cache. BUG=634189 Committed: https://crrev.com/938a1f2e20387f1008f4d34536b705da109792ac Cr-Commit-Position: refs/heads/master@{#425706}

Patch Set 1 #

Patch Set 2 : async #

Patch Set 3 : Nits #

Total comments: 2

Patch Set 4 : Use shouldBlockRequest instead #

Total comments: 4

Patch Set 5 : Address comments from PS4 #

Patch Set 6 : Rebase #

Total comments: 1

Patch Set 7 : Rebase after revert of dependent patchset #

Patch Set 8 : Rebase #

Patch Set 9 : Fix test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -6 lines) Patch
M third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp View 1 2 3 4 5 6 7 8 3 chunks +8 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp View 1 2 3 4 5 6 7 2 chunks +9 lines, -0 lines 0 comments Download

Messages

Total messages: 72 (44 generated)
jkarlin
japhet@ PTAL. I'm new to this area of code so I'd appreciate a close look. ...
4 years, 4 months ago (2016-08-23 14:26:01 UTC) #8
dgozman
+allada FYI
4 years, 4 months ago (2016-08-23 15:19:43 UTC) #9
Nate Chapin
https://codereview.chromium.org/2266913002/diff/40001/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp File third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp (right): https://codereview.chromium.org/2266913002/diff/40001/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp#newcode554 third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp:554: if (request.getCachePolicy() == WebCachePolicy::ReturnCacheDataDontLoad) { This means we won't ...
4 years, 4 months ago (2016-08-23 16:05:14 UTC) #10
jkarlin
https://codereview.chromium.org/2266913002/diff/40001/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp File third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp (right): https://codereview.chromium.org/2266913002/diff/40001/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp#newcode554 third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp:554: if (request.getCachePolicy() == WebCachePolicy::ReturnCacheDataDontLoad) { On 2016/08/23 16:05:14, Nate ...
4 years, 4 months ago (2016-08-23 16:29:23 UTC) #11
Nate Chapin
On 2016/08/23 16:29:23, jkarlin wrote: > https://codereview.chromium.org/2266913002/diff/40001/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp > File third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp (right): > > https://codereview.chromium.org/2266913002/diff/40001/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp#newcode554 > ...
4 years, 4 months ago (2016-08-23 16:45:54 UTC) #12
jkarlin
On 2016/08/23 16:45:54, Nate Chapin wrote: > On 2016/08/23 16:29:23, jkarlin wrote: > > > ...
4 years, 4 months ago (2016-08-23 16:50:25 UTC) #13
Nate Chapin
On 2016/08/23 16:50:25, jkarlin wrote: > On 2016/08/23 16:45:54, Nate Chapin wrote: > > On ...
4 years, 4 months ago (2016-08-23 17:08:38 UTC) #14
jkarlin
On 2016/08/23 17:08:38, Nate Chapin wrote: > On 2016/08/23 16:50:25, jkarlin wrote: > > On ...
4 years, 4 months ago (2016-08-23 17:12:33 UTC) #15
Nate Chapin
On 2016/08/23 17:12:33, jkarlin wrote: > On 2016/08/23 17:08:38, Nate Chapin wrote: > > On ...
4 years, 4 months ago (2016-08-23 17:35:33 UTC) #16
jkarlin
On 2016/08/23 17:35:33, Nate Chapin wrote: > On 2016/08/23 17:12:33, jkarlin wrote: > > On ...
4 years, 4 months ago (2016-08-23 17:37:38 UTC) #17
jkarlin
On 2016/08/23 17:37:38, jkarlin wrote: > On 2016/08/23 17:35:33, Nate Chapin wrote: > > On ...
4 years, 4 months ago (2016-08-23 17:52:48 UTC) #18
Nate Chapin
https://codereview.chromium.org/2266913002/diff/60001/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp File third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp (left): https://codereview.chromium.org/2266913002/diff/60001/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp#oldcode442 third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp:442: if (!request.url().isValid()) Should this check move above canRequest() too? ...
4 years, 4 months ago (2016-08-23 17:56:48 UTC) #21
jkarlin
PTAL, thanks! https://codereview.chromium.org/2266913002/diff/60001/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp File third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp (left): https://codereview.chromium.org/2266913002/diff/60001/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp#oldcode442 third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp:442: if (!request.url().isValid()) On 2016/08/23 17:56:48, Nate Chapin ...
4 years, 4 months ago (2016-08-23 18:14:28 UTC) #24
Nate Chapin
lgtm
4 years, 4 months ago (2016-08-23 18:16:07 UTC) #25
jkarlin
On 2016/08/23 18:16:07, Nate Chapin wrote: > lgtm Thanks very much!
4 years, 4 months ago (2016-08-23 18:19:37 UTC) #26
jkarlin
It looks as if the dependent patchset has landed. Unfortunately, it no longer modifies the ...
4 years, 2 months ago (2016-10-06 12:46:56 UTC) #38
Bryan McQuade
On 2016/10/06 at 12:46:56, jkarlin wrote: > It looks as if the dependent patchset has ...
4 years, 2 months ago (2016-10-06 19:45:38 UTC) #39
pfeldman
https://codereview.chromium.org/2266913002/diff/100001/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp File third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp (right): https://codereview.chromium.org/2266913002/diff/100001/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp#newcode514 third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp:514: if (m_state->booleanProperty(NetworkAgentState::cacheDisabled, false) && This lists request as "blocked ...
4 years, 2 months ago (2016-10-06 20:00:07 UTC) #41
jkarlin
Nate: Could you take a look at PatchSet #3 of this CL again? That was ...
4 years, 2 months ago (2016-10-07 12:41:01 UTC) #48
jkarlin
On 2016/10/07 12:41:01, jkarlin wrote: > Nate: Could you take a look at PatchSet #3 ...
4 years, 2 months ago (2016-10-12 17:39:17 UTC) #51
Nate Chapin
On 2016/10/12 at 17:39:17, jkarlin wrote: > On 2016/10/07 12:41:01, jkarlin wrote: > > Nate: ...
4 years, 2 months ago (2016-10-12 22:10:36 UTC) #52
jkarlin
On 2016/10/12 22:10:36, Nate Chapin wrote: > On 2016/10/12 at 17:39:17, jkarlin wrote: > > ...
4 years, 2 months ago (2016-10-14 14:55:37 UTC) #55
Nate Chapin
On 2016/10/14 at 14:55:37, jkarlin wrote: > On 2016/10/12 22:10:36, Nate Chapin wrote: > > ...
4 years, 2 months ago (2016-10-14 23:00:51 UTC) #58
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/2266913002/160001
4 years, 2 months ago (2016-10-17 17:05:05 UTC) #66
jkarlin
Nate, can you look at one last minor change? Thanks!
4 years, 2 months ago (2016-10-17 17:05:28 UTC) #67
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 2 months ago (2016-10-17 17:10:32 UTC) #69
commit-bot: I haz the power
Patchset 9 (id:??) landed as https://crrev.com/938a1f2e20387f1008f4d34536b705da109792ac Cr-Commit-Position: refs/heads/master@{#425706}
4 years, 2 months ago (2016-10-17 17:14:51 UTC) #71
Nate Chapin
4 years, 2 months ago (2016-10-17 17:18:44 UTC) #72
Message was sent while issue was closed.
On 2016/10/17 17:14:51, commit-bot: I haz the power wrote:
> Patchset 9 (id:??) landed as
> https://crrev.com/938a1f2e20387f1008f4d34536b705da109792ac
> Cr-Commit-Position: refs/heads/master@{#425706}

lgtm

Powered by Google App Engine
This is Rietveld 408576698