Chris Pearce 720655a185 Bug 1461877 - Ensure we don't dispatch 'playing' when we're about to reject pending play promises. r=bryce
Currently we can end up dispatching a 'playing' event right before we reject
play() promises, and this confuses YouTube's controls, and it doesn't make
sense to dispatch a 'playing' event when we're not playing anyway.

This is because the logic to delay resolving the play() promise until after
we've reached loadedmetadata doesn't prevent the 'playing' event from being
dispatched. We shouldn't dispatch 'playing' until we resolve the play()
promise(s).

MozReview-Commit-ID: 5H4dcObfu4M

--HG--
extra : rebase_source : b4036a8fead95cd3070f9fc4d30e0feb23d1f64c
2018-05-16 17:27:01 +12:00
..