[Bug 17157] <track> Need to await a stable state before assigning /URL/ in the first run

https://www.w3.org/Bugs/Public/show_bug.cgi?id=17157

--- Comment #1 from Simon Pieters <simonp@opera.com> 2012-05-23 12:26:18 UTC ---
Consider

var track = document.createElement('track');
track.src = 'foo';

When the track is created, the loading algorithm starts, which immediately
stores the track URL (which is the empty string) and runs the /download/ step
async. That step says to fire an 'error' event if track URL is empty and then
move on to the /monitoring/ step. Since it's async, it's racy as to whether the
script will have set .src yet or not.

This is clearly bogus. We should await a stable state before storing /URL/ and
starting the download.

Editorial comment: Since the same behavior should happen after the /monitoring/
step, these steps could be at the top of the /download/ so you don't need to
have the exact same steps repeated in two places in the algorithm.

-- 
Configure bugmail: https://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 Wednesday, 23 May 2012 12:26:21 UTC