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

Issue 2508473002: [DevTools] Properly handle cache-only requests when cache is disabled (Closed)

Created:
4 years, 1 month ago by jkarlin
Modified:
4 years, 1 month ago
CC:
apavlov+blink_chromium.org, blink-reviews, blink-reviews-api_chromium.org, caseq+blink_chromium.org, cbentzel+watch_chromium.org, chromium-reviews, darin-cc_chromium.org, devtools-reviews_chromium.org, dglazkov+blink, gavinp+disk_chromium.org, jam, kinuko+cache_chromium.org, kozyatinskiy+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[DevTools] Properly handle cache-only requests when cache is disabled If a request is cache-only (e.g., back navigation to a POST) but "disable cache" is checked in dev-tools, then set the cache policy to both load only from cache and bypass the cache. This will result in the proper ERR_CACHE_MISS from the network stack. BUG=663728 Committed: https://crrev.com/c1331a41ffd5d4dce093398c03619eb8cc06f323 Cr-Commit-Position: refs/heads/master@{#432946}

Patch Set 1 #

Patch Set 2 : Nit #

Total comments: 2

Patch Set 3 : Fix #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -13 lines) Patch
M content/child/web_url_request_util.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M net/http/http_cache_transaction.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M net/http/http_cache_unittest.cc View 1 chunk +16 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp View 1 2 3 chunks +22 lines, -13 lines 2 comments Download
M third_party/WebKit/public/platform/WebCachePolicy.h View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (17 generated)
jkarlin
dgozman@chromium.org: Please review changes in inspector/ gavinp@chromium.org: Please review changes in net/ jochen@chromium.org: Please review ...
4 years, 1 month ago (2016-11-15 18:17:19 UTC) #4
jkarlin
4 years, 1 month ago (2016-11-15 18:22:10 UTC) #9
dgozman
https://codereview.chromium.org/2508473002/diff/20001/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp File third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp (right): https://codereview.chromium.org/2508473002/diff/20001/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp#newcode631 third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp:631: if ((request.getCachePolicy() == WebCachePolicy::ReturnCacheDataDontLoad || What about ReturnCacheDataIfValid?
4 years, 1 month ago (2016-11-15 18:29:13 UTC) #10
jkarlin
PTAL https://codereview.chromium.org/2508473002/diff/20001/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp File third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp (right): https://codereview.chromium.org/2508473002/diff/20001/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp#newcode631 third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp:631: if ((request.getCachePolicy() == WebCachePolicy::ReturnCacheDataDontLoad || On 2016/11/15 18:29:13, ...
4 years, 1 month ago (2016-11-15 18:39:15 UTC) #13
dgozman
inspector lgtm, but I'm not an expert to judge the new WebCachePolicy flag. https://codereview.chromium.org/2508473002/diff/40001/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp File ...
4 years, 1 month ago (2016-11-15 19:54:03 UTC) #14
jkarlin
Thanks! gavinp@ jochen@ PTAL https://codereview.chromium.org/2508473002/diff/40001/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp File third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp (right): https://codereview.chromium.org/2508473002/diff/40001/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp#newcode119 third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp:119: bool LoadsFromCacheOnly(const ResourceRequest& request) { ...
4 years, 1 month ago (2016-11-15 21:27:21 UTC) #17
jochen (gone - plz use gerrit)
lgtm
4 years, 1 month ago (2016-11-17 01:59:33 UTC) #18
jkarlin
Julia: PTAL at net/, thanks!
4 years, 1 month ago (2016-11-17 15:54:50 UTC) #20
Julia Tuttle
net/ lgtm.
4 years, 1 month ago (2016-11-17 16:15:13 UTC) #21
jkarlin
Thanks!
4 years, 1 month ago (2016-11-17 16:15:39 UTC) #22
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/2508473002/40001
4 years, 1 month ago (2016-11-17 16:17:25 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/339661)
4 years, 1 month ago (2016-11-17 17:42:32 UTC) #26
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/2508473002/40001
4 years, 1 month ago (2016-11-17 18:33:01 UTC) #28
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 1 month ago (2016-11-17 20:19:36 UTC) #30
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 20:29:29 UTC) #32
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/c1331a41ffd5d4dce093398c03619eb8cc06f323
Cr-Commit-Position: refs/heads/master@{#432946}

Powered by Google App Engine
This is Rietveld 408576698