-
annacc@chromium.org authored
https://bugs.webkit.org/show_bug.cgi?id=94651 Reviewed by Eric Carlson. This patch ensures that cues that have already been added to the cueTree in HTMLMediaElement, are not added again. Source/WebCore: Test: media/track/track-mode-disabled-crash.html * html/HTMLMediaElement.cpp: (WebCore::HTMLMediaElement::textTrackAddCue): Do not add the cue if it already exists in m_cueTree. LayoutTests: * media/track/track-mode-disabled-crash-expected.txt: Added. * media/track/track-mode-disabled-crash.html: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@127779 268f45cc-cd09-0410-ab3c-d52691b4dbfc
883ea4b6