W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > September 2009

[Bug 7631] New: Don't invoke resource selection algorithm when inserting <source> if src="" is present

From: <bugzilla@wiggum.w3.org>
Date: Tue, 15 Sep 2009 14:39:14 +0000
To: public-html-bugzilla@w3.org
Message-ID: <bug-7631-2486@http.www.w3.org/Bugs/Public/>

           Summary: Don't invoke resource selection algorithm when inserting
                    <source> if src="" is present
           Product: HTML WG
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTML5 spec bugs
        AssignedTo: dave.null@w3.org
        ReportedBy: simonp@opera.com
         QAContact: public-html-bugzilla@w3.org
                CC: ian@hixie.ch, mike@w3.org, public-html@w3.org

The spec says

"If a source element is inserted as a child of a media element that is in a
Document and whose networkState has the value NETWORK_EMPTY, the user agent
must invoke the media element's resource selection algorithm."

A media element can have networkState be NETWORK_EMPTY while also having a
src="" attribute if:

...the connection is interrupted, causing the user agent to give up trying to
fetch the resource, or
...the media data is corrupted, or
...the media data fetching process is aborted by the user, and the media
element's readyState attribute had a value equal to HAVE_NOTHING

When inserting a <source> element into such a media element, the resource
selection algorithm will be run, and it will see that there is a src attribute
and try to use it again, which will fail in the same way.

If an author inserts a <source> in the onemptied="" event listener, then there
will be an infinite (async) loop.

Maybe the spec should also check that the media element does not have a src
attribute before running the resource selection algorithm when inserting a
<source> element.

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, 15 September 2009 14:39:25 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:01:01 UTC