W3C home > Mailing lists > Public > whatwg@whatwg.org > February 2009

[whatwg] HAVE_ENOUGH_DATA firing the "play" event unconditionally?

From: Ian Hickson <ian@hixie.ch>
Date: Sun, 22 Feb 2009 09:28:38 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0902220928330.6209@hixie.dreamhostps.com>
On Mon, 5 Jan 2009, Robert O'Callahan wrote:
>
> The spec says:
> 
> If the new ready state is HAVE_ENOUGH_DATA The user agent must queue a 
> task to fire a simple event called canplay,
> 
> 
> Should it only fire "canplay" if the previous ready state was 
> HAVE_CURRENT_DATA or less? Otherwise, going from HAVE_CURRENT_DATA to 
> HAVE_FUTURE_DATA to HAVE_ENOUGH_DATA would fire "canplay" twice.

Fixed.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Sunday, 22 February 2009 01:28:38 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 30 January 2013 18:47:48 GMT