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

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

--- Comment #37 from David Dorwin <ddorwin@google.com> ---
(In reply to Joe Steele from comment #36)
> However -- am I correct in assuming that the application needs to
> periodically poll this structure to determine if key status has changed? Or
> can this be monitored with Object.observe()?

The keyschange event would still exist. Applications would check the new member
in response to this event (or whenever they wish).

The MediaKeyStatuses object could be provided as part of the keyschange event,
but that would require defining a custom event type (rather than just using a
simple Event). I think Event is generally preferred.

If we used a member attribute like the following from comment #35:
  readonly MediaKeyStatuses keyStatuses;
it would theoretically be possible to (in the future) use Object.observe on the
member as long we we did not specify that accesses to the member return a copy.

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

Received on Wednesday, 12 November 2014 22:52:38 UTC