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

Issue 2022963003: [predictor] Apply HSTS redirects when learning referrers. (Closed)

Created:
4 years, 6 months ago by Charlie Harrison
Modified:
4 years, 6 months ago
Reviewers:
mmenke
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[predictor] Apply HSTS redirects when learning referrers. The net predictor skips HSTS redirects when issuing preconnects, but doesn't do so when learning them. This patch changes behavior such that if http://a.com shows up as a referrer for b.com, we properly learn https://a.com => b.com if we know that http://a.com redirects to https://a.com. BUG=616219 Committed: https://crrev.com/1ffc3b20c2f695960e97696e750397e0bae4f1ea Cr-Commit-Position: refs/heads/master@{#397254}

Patch Set 1 #

Patch Set 2 : Add a unit test #

Patch Set 3 : Actually do it #

Total comments: 2

Patch Set 4 : add comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -2 lines) Patch
M chrome/browser/net/predictor.cc View 1 2 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/browser/net/predictor_unittest.cc View 1 2 3 1 chunk +27 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (8 generated)
Charlie Harrison
Hey Matt, can you take a look at this one?
4 years, 6 months ago (2016-05-31 20:44:51 UTC) #4
Charlie Harrison
Hold on, bots don't look happy. I'll fix those first.
4 years, 6 months ago (2016-05-31 21:17:27 UTC) #5
Charlie Harrison
Hold on, bots don't look happy. I'll fix those first.
4 years, 6 months ago (2016-05-31 21:17:32 UTC) #6
mmenke
LGTM https://codereview.chromium.org/2022963003/diff/40001/chrome/browser/net/predictor_unittest.cc File chrome/browser/net/predictor_unittest.cc (right): https://codereview.chromium.org/2022963003/diff/40001/chrome/browser/net/predictor_unittest.cc#newcode569 chrome/browser/net/predictor_unittest.cc:569: predictor.LearnFromNavigation(kHttpUrl, kSubresourceUrl); We'd also call predictor.LearnFromNavigation(kHttpUrl, kHttpsUrl); before ...
4 years, 6 months ago (2016-06-01 18:19:44 UTC) #8
Charlie Harrison
Thanks https://codereview.chromium.org/2022963003/diff/40001/chrome/browser/net/predictor_unittest.cc File chrome/browser/net/predictor_unittest.cc (right): https://codereview.chromium.org/2022963003/diff/40001/chrome/browser/net/predictor_unittest.cc#newcode569 chrome/browser/net/predictor_unittest.cc:569: predictor.LearnFromNavigation(kHttpUrl, kSubresourceUrl); On 2016/06/01 18:19:44, mmenke wrote: > ...
4 years, 6 months ago (2016-06-01 19:50:35 UTC) #9
mmenke
On 2016/06/01 19:50:35, csharrison wrote: > Thanks > > https://codereview.chromium.org/2022963003/diff/40001/chrome/browser/net/predictor_unittest.cc > File chrome/browser/net/predictor_unittest.cc (right): > ...
4 years, 6 months ago (2016-06-01 19:51:33 UTC) #10
Charlie Harrison
Thanks!
4 years, 6 months ago (2016-06-01 20:01:21 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2022963003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2022963003/60001
4 years, 6 months ago (2016-06-01 20:03:04 UTC) #14
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 6 months ago (2016-06-01 21:35:38 UTC) #16
commit-bot: I haz the power
4 years, 6 months ago (2016-06-01 21:37:17 UTC) #18
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/1ffc3b20c2f695960e97696e750397e0bae4f1ea
Cr-Commit-Position: refs/heads/master@{#397254}

Powered by Google App Engine
This is Rietveld 408576698