[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Public WebGL] conflict between WebGL and WebIDL specs with getContextAttributes



I believe that Boris is already having that conversation with Cameron;
I'll let him reply here.

Benoit

On 12-11-28 12:27 PM, Kenneth Russell wrote:
> Hi Benoit,
>
> Thanks for catching this issue. Could you initiate a conversation with
> Cameron McCormack on this topic on the relevant mailing list?
>
> Thanks,
>
> -Ken
>
>
> On Wed, Nov 28, 2012 at 8:43 AM, Benoit Jacob <bjacob@mozilla.com> wrote:
>> Hi,
>>
>> I believe that this unfortunately blocks snapshotting the spec and test
>> suite. It's an offshoot of the recently discussed issue about what
>> getContextAttributes should return when the context is lost.
>>
>> The WebGL spec has this IDL for getContextAttributes:
>>
>> https://www.khronos.org/registry/webgl/specs/latest/#5.14
>>
>> [WebGLHandlesContextLoss] WebGLContextAttributes? getContextAttributes();
>>
>>
>> And WebGLContextAttributes is defined to be a dictionary type:
>>
>> https://www.khronos.org/registry/webgl/specs/latest/#5.2
>>
>> dictionary WebGLContextAttributes
>>
>>
>> But the WebIDL spec says that dictionaries cannot be nullable:
>>
>> http://dev.w3.org/2006/webapi/WebIDL/#idl-nullable-type
>>
>> "The inner type MUST NOT be any, a dictionary type, [...]"
>>
>>
>> I believe that we should wait until this is resolved before we snapshot the
>> spec or the conformance tests. One possible solution would be if WebIDL
>> people agreed to make this restriction only apply to function parameters and
>> not to return values.
>>
>> Cheers,
>> Benoit


-----------------------------------------------------------
You are currently subscribed to public_webgl@khronos.org.
To unsubscribe, send an email to majordomo@khronos.org with
the following command in the body of your email:
unsubscribe public_webgl
-----------------------------------------------------------