This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 14378 - <track> cancel pending events when loading new src
Summary: <track> cancel pending events when loading new src
Status: RESOLVED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: HTML5 spec (show other bugs)
Version: unspecified
Hardware: Other other
: P3 blocker
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-04 08:14 UTC by contributor
Modified: 2011-10-24 17:33 UTC (History)
7 users (show)

See Also:


Attachments

Description contributor 2011-10-04 08:14:00 UTC
Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html
Multipage: http://www.whatwg.org/C#sourcing-in-band-text-tracks
Complete: http://www.whatwg.org/c#sourcing-in-band-text-tracks

Comment:
<track> cancel pending events when loading new src

Posted from: 83.218.67.122 by philipj@opera.com
User agent: Opera/9.80 (X11; Linux x86_64; U; Edition Next; en) Presto/2.9.205 Version/12.00
Comment 1 Philip Jägenstedt 2011-10-04 08:18:23 UTC
Like <video>, <track> should maintain an event queue and cancel any pending events targeted at it when the src attribute is modified. Otherwise, the load/error event of one load could get fired after a second resource begins loading. This could happen with scripts that have only a single <track> element and switches tracks by modifying the src attribute.
Comment 2 Philip Jägenstedt 2011-10-11 14:56:20 UTC
Marking as blocker as this detail has rather non-trivial consequences for implementation.
Comment 3 Ian 'Hixie' Hickson 2011-10-24 17:33:16 UTC
EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Accepted
Change Description: see diff given below
Rationale: Concurred with reporter's comments.
Comment 4 contributor 2011-10-24 17:33:35 UTC
Checked in as WHATWG revision r6732.
Check-in comment: Fix a race condition between setting src and firing onload for <track>.
http://html5.org/tools/web-apps-tracker?from=6731&to=6732