DescriptionWork around flaky TextTrackList tests that will be stable with Oilpan
This test calls document.createElement('video').textTracks and has no
reference to the video element. The TextTrackList doesn't keep its
owner HTMLMediaElement alive, so if the owner is garbage collected,
TextTrackList::executionContext() returns null. That in turn makes
EventTarget::dispatchEvent() do nothing, and thus the assert_true(ran)
fails because the event handler was in fact never run.
The owner is a RawPtrWillBeMember<HTMLMediaElement>, so this problem
will not occur with Oilpan, and does not seem worth addressing
pre-Oilpan unless there's evidence of this happening in the wild.
BUG=503852
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197907
Patch Set 1 #
Messages
Total messages: 10 (4 generated)
|