WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
148449
A WebIDL callback interface is allowed to have constants
https://bugs.webkit.org/show_bug.cgi?id=148449
Summary
A WebIDL callback interface is allowed to have constants
Chris Dumez
Reported
2015-08-25 15:44:28 PDT
A WebIDL callback interface is allowed to have constants. Currently, our bindings generator does not support that. Spec for constants:
https://heycam.github.io/webidl/#dfn-constant
Part about constants and callback interfaces:
https://heycam.github.io/webidl/#es-user-objects
"The [NoInterfaceObject] extended attribute must not be specified on a callback interface unless it has a constant declared on it. This is because callback interfaces without constants never have interface objects." The callback interface should also have a corresponding property on the global object if they are constants:
https://heycam.github.io/webidl/#es-interfaces
Attachments
Patch
(16.06 KB, patch)
2015-08-27 14:05 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2015-08-27 14:05:02 PDT
Created
attachment 260085
[details]
Patch
WebKit Commit Bot
Comment 2
2015-08-27 14:06:28 PDT
Attachment 260085
[details]
did not pass style-queue: ERROR: Source/WebCore/bindings/scripts/test/ObjC/DOMTestCallback.h:37: enum members should use InterCaps with an initial capital letter. [readability/enum_casing] [4] ERROR: Source/WebCore/bindings/scripts/test/ObjC/DOMTestCallback.h:38: enum members should use InterCaps with an initial capital letter. [readability/enum_casing] [4] Total errors found: 2 in 8 files If any of these errors are false positives, please file a bug against check-webkit-style.
Geoffrey Garen
Comment 3
2015-08-27 14:45:59 PDT
Comment on
attachment 260085
[details]
Patch r=me
WebKit Commit Bot
Comment 4
2015-08-27 15:36:04 PDT
Comment on
attachment 260085
[details]
Patch Clearing flags on attachment: 260085 Committed
r189063
: <
http://trac.webkit.org/changeset/189063
>
WebKit Commit Bot
Comment 5
2015-08-27 15:36:10 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug