WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
153968
Attribute getters should not require an explicit 'this' value for Window properties
https://bugs.webkit.org/show_bug.cgi?id=153968
Summary
Attribute getters should not require an explicit 'this' value for Window prop...
Chris Dumez
Reported
2016-02-07 17:02:43 PST
Attribute getters should not require an explicit 'this' value for Window properties. This is because the Window interface is marked as [ImplicitThis]: -
http://heycam.github.io/webidl/#ImplicitThis
-
https://www.w3.org/Bugs/Public/show_bug.cgi?id=29421
This matches the behavior of Firefox and the expectations of the W3C web-platform-tests.
Attachments
WIP Patch
(90.78 KB, patch)
2016-02-07 17:04 PST
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(95.84 KB, patch)
2016-02-07 18:49 PST
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(95.85 KB, patch)
2016-02-08 10:30 PST
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2016-02-07 17:04:01 PST
Created
attachment 270833
[details]
WIP Patch
Chris Dumez
Comment 2
2016-02-07 18:49:22 PST
Created
attachment 270836
[details]
Patch
Chris Dumez
Comment 3
2016-02-08 10:30:26 PST
Created
attachment 270864
[details]
Patch
Gavin Barraclough
Comment 4
2016-02-08 18:08:47 PST
Comment on
attachment 270864
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=270864&action=review
> Source/WebCore/bindings/scripts/CodeGeneratorJS.pm:2296 > }
OOI could do away with the if/else in the perl & the ?: in the C++ by doing something like this: push(@implContent, " if (decodedThisValue.isUndefinedOrNull()) decodedThisValue = state->thisValue().toThis(state, NotStrictMode);\n") if ($interface->extendedAttributes->{"ImplicitThis"}); push(@implContent, " auto* castedThis = $castingFunction(decodedThisValue);\n"); Not sure if that's really much better tho.
Chris Dumez
Comment 5
2016-02-08 21:15:09 PST
Comment on
attachment 270864
[details]
Patch Clearing flags on attachment: 270864 Committed
r196303
: <
http://trac.webkit.org/changeset/196303
>
Chris Dumez
Comment 6
2016-02-08 21:15:14 PST
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