Handle recovery on "timestamp-looking" lines in the WebVTT parser

When a line with a "-->" is encountered as part of cue-text, in the
header part or after a previous error (i.e. during "bad cue" processing).
The parser is supposed to break out of the current state and try to parse
the "-->" line as being the start of a new cue.

Updated testcases:

PASS -> FAIL
tc006, tc007 and tc011 (Tested the old behavior where "-->" was
allowed/ignored, and blank lines were required to start a new cue.)

FAIL -> PASS
opera/track/webvtt/parsing subtests nulls, header-timings, header-space,
header-tab and arrows
opera/interfaces/TextTrackCue/vertical.html

TEST=media/track/track-webvtt-tc031-cue-recovery.html
TEST=media/track/track-webvtt-tc032-degenerate-cues.html
BUG=305317

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

git-svn-id: svn://svn.chromium.org/blink/trunk@162210 bbb929c8-8fbe-4397-9dbb-9b2b20218538
15 files changed