[Bug 26372] Report issues/events not related to a specific method call

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

--- Comment #41 from Boris Zbarsky <bzbarsky@mit.edu> ---
> A. Attribute: readonly MediaKeyStatuses keyStatuses;

Having this provide a copy (i.e. return a new object each time the getter is
called) is an API antipattern that we should not perpetuate.  So this option
presupposes that keyStatuses is a reference.  What it's a reference _to_ might
change, though not until the event loop spins.

> B. Synchronous method: MediaKeyStatuses getKeyStatuses();

This could be returning a copy or a reference.  There is an IDL annotation for
making it clear if it's a copy (i.e. a new object each time).

> C. Asynchronous method: Promise<MediaKeyStatuses> getKeyStatuses();

This, too, could be returning a copy or a reference, fwiw.  Both for the
Promise itself and for its fulfillment value, so there are actually 3 possible
behaviors here (can't really have a reference to a promise but a copy of the
fulfillment value).

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

Received on Thursday, 13 November 2014 00:36:55 UTC