W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2013

Re: [whatwg] Challenging canvas.supportsContext

From: Glenn Maynard <glenn@zewt.org>
Date: Thu, 20 Jun 2013 20:40:28 -0500
Message-ID: <CABirCh_WgzfapYk2dRTMUW869mKup+0eR9jCg_AkAr3s1XyTtA@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: whatwg <whatwg@lists.whatwg.org>
On Thu, Jun 20, 2013 at 10:22 AM, Boris Zbarsky <bzbarsky@mit.edu> wrote:

> On 6/19/13 5:27 PM, Paul Irish wrote:
>> I agree that supportsContext is only useful if it's more accurate that
>> !!window.WebGLRenderingContext.
> So that's an interesting question.  Should UAs simply not have
> window.WebGLRenderingContext in situations in which supportsContext would
> return false?

I've suggested that in the past, and the response was that it's harder to
do (don't recall in which engine, probably WebKit).  It would seem pretty
weird if the interface appears and disappears from window over the life of
the page, as WebGL support comes and goes (eg. the driver blacklist or
system graphics drivers are updated).

Also, supportsContext() takes arguments, so you can find out if context
creation would fail with a particular set of options.  You can't do that by
hiding or displaying an interface.

Glenn Maynard
Received on Friday, 21 June 2013 01:40:53 UTC

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