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

Issue 1305183009: CREDENTIAL: Extend FormData opacity to created Request objects (Closed)

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

Description

CREDENTIAL: Extend FormData opacity to created Request objects Opaque FormData objects created from 'PasswordCredential::toFormData()' need to persist their opacity through to Request objects, as defined in https://w3c.github.io/webappsec/specs/credentialmanagement/#opaque-formdata-algorithms This patch adjusts 'RequestInit', 'Body', and 'Request' such that opaque 'FormData' bodies lead to opaque 'Body' objects that reject read attempts from JavaScript. BUG=526995 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=201714

Patch Set 1 #

Total comments: 6

Patch Set 2 : Testing nits. #

Total comments: 1

Patch Set 3 : Initializing variables is a good idea. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -2 lines) Patch
M LayoutTests/http/tests/credentialmanager/passwordcredential-basics.html View 1 1 chunk +26 lines, -0 lines 0 comments Download
M Source/core/html/DOMFormData.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/modules/fetch/Body.h View 1 chunk +4 lines, -0 lines 0 comments Download
M Source/modules/fetch/Body.cpp View 1 5 chunks +16 lines, -1 line 0 comments Download
M Source/modules/fetch/Request.cpp View 1 chunk +4 lines, -0 lines 0 comments Download
M Source/modules/fetch/RequestInit.h View 1 chunk +3 lines, -0 lines 0 comments Download
M Source/modules/fetch/RequestInit.cpp View 1 2 3 chunks +6 lines, -1 line 0 comments Download

Messages

Total messages: 15 (6 generated)
Mike West
One more patch in the series for you to skim, Philip.
5 years, 3 months ago (2015-09-02 10:41:53 UTC) #2
philipj_slow
Lightly skimmed, LGTM with test nits :) https://codereview.chromium.org/1305183009/diff/1/LayoutTests/http/tests/credentialmanager/passwordcredential-basics.html File LayoutTests/http/tests/credentialmanager/passwordcredential-basics.html (right): https://codereview.chromium.org/1305183009/diff/1/LayoutTests/http/tests/credentialmanager/passwordcredential-basics.html#newcode80 LayoutTests/http/tests/credentialmanager/passwordcredential-basics.html:80: (function() { ...
5 years, 3 months ago (2015-09-02 12:12:48 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1305183009/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1305183009/20001
5 years, 3 months ago (2015-09-02 13:17:08 UTC) #6
Mike West
Thanks! The testing nits were helpful. :) https://codereview.chromium.org/1305183009/diff/1/Source/modules/fetch/Body.cpp File Source/modules/fetch/Body.cpp (right): https://codereview.chromium.org/1305183009/diff/1/Source/modules/fetch/Body.cpp#newcode137 Source/modules/fetch/Body.cpp:137: if (m_opaque) ...
5 years, 3 months ago (2015-09-02 13:17:41 UTC) #7
Mike West
Thanks! The testing nits were helpful. :) https://codereview.chromium.org/1305183009/diff/1/Source/modules/fetch/Body.cpp File Source/modules/fetch/Body.cpp (right): https://codereview.chromium.org/1305183009/diff/1/Source/modules/fetch/Body.cpp#newcode137 Source/modules/fetch/Body.cpp:137: if (m_opaque) ...
5 years, 3 months ago (2015-09-02 13:17:42 UTC) #8
philipj_slow
https://codereview.chromium.org/1305183009/diff/20001/LayoutTests/http/tests/credentialmanager/passwordcredential-basics.html File LayoutTests/http/tests/credentialmanager/passwordcredential-basics.html (right): https://codereview.chromium.org/1305183009/diff/20001/LayoutTests/http/tests/credentialmanager/passwordcredential-basics.html#newcode103 LayoutTests/http/tests/credentialmanager/passwordcredential-basics.html:103: }, "Verify behavior of 'Body::" + methodName + "()' ...
5 years, 3 months ago (2015-09-02 13:42:10 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/107962)
5 years, 3 months ago (2015-09-02 14:14:26 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1305183009/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1305183009/40001
5 years, 3 months ago (2015-09-03 08:17:22 UTC) #14
commit-bot: I haz the power
5 years, 3 months ago (2015-09-03 09:39:57 UTC) #15
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=201714

Powered by Google App Engine
This is Rietveld 408576698