Bug 136552

Summary: Fix FIXME's in JSTrackCustom now that AudioTrack and VideoTrack exist.
Product: WebKit Reporter: Brendan Long <b.long>
Component: MediaAssignee: Brendan Long <b.long>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, eric.carlson, jer.noble, pnormand
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Brendan Long 2014-09-04 15:45:51 PDT
Fix FIXME's in JSTrackCustom not that AudioTrack and VideoTrack exist.
Comment 1 Brendan Long 2014-09-04 15:47:18 PDT
Created attachment 237652 [details]
Patch
Comment 2 Brendan Long 2014-09-04 15:48:08 PDT
I saw this FIXME while I was working on another patch. I'm not really sure how this code is used though. Is there some way I could test this?
Comment 3 Eric Carlson 2014-09-05 09:52:56 PDT
(In reply to comment #2)
> I saw this FIXME while I was working on another patch. I'm not really sure how this code is used though. Is there some way I could test this?

I think toTrack() is only used by JSDictionary::convertValue() currently, and I believe that is only used when MediaStream is enabled so you can't test it at the moment.
Comment 4 Eric Carlson 2014-09-05 09:58:58 PDT
(In reply to comment #3)
> (In reply to comment #2)
> > I saw this FIXME while I was working on another patch. I'm not really sure how this code is used though. Is there some way I could test this?
> 
> I think toTrack() is only used by JSDictionary::convertValue() currently, and I believe that is only used when MediaStream is enabled so you can't test it at the moment.

Scratch that, it can also be used for a TrackEvent. But I am still not sure how you would test it.
Comment 5 Brendan Long 2014-09-10 15:32:32 PDT
Sorry, got distracted by some other stuff. Do you think we should apply this fix, or should we wait until we have some way to test it?
Comment 6 Eric Carlson 2014-09-10 16:40:56 PDT
(In reply to comment #5)
> Sorry, got distracted by some other stuff. Do you think we should apply this fix, or should we wait until we have some way to test it?

Why don't you land it, the new code is obviously better than what we have now.
Comment 7 WebKit Commit Bot 2014-09-11 08:03:56 PDT
Comment on attachment 237652 [details]
Patch

Clearing flags on attachment: 237652

Committed r173513: <http://trac.webkit.org/changeset/173513>
Comment 8 WebKit Commit Bot 2014-09-11 08:04:00 PDT
All reviewed patches have been landed.  Closing bug.