WKSI exposes the system policy for WebGL. Query that when creating a context, and let the client know about the state.
<rdar://problem/15790542>
Created attachment 225839 [details] Patch
This patch won't compile until the WKSI bits land, but it is ready for review.
Attachment 225839 [details] did not pass style-queue: ERROR: Source/WebKit2/UIProcess/API/C/WKPage.cpp:989: This { should be at the end of the previous line [whitespace/braces] [4] Total errors found: 1 in 14 files If any of these errors are false positives, please file a bug against check-webkit-style.
This looks fine to me (I was all set to reject for missing iOS, but of course that doesn't apply here!). I think you need an official WK2 reviewer, which I am not. But the OGL and WKSI side of things look great to me.
Created attachment 225893 [details] Patch
This also won't compile until WKSI is in, and will complain about style... again.
Attachment 225893 [details] did not pass style-queue: ERROR: Source/WebKit2/UIProcess/API/C/WKPage.cpp:989: This { should be at the end of the previous line [whitespace/braces] [4] Total errors found: 1 in 14 files If any of these errors are false positives, please file a bug against check-webkit-style.
Created attachment 225927 [details] Patch
Might build now :)
Attachment 225927 [details] did not pass style-queue: ERROR: Source/WebKit2/UIProcess/API/C/WKPage.cpp:989: This { should be at the end of the previous line [whitespace/braces] [4] Total errors found: 1 in 13 files If any of these errors are false positives, please file a bug against check-webkit-style.
Committed r165148: <http://trac.webkit.org/changeset/165148>