Bug 113079 - Enable canvas.getContext("webgl") on Desktop Chrome
Summary: Enable canvas.getContext("webgl") on Desktop Chrome
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebGL (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Brandon Jones
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-22 10:12 PDT by Brandon Jones
Modified: 2013-03-25 12:08 PDT (History)
10 users (show)

See Also:


Attachments
Patch (2.96 KB, patch)
2013-03-22 10:36 PDT, Brandon Jones
no flags Details | Formatted Diff | Diff
Patch (5.17 KB, patch)
2013-03-22 15:25 PDT, Brandon Jones
no flags Details | Formatted Diff | Diff
Patch (5.16 KB, patch)
2013-03-22 16:03 PDT, Brandon Jones
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from gce-cq-03 (813.46 KB, application/zip)
2013-03-22 20:04 PDT, WebKit Review Bot
no flags Details
Patch (5.14 KB, patch)
2013-03-25 11:37 PDT, Brandon Jones
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Brandon Jones 2013-03-22 10:12:40 PDT
Chrome now passes the WebGL 1.0.1 conformance tests on desktops (not Android yet). As such it's eligible to start using the "webgl" context ID. 

Support for the "experimental-webgl" context ID should not be removed at this time to preserve compatibility with existing WebGL applications.
Comment 1 Brandon Jones 2013-03-22 10:36:50 PDT
Created attachment 194588 [details]
Patch
Comment 2 Dean Jackson 2013-03-22 12:57:26 PDT
It will probably be many many years before we can remove experimental-webgl. Also, since the other ports don't yet pass the testsuite, they should probably still only accept the experimental form.
Comment 3 Dean Jackson 2013-03-22 12:58:48 PDT
Comment on attachment 194588 [details]
Patch

This patch looks perfect! But, it should have a test case :)

Shame it needs to be skipped everywhere other than chromium :(
Comment 4 Dean Jackson 2013-03-22 13:00:29 PDT
Comment on attachment 194588 [details]
Patch

Even better, check in FAIL for the default results, and a PASS result for platform/chromium
Comment 5 Brandon Jones 2013-03-22 15:25:17 PDT
Created attachment 194642 [details]
Patch
Comment 6 Kenneth Russell 2013-03-22 15:36:34 PDT
Looks good to me. Dean can do the r+ honors.
Comment 7 Dean Jackson 2013-03-22 15:51:56 PDT
Comment on attachment 194642 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=194642&action=review

Ha! I'm pretty sure what's good enough for Ken is good enough for me.

> LayoutTests/fast/canvas/webgl/wegl-unprefixed-context-id.html:17
> +if (!gl) {
> +  testFailed("context does not exist");
> +} else {
> +  testPassed("context exists");
> +}

Single line conditional {} style warning.
Comment 8 Brandon Jones 2013-03-22 16:03:15 PDT
Created attachment 194650 [details]
Patch
Comment 9 WebKit Review Bot 2013-03-22 20:04:52 PDT
Comment on attachment 194650 [details]
Patch

Rejecting attachment 194650 [details] from commit-queue.

New failing tests:
platform/chromium/virtual/gpu/fast/canvas/webgl/wegl-unprefixed-context-id.html
fast/canvas/webgl/wegl-unprefixed-context-id.html
Full output: http://webkit-commit-queue.appspot.com/results/17132774
Comment 10 WebKit Review Bot 2013-03-22 20:04:58 PDT
Created attachment 194682 [details]
Archive of layout-test-results from gce-cq-03

The attached test failures were seen while running run-webkit-tests on the commit-queue.
Bot: gce-cq-03  Port: <class 'webkitpy.common.config.ports.ChromiumXVFBPort'>  Platform: Linux-3.3.8-gcg-201212281604-x86_64-with-GCEL-10.04-gcel_10.04
Comment 11 Brandon Jones 2013-03-25 11:37:14 PDT
Created attachment 194894 [details]
Patch
Comment 12 Kenneth Russell 2013-03-25 11:56:46 PDT
Comment on attachment 194894 [details]
Patch

To be clear: the difference compared to the previous patch is the fixing of a typo in the name of the test.
Comment 13 WebKit Review Bot 2013-03-25 12:08:27 PDT
Comment on attachment 194894 [details]
Patch

Clearing flags on attachment: 194894

Committed r146795: <http://trac.webkit.org/changeset/146795>
Comment 14 WebKit Review Bot 2013-03-25 12:08:32 PDT
All reviewed patches have been landed.  Closing bug.