|
|
Chromium Code Reviews|
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
Messages
Total messages: 32 (17 generated)
The CQ bit was checked by jkarlin@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
jkarlin@chromium.org changed reviewers: + dgozman@chromium.org, gavinp@chromium.org, jochen@chromium.org
dgozman@chromium.org: Please review changes in inspector/ gavinp@chromium.org: Please review changes in net/ jochen@chromium.org: Please review changes in content/child and WebKit/public/platform Thanks!
Description was changed from ========== [DevTools] Properly handle cache-only requests when cache is disabled If a request is cache-only (e.g., back navigation to a POST), 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 ========== to ========== [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 ==========
Description was changed from ========== [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 ========== to ========== [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 ==========
jkarlin@chromium.org changed reviewers: - jochen@chromium.org
jkarlin@chromium.org changed reviewers: + jochen@chromium.org
https://codereview.chromium.org/2508473002/diff/20001/third_party/WebKit/Sour... File third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp (right): https://codereview.chromium.org/2508473002/diff/20001/third_party/WebKit/Sour... third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp:631: if ((request.getCachePolicy() == WebCachePolicy::ReturnCacheDataDontLoad || What about ReturnCacheDataIfValid?
The CQ bit was checked by jkarlin@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
PTAL https://codereview.chromium.org/2508473002/diff/20001/third_party/WebKit/Sour... File third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp (right): https://codereview.chromium.org/2508473002/diff/20001/third_party/WebKit/Sour... third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp:631: if ((request.getCachePolicy() == WebCachePolicy::ReturnCacheDataDontLoad || On 2016/11/15 18:29:13, dgozman wrote: > What about ReturnCacheDataIfValid? Thanks! Added a function with a switch to make sure that doesn't happen again.
inspector lgtm, but I'm not an expert to judge the new WebCachePolicy flag. https://codereview.chromium.org/2508473002/diff/40001/third_party/WebKit/Sour... File third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp (right): https://codereview.chromium.org/2508473002/diff/40001/third_party/WebKit/Sour... third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp:119: bool LoadsFromCacheOnly(const ResourceRequest& request) { Either static or anonymous namespace please.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Thanks! gavinp@ jochen@ PTAL https://codereview.chromium.org/2508473002/diff/40001/third_party/WebKit/Sour... File third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp (right): https://codereview.chromium.org/2508473002/diff/40001/third_party/WebKit/Sour... third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp:119: bool LoadsFromCacheOnly(const ResourceRequest& request) { On 2016/11/15 19:54:02, dgozman wrote: > Either static or anonymous namespace please. It's in the anonymous namespace already.
lgtm
jkarlin@chromium.org changed reviewers: + juliatuttle@chromium.org
Julia: PTAL at net/, thanks!
net/ lgtm.
Thanks!
The CQ bit was checked by jkarlin@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
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_...)
The CQ bit was checked by jkarlin@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== [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 ========== to ========== [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 ==========
Message was sent while issue was closed.
Committed patchset #3 (id:40001)
Message was sent while issue was closed.
Description was changed from ========== [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 ========== to ========== [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} ==========
Message was sent while issue was closed.
Patchset 3 (id:??) landed as https://crrev.com/c1331a41ffd5d4dce093398c03619eb8cc06f323 Cr-Commit-Position: refs/heads/master@{#432946} |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
