[whatwg] Canvas API: What should happen if non-finite floats are used

On Wed, Sep 8, 2010 at 9:02 PM, Boris Zbarsky <bzbarsky at mit.edu> wrote:
> On 9/8/10 2:22 PM, Oliver Hunt wrote:
>> One old case that failed in the presence of exceptions was the old canvex
>> demo at http://canvex.lazyilluminati.com/83/play.xhtml - this was one of the
>> first cases i saw after trying to make webkit's implementation conform to
>> the (older) spec by throwing exceptions on non-finite values we had many
>> canvas using sites break so had to stop throwing.
>
> OK. ?I can believe that this was the case at the time, but it certainly
> wasn't due to Firefox not throwing. ?I can see how given people's penchant
> to create browser-specific content changing the webkit behavior could cause
> issues with sites that were targeting only webkit and didn't bother testing
> in anything else.

Canvex was originally written for and tested in Firefox 1.5/2.0 and
Opera 9. It wasn't tested in Safari (due to lack of Mac).

I think the relevant bug is
https://bugs.webkit.org/show_bug.cgi?id=13537 which was actually
caused by passing 0 sizes to drawImage, not by non-finite values.

-- 
Philip Taylor
excors at gmail.com

Received on Wednesday, 8 September 2010 16:04:33 UTC