r105434 introduced a bug which causes a HTMLTrackElement's TextTrack to not be removed from the HTMLMediaElement's tracks collection.
Created attachment 131408 [details]
I believe I can't review+ it, but nice catch and the patch looks good to me.
Comment on attachment 131408 [details]
View in context: https://bugs.webkit.org/attachment.cgi?id=131408&action=review
> virtual void trackWasAdded(HTMLTrackElement*);
> - virtual void trackWasRemoved(HTMLTrackElement*);
> + virtual void trackWillBeRemoved(HTMLTrackElement*);
I think the usual naming pattern is didAddTrack/willRemoveTrack