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

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

Jean-Yves Avenard <jyavenard@mozilla.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jyavenard@mozilla.com
              Flags|                            |needinfo?(acolwell@google.c
                   |                            |om)

--- Comment #14 from Jean-Yves Avenard <jyavenard@mozilla.com> ---
While this bug clearly describe that we should only return the same object
(same reference) only if it hasn't changed.

And so is the summary:
"Bug 27790 - Make .buffered attributes return the same object if nothing has
changed."

is very clear.

I find the actual description of the buffered attribute however to not be
reflecting this.
"5.        If intersection ranges does not contain the exact same range
information as the current value of this attribute, then update the current
value of this attribute to intersection ranges.
6.        Return the current value of this attribute.
"

I read this as always returning the same TimeRange object, and updating the
object. Making it effectively a "live" object as described in comment 10.

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

Received on Thursday, 2 April 2015 00:44:24 UTC