WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
156291
[IDL] Extend support for [EnabledAtRuntime] attributes / operations to all global objects, not just Window
https://bugs.webkit.org/show_bug.cgi?id=156291
Summary
[IDL] Extend support for [EnabledAtRuntime] attributes / operations to all gl...
Chris Dumez
Reported
2016-04-06 09:24:58 PDT
Extend support for [EnabledAtRuntime] attributes / operations to all global objects, not just Window.
Attachments
Patch
(61.79 KB, patch)
2016-04-06 09:42 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2016-04-06 09:42:45 PDT
Created
attachment 275775
[details]
Patch
WebKit Commit Bot
Comment 2
2016-04-06 09:44:51 PDT
Attachment 275775
[details]
did not pass style-queue: ERROR: Source/WebCore/bindings/scripts/test/JS/JSTestGlobalObject.cpp:164: One line control clauses should not use braces. [whitespace/braces] [4] ERROR: Source/WebCore/bindings/scripts/test/JS/JSTestGlobalObject.cpp:180: One line control clauses should not use braces. [whitespace/braces] [4] ERROR: Source/WebCore/bindings/scripts/test/JS/JSTestGlobalObject.cpp:215: One line control clauses should not use braces. [whitespace/braces] [4] ERROR: Source/WebCore/bindings/scripts/test/JS/JSTestGlobalObject.cpp:233: One line control clauses should not use braces. [whitespace/braces] [4] ERROR: Source/WebCore/bindings/scripts/test/JS/JSTestGlobalObject.cpp:341: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebCore/bindings/scripts/test/ObjC/DOMTestGlobalObject.mm:30: Found header this file implements after other header. Should be: config.h, primary header, blank line, and then alphabetically sorted. [build/include_order] [4] Total errors found: 6 in 11 files If any of these errors are false positives, please file a bug against check-webkit-style.
Chris Dumez
Comment 3
2016-04-06 09:45:26 PDT
Diff on generated JSWorkerGlobalScope.cpp:
http://pastebin.com/4esG76hq
Alex Christensen
Comment 4
2016-04-06 09:46:40 PDT
Comment on
attachment 275775
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=275775&action=review
> Source/WebCore/bindings/scripts/CodeGeneratorJS.pm:381 > + return $interface->name eq "DOMWindow" || $codeGenerator->InheritsInterface($interface, "WorkerGlobalScope") || $interface->name eq "TestGlobalObject";
Great! I was thinking last night, "there's no test for this". Now I can sleep better.
Chris Dumez
Comment 5
2016-04-06 09:47:20 PDT
(In reply to
comment #4
)
> Comment on
attachment 275775
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=275775&action=review
> > > Source/WebCore/bindings/scripts/CodeGeneratorJS.pm:381 > > + return $interface->name eq "DOMWindow" || $codeGenerator->InheritsInterface($interface, "WorkerGlobalScope") || $interface->name eq "TestGlobalObject"; > > Great! I was thinking last night, "there's no test for this". Now I can > sleep better.
Yeah, I was tired last night :P
Chris Dumez
Comment 6
2016-04-06 10:33:58 PDT
Comment on
attachment 275775
[details]
Patch Clearing flags on attachment: 275775 Committed
r199103
: <
http://trac.webkit.org/changeset/199103
>
Chris Dumez
Comment 7
2016-04-06 10:34:03 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