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

Issue 978323002: Upgrade insecure requests: Pipe navigational hosts down into nested documents. (Closed)

Created:
5 years, 9 months ago by Mike West
Modified:
5 years, 9 months ago
Reviewers:
Yoav Weiss
CC:
blink-reviews, blink-reviews-dom_chromium.org, dglazkov+blink, eae+blinkwatch, gavinp+loader_chromium.org, Nate Chapin, mkwst+watchlist-csp_chromium.org, rwlbuis, sof, tyoshino+watch_chromium.org
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Upgrade insecure requests: Pipe navigational hosts down into nested documents. After [1], we need to track hosts (including ancestor hosts) that have set the 'upgrade-insecure-requests' directive in their respective policies in order to correctly upgrade navigational requests to one of those hosts. This patch adds a 'HashSet<unsigned>' to SecurityContext that holds the hashes of the hosts which have opted-into such treatment, ensures that the set is correctly populated when creating a Document or applying a policy, and uses the set to make decisions about navigational upgrades inside ResourceFetcher. [1]: ttps://github.com/w3c/webappsec/commit/f947b75e9b906c53d0bd6e66ca59b60bfe0aa20e BUG=455674 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=191421

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -11 lines) Patch
M Source/core/dom/Document.cpp View 1 chunk +4 lines, -0 lines 0 comments Download
M Source/core/dom/DocumentInit.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/dom/DocumentInit.cpp View 1 chunk +6 lines, -0 lines 0 comments Download
M Source/core/dom/SecurityContext.h View 4 chunks +9 lines, -0 lines 0 comments Download
M Source/core/fetch/ResourceFetcher.cpp View 1 chunk +7 lines, -6 lines 0 comments Download
M Source/core/fetch/ResourceFetcherTest.cpp View 2 chunks +3 lines, -4 lines 0 comments Download
M Source/core/frame/csp/ContentSecurityPolicy.cpp View 1 chunk +3 lines, -1 line 0 comments Download
M Source/core/frame/csp/ContentSecurityPolicyTest.cpp View 4 chunks +4 lines, -0 lines 0 comments Download
M Source/core/loader/FrameLoader.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/loader/FrameLoader.cpp View 1 chunk +14 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (2 generated)
Mike West
Depends on https://codereview.chromium.org/983533005/ and https://codereview.chromium.org/980213002. Hi Yoav! Boy, I bet you're interested in reviewing more ...
5 years, 9 months ago (2015-03-05 13:25:08 UTC) #2
Yoav Weiss
On 2015/03/05 13:25:08, Mike West wrote: > Depends on https://codereview.chromium.org/983533005/ and > https://codereview.chromium.org/980213002. > > ...
5 years, 9 months ago (2015-03-05 14:58:10 UTC) #3
Mike West
On 2015/03/05 at 14:58:10, yoav wrote: > In-the-air review! Wow! Technology. :) > Before I ...
5 years, 9 months ago (2015-03-05 15:11:38 UTC) #4
Yoav Weiss
On 2015/03/05 15:11:38, Mike West wrote: > On 2015/03/05 at 14:58:10, yoav wrote: > > ...
5 years, 9 months ago (2015-03-05 15:33:17 UTC) #5
Mike West
On 2015/03/05 at 15:33:17, yoav wrote: > On 2015/03/05 15:11:38, Mike West wrote: > > ...
5 years, 9 months ago (2015-03-05 15:49:28 UTC) #6
Yoav Weiss
On 2015/03/05 15:49:28, Mike West wrote: > On 2015/03/05 at 15:33:17, yoav wrote: > > ...
5 years, 9 months ago (2015-03-06 07:40:49 UTC) #7
Mike West
On 2015/03/06 at 07:40:49, yoav wrote: > LGTM Thanks. Glad you're back home safely. :)
5 years, 9 months ago (2015-03-06 07:42:36 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/978323002/1
5 years, 9 months ago (2015-03-06 07:42:37 UTC) #10
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://src.chromium.org/viewvc/blink?view=rev&revision=191421
5 years, 9 months ago (2015-03-06 10:26:24 UTC) #11
Mike West
5 years, 9 months ago (2015-03-10 18:55:29 UTC) #12
Message was sent while issue was closed.
A revert of this CL (patchset #1 id:1) has been created in
https://codereview.chromium.org/999473002/ by mkwst@chromium.org.

The reason for reverting is: Speculative revert to see if things stop crashing.
:)

BUG=465497.

Powered by Google App Engine
This is Rietveld 408576698