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

Issue 1126343003: Ignore unknown options to subresource integrity (Closed)

Created:
5 years, 7 months ago by jww
Modified:
5 years, 7 months ago
Reviewers:
Mike West
CC:
blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Ignore unknown options to subresource integrity The spec states that unknown options must be ignored by the user agent so that new options may be added in the future. This adds support for that along with appropriate tests. BUG=355467 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=195212

Patch Set 1 #

Total comments: 4

Patch Set 2 : Removed MIME types #

Patch Set 3 : Fixed some edge cases #

Total comments: 16

Patch Set 4 : Removed option parsing + nits from mkwst #

Unified diffs Side-by-side diffs Delta from patch set Stats (+173 lines, -224 lines) Patch
D LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-allowed-mimetypes.html View 1 1 chunk +0 lines, -19 lines 0 comments Download
M LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-blocked-expected.txt View 1 1 chunk +3 lines, -3 lines 0 comments Download
D LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-blocked-mimetypes.html View 1 1 chunk +0 lines, -50 lines 0 comments Download
D LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-blocked-mimetypes-expected.txt View 1 1 chunk +0 lines, -6 lines 0 comments Download
A LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-options.html View 1 2 3 1 chunk +47 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-options-expected.txt View 1 2 3 1 chunk +14 lines, -0 lines 0 comments Download
M LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-script-cors-bad-integrity-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-style-blocked-expected.txt View 1 1 chunk +3 lines, -3 lines 0 comments Download
M Source/core/dom/ScriptLoader.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/frame/SubresourceIntegrity.h View 1 2 3 2 chunks +1 line, -3 lines 0 comments Download
M Source/core/frame/SubresourceIntegrity.cpp View 1 2 3 7 chunks +19 lines, -61 lines 0 comments Download
M Source/core/frame/SubresourceIntegrityTest.cpp View 1 2 3 13 chunks +83 lines, -75 lines 0 comments Download
M Source/core/frame/UseCounter.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/html/HTMLLinkElement.cpp View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 11 (2 generated)
jww
5 years, 7 months ago (2015-05-07 22:52:21 UTC) #2
Mike West
On 2015/05/07 at 22:52:21, jww wrote: > I don't really understand why we're keeping all ...
5 years, 7 months ago (2015-05-07 23:11:01 UTC) #3
jww
On 2015/05/07 23:11:01, Mike West (traveling. slow.) wrote: > On 2015/05/07 at 22:52:21, jww wrote: ...
5 years, 7 months ago (2015-05-08 17:31:29 UTC) #4
jww
Mike, this removes the MIME types completely. Can you take a look? Thanks.
5 years, 7 months ago (2015-05-08 19:36:42 UTC) #5
Mike West
https://codereview.chromium.org/1126343003/diff/1/Source/core/frame/SubresourceIntegrity.cpp File Source/core/frame/SubresourceIntegrity.cpp (right): https://codereview.chromium.org/1126343003/diff/1/Source/core/frame/SubresourceIntegrity.cpp#newcode246 Source/core/frame/SubresourceIntegrity.cpp:246: // [algorithm]-[hash] OR [algorithm]-[hash]?[name]=[value] OR [algorithm]-[hash]?[name]=[value]?[rest of options] This ...
5 years, 7 months ago (2015-05-11 03:25:29 UTC) #6
jww
https://codereview.chromium.org/1126343003/diff/40001/Source/core/frame/SubresourceIntegrity.cpp File Source/core/frame/SubresourceIntegrity.cpp (right): https://codereview.chromium.org/1126343003/diff/40001/Source/core/frame/SubresourceIntegrity.cpp#newcode45 Source/core/frame/SubresourceIntegrity.cpp:45: return isASCIIAlphanumeric(c) || c == '!' || c == ...
5 years, 7 months ago (2015-05-11 05:39:08 UTC) #7
Mike West
LGTM. Thanks!
5 years, 7 months ago (2015-05-11 07:31:32 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1126343003/60001
5 years, 7 months ago (2015-05-11 23:06:58 UTC) #10
commit-bot: I haz the power
5 years, 7 months ago (2015-05-12 00:24:49 UTC) #11
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=195212

Powered by Google App Engine
This is Rietveld 408576698