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

Issue 2479713003: [Devtools] Fixed bug with devtools blocking requests incorrectly (Closed)

Created:
4 years, 1 month ago by allada
Modified:
4 years, 1 month ago
Reviewers:
shaochuan, jkarlin, dgozman
CC:
apavlov+blink_chromium.org, blink-reviews, caseq+blink_chromium.org, chromium-reviews, devtools-reviews_chromium.org, kozyatinskiy+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, shaochuan, paulirish
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Devtools] Fixed bug with devtools blocking requests incorrectly Fixes a regression where devtools was announcing the block of requests when it should have not been chaning the cache policy instead. R=dgozman CC=jkarlin,shaochuan BUG=660438

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -7 lines) Patch
M third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp View 2 chunks +3 lines, -7 lines 2 comments Download

Messages

Total messages: 13 (6 generated)
allada
PTL, This is really hard to write a test for since it requires devtools to ...
4 years, 1 month ago (2016-11-04 00:22:48 UTC) #3
allada
4 years, 1 month ago (2016-11-04 01:39:48 UTC) #5
jkarlin
https://codereview.chromium.org/2479713003/diff/1/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp File third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp (right): https://codereview.chromium.org/2479713003/diff/1/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp#newcode631 third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp:631: request.getCachePolicy() != WebCachePolicy::ReturnCacheDataDontLoad && If the cache is disabled ...
4 years, 1 month ago (2016-11-04 12:27:25 UTC) #8
dgozman
https://codereview.chromium.org/2479713003/diff/1/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp File third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp (right): https://codereview.chromium.org/2479713003/diff/1/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp#newcode631 third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp:631: request.getCachePolicy() != WebCachePolicy::ReturnCacheDataDontLoad && On 2016/11/04 12:27:25, jkarlin wrote: ...
4 years, 1 month ago (2016-11-04 18:31:43 UTC) #9
paulirish
Just spitballing here, but.. How about a separate InspectorNetworkAgent::shouldCachePolicyBlockRequest method where we can do these ...
4 years, 1 month ago (2016-11-07 06:43:24 UTC) #10
dgozman
On 2016/11/07 06:43:24, paulirish wrote: > Just spitballing here, but.. > > How about a ...
4 years, 1 month ago (2016-11-07 06:52:33 UTC) #11
jkarlin
4 years, 1 month ago (2016-11-07 12:41:31 UTC) #12
On 2016/11/07 06:52:33, dgozman wrote:
> On 2016/11/07 06:43:24, paulirish wrote:
> > Just spitballing here, but.. 
> > 
> > How about a separate InspectorNetworkAgent::shouldCachePolicyBlockRequest
> method
> > where we can do these policy checks and check on cacheDisabled. Then use
that
> > over in
> >
>
https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/loader/Fr...
> > and return a something like ResourceRequestBlockedReasonCacheDisabled.
> 
> Yeah, something along these lines.

sgtm

Powered by Google App Engine
This is Rietveld 408576698