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
163580
Update TrackEvent to stop using legacy [ConstructorTemplate=Event]
https://bugs.webkit.org/show_bug.cgi?id=163580
Summary
Update TrackEvent to stop using legacy [ConstructorTemplate=Event]
Chris Dumez
Reported
2016-10-17 19:24:48 PDT
Update TrackEvent to stop using legacy [ConstructorTemplate=Event] and use a regular constructor as in the specification: -
https://html.spec.whatwg.org/#the-trackevent-interface
Attachments
Patch
(13.91 KB, patch)
2016-10-17 19:28 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2016-10-17 19:28:52 PDT
Created
attachment 291911
[details]
Patch
Sam Weinig
Comment 2
2016-10-18 10:14:25 PDT
Comment on
attachment 291911
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=291911&action=review
> Source/WebCore/html/track/TrackEvent.idl:30 > + [CustomGetter] readonly attribute (VideoTrack or AudioTrack or TextTrack)? track;
It would be nice to work towards getting rid of this CustomGetter by storing the track as a variant, but let's come back to that later.
WebKit Commit Bot
Comment 3
2016-10-18 10:16:36 PDT
Comment on
attachment 291911
[details]
Patch Clearing flags on attachment: 291911 Committed
r207468
: <
http://trac.webkit.org/changeset/207468
>
WebKit Commit Bot
Comment 4
2016-10-18 10:16:40 PDT
All reviewed patches have been landed. Closing bug.
Darin Adler
Comment 5
2016-10-18 17:03:21 PDT
Comment on
attachment 291911
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=291911&action=review
>> Source/WebCore/html/track/TrackEvent.idl:30 >> + [CustomGetter] readonly attribute (VideoTrack or AudioTrack or TextTrack)? track; > > It would be nice to work towards getting rid of this CustomGetter by storing the track as a variant, but let's come back to that later.
All we’d need is a track() function that returns a variant. Don’t necessarily need to store it as a variant!
Chris Dumez
Comment 6
2016-10-18 17:04:40 PDT
Comment on
attachment 291911
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=291911&action=review
>>> Source/WebCore/html/track/TrackEvent.idl:30 >>> + [CustomGetter] readonly attribute (VideoTrack or AudioTrack or TextTrack)? track; >> >> It would be nice to work towards getting rid of this CustomGetter by storing the track as a variant, but let's come back to that later. > > All we’d need is a track() function that returns a variant. Don’t necessarily need to store it as a variant!
We'd need a toJS() implementation that properly deals with std::variant as well.
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