[Bug 10421] Setting media element's src and autoplay attribute may expose a race

http://www.w3.org/Bugs/Public/show_bug.cgi?id=10421





--- Comment #1 from Simon Pieters <simonp@opera.com>  2010-09-07 09:52:58 ---
I think you might not have implemented the spec correctly.

[[
If a src attribute of a media element is set or changed, the user agent must
invoke the media element's media element load algorithm.
]]

The media element load algorithm invokes the resource selection algorithm,
which changes networkState to NETWORK_NO_SOURCE and then awaits a stable state,
which will let the script continue to run before the resource selection
algorithm continues (and thus before the resource retrieval is initiated and
readyState is changed).

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Tuesday, 7 September 2010 09:53:01 UTC