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

[whatwg] drawImage with non-existent images

From: Anne van Kesteren <annevk@opera.com>
Date: Mon, 18 Feb 2008 11:35:18 +0100
Message-ID: <op.t6puc4rd64w2qv@annevk-t60.oslo.opera.com>
On Mon, 18 Feb 2008 03:24:45 +0100, Jeff Walden <jwalden+whatwg at MIT.EDU>  
>> If the image argument is an HTMLImageElement object whose complete  
>> attribute is false, then the implementation must raise an  
>> INVALID_STATE_ERR exception.
> This is all well and good in the case where the image being drawn has  
> the same origin as the document where the canvas resides, but if the two  
> have different origins, this makes it possible to determine the  
> existence of an image on a foreign server.

This is already possible using the error and load events and the complete  
attribute on <img>. There's no new risk here.

Anne van Kesteren
Received on Monday, 18 February 2008 02:35:18 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:00 UTC