|
|
Chromium Code Reviews|
Created:
3 years, 9 months ago by Takashi Toyoshima Modified:
3 years, 8 months ago CC:
chromium-reviews, blink-reviews, Yoav Weiss, clamy, Charlie Reis Target Ref:
refs/heads/master Project:
chromium Visibility:
Public. |
DescriptionFrameFetchContext should handle all FrameLoadTypes
Now, determineWebCachePolicy() does not care for FrameLoadTypes
that are used in edge cases.
This patch adopts the corresponding logic for such types.
BUG=704431
Review-Url: https://codereview.chromium.org/2775533003
Cr-Commit-Position: refs/heads/master@{#463579}
Committed: https://chromium.googlesource.com/chromium/src/+/f2d2a76a59caaf3065c36a959ce0fa7b7ad42280
Patch Set 1 #Patch Set 2 : update WebFrameLoadType comment #
Total comments: 12
Patch Set 3 : review #21 #Patch Set 4 : [rebase beyond the great renaming] #Patch Set 5 : adopt great renaming in comments #
Messages
Total messages: 29 (15 generated)
Description was changed from ========== FrameFetchContext should handle FrameLoadTypes for site isolation correctly Now, determineWebCachePolicy() does not care for FrameLoadTypes that are used when browser side navigation is enabled. This patch adopts the corresponding logic for such types. BUG=704431 ========== to ========== FrameFetchContext should handle FrameLoadTypes for site isolation correctly Now, determineWebCachePolicy() does not care for FrameLoadTypes that are used when browser side navigation is enabled. This patch adopts the corresponding logic for such types. BUG=704431 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation ==========
Description was changed from ========== FrameFetchContext should handle FrameLoadTypes for site isolation correctly Now, determineWebCachePolicy() does not care for FrameLoadTypes that are used when browser side navigation is enabled. This patch adopts the corresponding logic for such types. BUG=704431 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation ========== to ========== FrameFetchContext should handle FrameLoadTypes for site isolation Now, determineWebCachePolicy() does not care for FrameLoadTypes that are used when browser side navigation is enabled. This patch adopts the corresponding logic for such types. BUG=704431 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation ==========
toyoshim@chromium.org changed reviewers: + japhet@chromium.org, kinuko@chromium.org, yhirano@chromium.org
The CQ bit was checked by toyoshim@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...
cc: clamy this change is not related to the topic I talked in the last paris-tokyo sync, but just in case.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: chromeos_daisy_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_daisy_...)
Is there any tests?
toyoshim@chromium.org changed reviewers: + creis@chromium.org
Let me add creis@ because I'm actually not sure what should be tested for these extra frame types here.
Sorry, I'm a bit confused here. The change itself looks like it's resolving some TODOs from the reload project, but the CL description talks about site isolation and browser-side navigation/PlzNavigate. (Note that those are two different things and PlzNavigate isn't on by default, so I'm not sure what you're referring to.) Can you clarify the CL description? For the change itself (and questions about tests), Nate's probably a better reviewer than me, since I'm not that familiar with this area of Blink. (I can kind of see how the first part might be ok, but I don't understand the FrameLoadTypeInitialHistoryLoad part.)
Sorry for lack of explaining background for this change. These TODOs were just added by https://codereview.chromium.org/1867493003 since I just noticed it while working on the change, and these types are originally not taken care at all here. Anyway, I will wait for Nate's comments.
On 2017/03/24 04:15:36, Takashi Toyoshima wrote: > Sorry for lack of explaining background for this change. > These TODOs were just added by https://codereview.chromium.org/1867493003 since > I just noticed it while working on the change, and these types are originally > not taken care at all here. > > Anyway, I will wait for Nate's comments. Ok, thanks. If the CL isn't related to site isolation or PlzNavigate (i.e., browser-side navigation), then let's remove those references from the CL description.
lgtm
Description was changed from ========== FrameFetchContext should handle FrameLoadTypes for site isolation Now, determineWebCachePolicy() does not care for FrameLoadTypes that are used when browser side navigation is enabled. This patch adopts the corresponding logic for such types. BUG=704431 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation ========== to ========== FrameFetchContext should handle all FrameLoadTypes Now, determineWebCachePolicy() does not care for FrameLoadTypes that are used in edge cases. This patch adopts the corresponding logic for such types. BUG=704431 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation ==========
Description was changed from ========== FrameFetchContext should handle all FrameLoadTypes Now, determineWebCachePolicy() does not care for FrameLoadTypes that are used in edge cases. This patch adopts the corresponding logic for such types. BUG=704431 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation ========== to ========== FrameFetchContext should handle all FrameLoadTypes Now, determineWebCachePolicy() does not care for FrameLoadTypes that are used in edge cases. This patch adopts the corresponding logic for such types. BUG=704431 ==========
I updated comments for WebFrameLoadType.h in Patch Set 2. If you are familiar to WebFrameLoadType in terms of navigation, please review my comments. Nate, and core/loader reviewers: I would add some unit tests to the Patch Set 3. I'm still checking real use cases of these types so that my tests can be to the point. So I will ask another review for core/loader when I'm ready.
creis@chromium.org changed reviewers: + clamy@chromium.org - creis@chromium.org
Sounds like clamy@ is a better reviewer for the comments than me, so I'll move myself to CC.
Thanks! lgtm % nits. https://codereview.chromium.org/2775533003/diff/20001/third_party/WebKit/publ... File third_party/WebKit/public/web/WebFrameLoadType.h (right): https://codereview.chromium.org/2775533003/diff/20001/third_party/WebKit/publ... third_party/WebKit/public/web/WebFrameLoadType.h:11: // TODO(clamy, toyoshim): Now WebFrameLoadType represents multiple concepts nit: s/Now/Currently https://codereview.chromium.org/2775533003/diff/20001/third_party/WebKit/publ... third_party/WebKit/public/web/WebFrameLoadType.h:39: // WebHistoryCommitType, but in terms of cache policy, it should work in the nit: s/WebHistoryCommitType/the WebHistoryCommitType https://codereview.chromium.org/2775533003/diff/20001/third_party/WebKit/publ... third_party/WebKit/public/web/WebFrameLoadType.h:40: // same manner with Standard and BackFoward respectively. nit: s/with/as https://codereview.chromium.org/2775533003/diff/20001/third_party/WebKit/publ... third_party/WebKit/public/web/WebFrameLoadType.h:41: // ReplaceCurrentItem is used to determine if current navigation should replace nit: s/if/if the https://codereview.chromium.org/2775533003/diff/20001/third_party/WebKit/publ... third_party/WebKit/public/web/WebFrameLoadType.h:42: // current history item, but in terms of cache policy, it should work in the nit: s/current/the current https://codereview.chromium.org/2775533003/diff/20001/third_party/WebKit/publ... third_party/WebKit/public/web/WebFrameLoadType.h:43: // same manner with Standard. nit: s/with/as
Thanks for adding the comment, that's helpful. (lgtm/2, fwiw)
https://codereview.chromium.org/2775533003/diff/20001/third_party/WebKit/publ... File third_party/WebKit/public/web/WebFrameLoadType.h (right): https://codereview.chromium.org/2775533003/diff/20001/third_party/WebKit/publ... third_party/WebKit/public/web/WebFrameLoadType.h:11: // TODO(clamy, toyoshim): Now WebFrameLoadType represents multiple concepts On 2017/04/06 16:13:33, clamy (slow) wrote: > nit: s/Now/Currently Done. https://codereview.chromium.org/2775533003/diff/20001/third_party/WebKit/publ... third_party/WebKit/public/web/WebFrameLoadType.h:39: // WebHistoryCommitType, but in terms of cache policy, it should work in the On 2017/04/06 16:13:33, clamy (slow) wrote: > nit: s/WebHistoryCommitType/the WebHistoryCommitType Done. https://codereview.chromium.org/2775533003/diff/20001/third_party/WebKit/publ... third_party/WebKit/public/web/WebFrameLoadType.h:40: // same manner with Standard and BackFoward respectively. On 2017/04/06 16:13:33, clamy (slow) wrote: > nit: s/with/as Done. https://codereview.chromium.org/2775533003/diff/20001/third_party/WebKit/publ... third_party/WebKit/public/web/WebFrameLoadType.h:41: // ReplaceCurrentItem is used to determine if current navigation should replace On 2017/04/06 16:13:33, clamy (slow) wrote: > nit: s/if/if the Done. https://codereview.chromium.org/2775533003/diff/20001/third_party/WebKit/publ... third_party/WebKit/public/web/WebFrameLoadType.h:42: // current history item, but in terms of cache policy, it should work in the On 2017/04/06 16:13:33, clamy (slow) wrote: > nit: s/current/the current Done. https://codereview.chromium.org/2775533003/diff/20001/third_party/WebKit/publ... third_party/WebKit/public/web/WebFrameLoadType.h:43: // same manner with Standard. On 2017/04/06 16:13:33, clamy (slow) wrote: > nit: s/with/as Done.
The CQ bit was checked by toyoshim@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from japhet@chromium.org, kinuko@chromium.org, clamy@chromium.org Link to the patchset: https://codereview.chromium.org/2775533003/#ps80001 (title: "adopt great renaming in comments")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch.
Bot data: {"patchset_id": 80001, "attempt_start_ts": 1491895805012990,
"parent_rev": "d8c46c166645ad80352881e692745cd2c30aa24f", "commit_rev":
"f2d2a76a59caaf3065c36a959ce0fa7b7ad42280"}
Message was sent while issue was closed.
Description was changed from ========== FrameFetchContext should handle all FrameLoadTypes Now, determineWebCachePolicy() does not care for FrameLoadTypes that are used in edge cases. This patch adopts the corresponding logic for such types. BUG=704431 ========== to ========== FrameFetchContext should handle all FrameLoadTypes Now, determineWebCachePolicy() does not care for FrameLoadTypes that are used in edge cases. This patch adopts the corresponding logic for such types. BUG=704431 Review-Url: https://codereview.chromium.org/2775533003 Cr-Commit-Position: refs/heads/master@{#463579} Committed: https://chromium.googlesource.com/chromium/src/+/f2d2a76a59caaf3065c36a959ce0... ==========
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as https://chromium.googlesource.com/chromium/src/+/f2d2a76a59caaf3065c36a959ce0... |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
