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

Issue 793243004: IDL: Properly support [Exposed] on static methods (Closed)

Created:
6 years ago by Jens Widell
Modified:
6 years ago
Reviewers:
haraken
CC:
blink-reviews, blink-reviews-bindings_chromium.org, arv+blink
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

IDL: Properly support [Exposed] on static methods They were conditionally installed as indicated by the [Exposed] attribute, but they were installed on the prototype object rather than on the interface object. A static method with [Exposed] fulfills the requirements for being treated both as a conditionally enabled method (because of [Exposed]) and a method with custom registration (because of being static), and due to the order in which those requirements were checked, it ended up being treated as a conditionally enabled method, only. Fix by giving custom registration priority and by adding the same condition filters around that registration code, so that such methods can still also be all sorts of conditionally enabled. BUG=434741 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=187161

Patch Set 1 #

Total comments: 3

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -19 lines) Patch
M Source/bindings/scripts/v8_interface.py View 1 chunk +4 lines, -1 line 0 comments Download
M Source/bindings/templates/interface_base.cpp View 1 2 chunks +8 lines, -0 lines 0 comments Download
M Source/bindings/templates/methods.cpp View 1 1 chunk +12 lines, -6 lines 0 comments Download
M Source/bindings/tests/results/core/V8TestInterface.cpp View 1 2 chunks +12 lines, -6 lines 0 comments Download
M Source/bindings/tests/results/modules/V8TestInterface5.cpp View 2 chunks +12 lines, -6 lines 0 comments Download

Messages

Total messages: 10 (2 generated)
Jens Widell
PTAL
6 years ago (2014-12-15 12:14:00 UTC) #2
Jens Widell
https://codereview.chromium.org/793243004/diff/1/Source/bindings/scripts/v8_interface.py File Source/bindings/scripts/v8_interface.py (right): https://codereview.chromium.org/793243004/diff/1/Source/bindings/scripts/v8_interface.py#newcode390 Source/bindings/scripts/v8_interface.py:390: custom_registration_methods.append(method) So, I split 'has_custom_registration' away from 'runtime_enabled_function' here, ...
6 years ago (2014-12-15 12:22:35 UTC) #3
Jens Widell
https://codereview.chromium.org/793243004/diff/1/Source/bindings/tests/results/core/V8TestInterface.cpp File Source/bindings/tests/results/core/V8TestInterface.cpp (right): https://codereview.chromium.org/793243004/diff/1/Source/bindings/tests/results/core/V8TestInterface.cpp#newcode2086 Source/bindings/tests/results/core/V8TestInterface.cpp:2086: if (context && context->isDocument() && ContextFeatures::partialContextName3Enabled(toDocument(context))) { This added ...
6 years ago (2014-12-15 12:32:24 UTC) #4
Jens Widell
https://codereview.chromium.org/793243004/diff/1/Source/bindings/tests/results/core/V8TestInterface.cpp File Source/bindings/tests/results/core/V8TestInterface.cpp (right): https://codereview.chromium.org/793243004/diff/1/Source/bindings/tests/results/core/V8TestInterface.cpp#newcode2086 Source/bindings/tests/results/core/V8TestInterface.cpp:2086: if (context && context->isDocument() && ContextFeatures::partialContextName3Enabled(toDocument(context))) { On 2014/12/15 ...
6 years ago (2014-12-15 12:37:55 UTC) #5
haraken
LGTM
6 years ago (2014-12-15 15:13:54 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/793243004/20001
6 years ago (2014-12-15 15:47:48 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://src.chromium.org/viewvc/blink?view=rev&revision=187161
6 years ago (2014-12-15 18:30:35 UTC) #9
samuong
6 years ago (2014-12-15 21:40:36 UTC) #10
Message was sent while issue was closed.
A revert of this CL (patchset #2 id:20001) has been created in
https://codereview.chromium.org/806773006/ by samuong@chromium.org.

The reason for reverting is: seems to be causing compile failures:
http://build.chromium.org/p/chromium.webkit/builders/WebKit%20Mac%20Builder%2....

Powered by Google App Engine
This is Rietveld 408576698