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

Issue 2689363003: CSP: Add test: Allow port upgrade without scheme upgrade and vice versa. (Closed)

Created:
3 years, 10 months ago by arthursonzogni
Modified:
3 years, 10 months ago
Reviewers:
Mike West
CC:
alexmos, blink-reviews, chromium-reviews, clamy, nasko
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

CSP: Add test: Allow port upgrade without scheme upgrade and vice versa. This is a backport of a test in: https://codereview.chromium.org/2612793002/ What is interesting in this test is that CSP allow port and scheme to be upgraded in their secure version independently. The result is that one of them can be upgraded without the other (http on port 443 or https on port 80). BUG=692499 Review-Url: https://codereview.chromium.org/2689363003 Cr-Commit-Position: refs/heads/master@{#450685} Committed: https://chromium.googlesource.com/chromium/src/+/ba1205f748c335e037ad516e29cee9d23dffd21f

Patch Set 1 #

Total comments: 6

Patch Set 2 : Add TODO and BUG id. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -18 lines) Patch
M third_party/WebKit/Source/core/frame/csp/CSPSourceTest.cpp View 1 1 chunk +39 lines, -18 lines 0 comments Download

Messages

Total messages: 11 (6 generated)
arthursonzogni
Hi Mike, This is another backport of the test whose results looks strange. We get ...
3 years, 10 months ago (2017-02-14 14:52:53 UTC) #2
Mike West
LGTM if you file bugs. :) https://codereview.chromium.org/2689363003/diff/1/third_party/WebKit/Source/core/frame/csp/CSPSourceTest.cpp File third_party/WebKit/Source/core/frame/csp/CSPSourceTest.cpp (right): https://codereview.chromium.org/2689363003/diff/1/third_party/WebKit/Source/core/frame/csp/CSPSourceTest.cpp#newcode151 third_party/WebKit/Source/core/frame/csp/CSPSourceTest.cpp:151: EXPECT_TRUE(source.matches(KURL(base, "http://example.com:443/"))); Here ...
3 years, 10 months ago (2017-02-15 06:40:03 UTC) #3
arthursonzogni
Thanks! https://codereview.chromium.org/2689363003/diff/1/third_party/WebKit/Source/core/frame/csp/CSPSourceTest.cpp File third_party/WebKit/Source/core/frame/csp/CSPSourceTest.cpp (right): https://codereview.chromium.org/2689363003/diff/1/third_party/WebKit/Source/core/frame/csp/CSPSourceTest.cpp#newcode151 third_party/WebKit/Source/core/frame/csp/CSPSourceTest.cpp:151: EXPECT_TRUE(source.matches(KURL(base, "http://example.com:443/"))); On 2017/02/15 06:40:02, Mike West (sloooooow) ...
3 years, 10 months ago (2017-02-15 12:17:51 UTC) #7
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/2689363003/20001
3 years, 10 months ago (2017-02-15 12:18:07 UTC) #8
commit-bot: I haz the power
3 years, 10 months ago (2017-02-15 13:26:37 UTC) #11
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/ba1205f748c335e037ad516e29ce...

Powered by Google App Engine
This is Rietveld 408576698