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

Issue 2207423002: Implement '[SecureContext]' IDL attribute for interfaces, methods and attributes. (Closed)

Created:
4 years, 4 months ago by Mike West
Modified:
4 years, 4 months ago
Reviewers:
haraken, bashi, Yuki
CC:
blink-reviews, blink-reviews-bindings_chromium.org, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement '[SecureContext]' IDL attribute for methods and attributes. This is step 1 of implementing '[SecureContext]'. It deals with interfaces, attributes and methods, but does not yet correctly handle partial interfaces, constants, dictionaries, etc. BUG=634270 Committed: https://crrev.com/59dbf413248d36371afa36b4020c81dd42f72b69 Cr-Commit-Position: refs/heads/master@{#410019}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Feedback. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+849 lines, -24 lines) Patch
M third_party/WebKit/Source/bindings/IDLExtendedAttributes.md View 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/IDLExtendedAttributes.txt View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/scripts/code_generator_v8.py View 2 chunks +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/scripts/v8_attributes.py View 4 chunks +8 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/bindings/scripts/v8_interface.py View 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/scripts/v8_methods.py View 1 2 chunks +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/scripts/v8_utilities.py View 1 chunk +9 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/templates/interface.cpp View 1 chunk +6 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/templates/interface_base.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/templates/methods.cpp View 2 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/idls/core/TestInterface.idl View 1 1 chunk +13 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/bindings/tests/idls/core/TestInterfaceSecureContext.idl View 1 1 chunk +21 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface.cpp View 1 4 chunks +334 lines, -0 lines 0 comments Download
A + third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceSecureContext.h View 1 chunk +14 lines, -14 lines 0 comments Download
A third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceSecureContext.cpp View 1 chunk +417 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 25 (12 generated)
Mike West
Hello, folks who know more about bindings than I do! This is a first stab ...
4 years, 4 months ago (2016-08-04 10:06:09 UTC) #2
Yuki
LGTM on my side, but please wait for bashi@'s review. https://codereview.chromium.org/2207423002/diff/1/third_party/WebKit/Source/bindings/templates/interface.cpp File third_party/WebKit/Source/bindings/templates/interface.cpp (right): https://codereview.chromium.org/2207423002/diff/1/third_party/WebKit/Source/bindings/templates/interface.cpp#newcode914 ...
4 years, 4 months ago (2016-08-04 12:36:39 UTC) #5
Mike West
On 2016/08/04 at 12:36:39, yukishiino wrote: > LGTM on my side, but please wait for ...
4 years, 4 months ago (2016-08-04 13:05:14 UTC) #6
Yuki
On 2016/08/04 13:05:14, Mike West wrote: > On 2016/08/04 at 12:36:39, yukishiino wrote: > > ...
4 years, 4 months ago (2016-08-04 13:16:29 UTC) #7
haraken
LGTM https://codereview.chromium.org/2207423002/diff/1/third_party/WebKit/Source/bindings/scripts/v8_methods.py File third_party/WebKit/Source/bindings/scripts/v8_methods.py (right): https://codereview.chromium.org/2207423002/diff/1/third_party/WebKit/Source/bindings/scripts/v8_methods.py#newcode61 third_party/WebKit/Source/bindings/scripts/v8_methods.py:61: secure = method['overloads']['secure_context_test_all'] if 'overloads' in method else ...
4 years, 4 months ago (2016-08-04 13:51:17 UTC) #8
Mike West
Thanks to you both! I'll give bashi@ a chance to look at this before addressing ...
4 years, 4 months ago (2016-08-04 17:38:15 UTC) #11
bashi
lgtm https://codereview.chromium.org/2207423002/diff/1/third_party/WebKit/Source/bindings/tests/idls/core/TestInterfaceSecureContext.idl File third_party/WebKit/Source/bindings/tests/idls/core/TestInterfaceSecureContext.idl (right): https://codereview.chromium.org/2207423002/diff/1/third_party/WebKit/Source/bindings/tests/idls/core/TestInterfaceSecureContext.idl#newcode6 third_party/WebKit/Source/bindings/tests/idls/core/TestInterfaceSecureContext.idl:6: interface TestInterfaceSecureContext { Don't we need to have ...
4 years, 4 months ago (2016-08-04 23:16:14 UTC) #12
haraken
https://codereview.chromium.org/2207423002/diff/1/third_party/WebKit/Source/bindings/tests/idls/core/TestInterfaceSecureContext.idl File third_party/WebKit/Source/bindings/tests/idls/core/TestInterfaceSecureContext.idl (right): https://codereview.chromium.org/2207423002/diff/1/third_party/WebKit/Source/bindings/tests/idls/core/TestInterfaceSecureContext.idl#newcode6 third_party/WebKit/Source/bindings/tests/idls/core/TestInterfaceSecureContext.idl:6: interface TestInterfaceSecureContext { On 2016/08/04 23:16:13, bashi1 wrote: > ...
4 years, 4 months ago (2016-08-05 04:05:38 UTC) #13
Mike West
Thanks, all. I've added `[SecureContext]` to the `TestInterfaceSecureContext` IDL, and added the previous contents of ...
4 years, 4 months ago (2016-08-05 07:42:47 UTC) #16
haraken
On 2016/08/05 07:42:47, Mike West wrote: > Thanks, all. I've added `[SecureContext]` to the `TestInterfaceSecureContext` ...
4 years, 4 months ago (2016-08-05 07:52:41 UTC) #17
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/2207423002/20001
4 years, 4 months ago (2016-08-05 08:33:13 UTC) #22
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 4 months ago (2016-08-05 09:17:27 UTC) #23
commit-bot: I haz the power
4 years, 4 months ago (2016-08-05 09:20:44 UTC) #25
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/59dbf413248d36371afa36b4020c81dd42f72b69
Cr-Commit-Position: refs/heads/master@{#410019}

Powered by Google App Engine
This is Rietveld 408576698