[Bug 27649] [MSE] Confused when set MediaSource.duration to NaN throwing an InvalidAccessError exception

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

Aaron Colwell <acolwell@google.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |acolwell@google.com

--- Comment #1 from Aaron Colwell <acolwell@google.com> ---
(In reply to Qin Jiajia from comment #0)
> In https://w3c.github.io/media-source/#widl-MediaSource-duration, on setting
> step 1: If the value being set is negative or NaN then throw an
> InvalidAccessError exception. However, in
> https://w3c.github.io/media-source/#mediasource-detach, step 2: Set the
> duration attribute to NaN. The two steps are conflicting. I think when set
> duration value to NaN, it shouldn't throw exception.

The former is called from JavaScript. The latter is a step that is executed
internal to the UA so the setter algorithm isn't run. 

This language is similar to how other attribute values are updated so I don't
really understand why there is confusion. For example, the latter doesn't say
to "run the duration setter algorithm" so I don't think the reader should
assume that the exception checking and such in that algorithm should apply.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Thursday, 18 December 2014 18:23:48 UTC