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

Issue 2333513002: Fix SSL redirects with PlzNavigate. (Closed)

Created:
4 years, 3 months ago by jam
Modified:
4 years, 3 months ago
Reviewers:
clamy
CC:
chromium-reviews, loading-reviews_chromium.org, jam, darin-cc_chromium.org, Randy Smith (Not in Mondays), mmenke
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix SSL redirects with PlzNavigate. When a redirect between HTTPS URLs occurs, the default policy will check that the referrer is only set if it's allowed (i.e. both URLs are secure). However for the PlzNavigate stream request occurs, the destination will be a blob:https scheme and net/ will treat it as insecure and remove the referrer (see URLRequestJob::ComputeReferrerForRedirect). Then URLRequest::StartJob will find a referrer mismatch and cancel the request. The fix is to not tell the net layer about the referrer for the PlzNavigate stream requests; it's not needed by the stream request job in content/, and it's already been checked/used for the http request earlier. This fixes: SSLUITest.ClientRedirectFromMixedContentSSLState SSLUITest.ClientRedirectToMixedContentSSLState SSLUITest.TestBadFrameNavigation SSLUITest.TestUnsafeContents BUG=504347 Committed: https://crrev.com/5e546b65e53db9fa79ad9b10fba50a902e9f5e1b Cr-Commit-Position: refs/heads/master@{#417945}

Patch Set 1 #

Patch Set 2 : slightly different fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -3 lines) Patch
M content/browser/loader/resource_dispatcher_host_impl.cc View 1 1 chunk +11 lines, -3 lines 0 comments Download

Messages

Total messages: 17 (13 generated)
jam
This seems to be a side effect of r374891 There are various ways to fix ...
4 years, 3 months ago (2016-09-12 05:01:56 UTC) #9
clamy
I think it makes more sense not to set the referrer at all (patchset 2) ...
4 years, 3 months ago (2016-09-12 14:15:14 UTC) #12
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/2333513002/20001
4 years, 3 months ago (2016-09-12 14:55:28 UTC) #14
commit-bot: I haz the power
4 years, 3 months ago (2016-09-12 15:34:00 UTC) #17
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/5e546b65e53db9fa79ad9b10fba50a902e9f5e1b
Cr-Commit-Position: refs/heads/master@{#417945}

Powered by Google App Engine
This is Rietveld 408576698