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

Issue 2767413002: FrameFetchContext should respect BypassingCache for main resources (Closed)

Created:
3 years, 9 months ago by Takashi Toyoshima
Modified:
3 years, 8 months ago
Reviewers:
kinuko, Nate Chapin, yhirano
CC:
chromium-reviews, blink-reviews, Yoav Weiss
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

FrameFetchContext should respect BypassingCache for main resources Existing code respects a parent frame's policy rather than FrameLoadTypeReloadBypassingCache for main resources. This isn't consistent to other sub-resources, and it can respect BypassingCache rather than checking the parent policy because the parent always return BypassingCache in such cases. The parent frame can have a different policy if we have an UI to trigger a per-frame bypassing reload. But we do not and won't today. Even we have a per-frame bypassing reload, this change should be still reasonable. BUG=704431 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Review-Url: https://codereview.chromium.org/2767413002 Cr-Commit-Position: refs/heads/master@{#460662} Committed: https://chromium.googlesource.com/chromium/src/+/4faad2d582a5ee0ed6381d0139bc5333407769d3

Patch Set 1 #

Patch Set 2 : test #

Patch Set 3 : merge master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -4 lines) Patch
M third_party/WebKit/Source/core/loader/FrameFetchContext.cpp View 1 2 1 chunk +1 line, -4 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameFetchContextTest.cpp View 1 2 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (10 generated)
kinuko
While the change looks good none of our tests catch any of these changes make ...
3 years, 9 months ago (2017-03-23 07:26:16 UTC) #7
Takashi Toyoshima
I guess the reason we do not have any test for such cases are this ...
3 years, 9 months ago (2017-03-23 08:06:41 UTC) #8
Takashi Toyoshima
I updated the description. Even so, sounds like the new behavior is preferable. So, I ...
3 years, 9 months ago (2017-03-23 08:13:21 UTC) #10
kinuko
On 2017/03/23 08:06:41, Takashi Toyoshima wrote: > I guess the reason we do not have ...
3 years, 9 months ago (2017-03-23 08:13:23 UTC) #11
Takashi Toyoshima
PTAL. I added a simple test in Patch Set 3
3 years, 8 months ago (2017-03-29 09:31:22 UTC) #12
yhirano
lgtm
3 years, 8 months ago (2017-03-29 09:39:23 UTC) #13
Nate Chapin
lgtm
3 years, 8 months ago (2017-03-29 18:49:47 UTC) #14
kinuko
lgtm (still), thanks for adding tests!
3 years, 8 months ago (2017-03-30 01:44:41 UTC) #15
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/2767413002/40001
3 years, 8 months ago (2017-03-30 02:44:56 UTC) #17
commit-bot: I haz the power
3 years, 8 months ago (2017-03-30 04:20:29 UTC) #20
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/4faad2d582a5ee0ed6381d0139bc...

Powered by Google App Engine
This is Rietveld 408576698