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

Issue 2090773005: [OriginTrials] Raise an exception at compile time for OT-enabled methods (Closed)

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

Description

[OriginTrials] Raise an exception at compile time for OT-enabled methods We don't currently support origin trials on individual methods (methods which are part of an origin-trial-enabled attribute are supported), and the generated bindings code for these is incorrect. This patch causes an exception to be raised at compile time to ensure that noone tries to add the OriginTrialEnabled attribute to a method. This also prevents trials from being defined on: - Iterators - Maplike and Setlike methods - Stringifiers and Serializers As part of this patch, the methods defined in TestObject.idl which were generating incorrect code have been commented out. BUG=621641 R=chasej@chromium.org, haraken@chromium.org Committed: https://crrev.com/0fa26a48c0341e8676aaafc1f33fc825d3581709 Cr-Commit-Position: refs/heads/master@{#401945}

Patch Set 1 #

Patch Set 2 : Add note about support in IDLExtendedAttributes.md #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -217 lines) Patch
M third_party/WebKit/Source/bindings/IDLExtendedAttributes.md View 1 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/scripts/v8_methods.py View 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/idls/core/TestObject.idl View 1 chunk +10 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp View 2 chunks +0 lines, -209 lines 0 comments Download

Messages

Total messages: 10 (2 generated)
iclelland
+r chasej, haraken -- can you PTAL? Thanks. I believe that this captures most of ...
4 years, 6 months ago (2016-06-24 03:55:22 UTC) #1
haraken
LGTM It would be great if you clarify what's supported and what's not in IDLExtendedAttributes.md.
4 years, 6 months ago (2016-06-24 03:58:37 UTC) #2
iclelland
On 2016/06/24 03:58:37, haraken wrote: > LGTM > > It would be great if you ...
4 years, 6 months ago (2016-06-24 04:21:28 UTC) #3
haraken
LGTM
4 years, 6 months ago (2016-06-24 04:22:23 UTC) #4
chasej
LGTM.
4 years, 6 months ago (2016-06-24 18:08:13 UTC) #5
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/2090773005/20001
4 years, 6 months ago (2016-06-24 18:32:08 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 6 months ago (2016-06-24 20:09:26 UTC) #8
commit-bot: I haz the power
4 years, 6 months ago (2016-06-24 20:11:04 UTC) #10
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/0fa26a48c0341e8676aaafc1f33fc825d3581709
Cr-Commit-Position: refs/heads/master@{#401945}

Powered by Google App Engine
This is Rietveld 408576698