[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

Aaron Colwell <acolwell@google.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |---
              Flags|needinfo?(acolwell@google.c |needinfo?(jyavenard@mozilla
                   |om)                         |.com)

--- Comment #15 from Aaron Colwell <acolwell@google.com> ---
(In reply to Jean-Yves Avenard from comment #14)
> 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.

That was not the intent. Please suggest some alternate text that would make
step 5 clearer to you.

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

Received on Thursday, 2 April 2015 01:13:19 UTC