Work 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

Review URL: https://codereview.chromium.org/1213813002

git-svn-id: svn://svn.chromium.org/blink/trunk@197907 bbb929c8-8fbe-4397-9dbb-9b2b20218538
3 files changed
tree: f709a6adda7801bc2a872f7fa555499530c77c08
  1. third_party/