[Bug 18590] New: Firing an event is sometimes missing a target and "queue a task"

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

           Summary: Firing an event is sometimes missing a target and
                    "queue a task"
           Product: HTML WG
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Media Source Extensions
        AssignedTo: adrianba@microsoft.com
        ReportedBy: philipj@opera.com
         QAContact: public-html-bugzilla@w3.org
                CC: mike@w3.org, public-html-media@w3.org


In HTML, the phrasing is "fire a simple event named X at Y", sometimes preceded
by "queue a task to".

There are several instances where the target or "queue a task" is missing in
MSE:

http://dvcs.w3.org/hg/html-media/raw-file/tip/media-source/media-source.html#mediasource-attach

"Fire a simple event named sourceopen." doesn't name the target of the event

http://dvcs.w3.org/hg/html-media/raw-file/tip/media-source/media-source.html#mediasource-detach

"fire an emptied event" is inconsistent in phrasing and also missing the
target.

http://dvcs.w3.org/hg/html-media/raw-file/tip/media-source/media-source.html#dom-duration

"Update HTMLMediaElement.duration to the new duration and schedule the
appropriate durationchange event to fire" is using "schedule" instead of "queue
a task", but presumably means the same thing? (Note also that invoking "When
the length of the media resource changes to a known value" in HTML by phrasing
this differently would remove the need to mention the event at all.)

http://dvcs.w3.org/hg/html-media/raw-file/tip/media-source/media-source.html#dom-addsourcebuffer

"Add the new object to sourceBuffers and fire a addsourcebuffer on that
object." This is the really problematic instance, the one I filed this bug for.
Since this is inside addSourceBuffer, failing to say "queue a task" means that
the event should be fired synchronously before the method returns. This is
almost certainly not intended.

This is not a full list, search for "event" for more.

-- 
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 Thursday, 16 August 2012 12:54:57 UTC