[prev in list] [next in list] [prev in thread] [next in thread] 

List:       whatwg
Subject:    Re: [whatwg] Challenging canvas.supportsContext
From:       "Simon Pieters" <simonp () opera ! com>
Date:       2013-06-25 7:54:57
Message-ID: op.wy75lvxnidj3kv () simons-macbook-pro ! local
[Download RAW message or body]

On Mon, 24 Jun 2013 23:31:59 +0200, Dean Jackson <dino@apple.com> wrote:

> Also, the presence of window.WebGLRenderingContext doesn't necessarily  
> indicate
> that WebGL is supported. On iOS for example, that object is available in  
> Safari
> but calling getContext('webgl') fails. The supportsContext method would  
> allow
> authors to easily detect this case.

Since supportsContext is not supported in Safari on iOS, authors cannot  
use it to detect this case at all.

We could say in the spec that if a UA knows it cannot create a specific  
context, it must hide the corresponding interface object. This does  
basically the same thing as supportsContext, except that it would also  
work for pages that already do feature detection based on the interface  
object.

-- 
Simon Pieters
Opera Software
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic