W3C home > Mailing lists > Public > public-html-media@w3.org > January 2015

[Bug 27790] New: [MSE] Some of the attributes returning TimeRanges objects seem to return a new object each time the getter is invoked

From: <bugzilla@jessica.w3.org>
Date: Fri, 09 Jan 2015 02:47:49 +0000
To: public-html-media@w3.org
Message-ID: <bug-27790-5436@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=27790

            Bug ID: 27790
           Summary: [MSE] Some of the attributes returning TimeRanges
                    objects seem to return a new object each time the
                    getter is invoked
           Product: HTML WG
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Media Source Extensions
          Assignee: adrianba@microsoft.com
          Reporter: bzbarsky@mit.edu
        QA Contact: public-html-bugzilla@w3.org
                CC: d@domenic.me, mike@w3.org, public-html-media@w3.org

For example, the definition of SourceBuffer.buffered says: "Let intersection
ranges equal a TimeRange object containing a single range from 0 to highest end
time."

This seems to create new object each time someone does .buffered.

This is a pretty bizarre behavior.  If we actually want a new object each time,
this should be a method, not an attribute.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Received on Friday, 9 January 2015 02:47:51 UTC

This archive was generated by hypermail 2.3.1 : Friday, 9 January 2015 02:47:52 UTC