Bug 40496 - fast/canvas/webgl/get-active-test.html failed in Chrome Mac
Summary: fast/canvas/webgl/get-active-test.html failed in Chrome Mac
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebGL (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Zhenyao Mo
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-11 13:56 PDT by Zhenyao Mo
Modified: 2010-06-19 01:31 PDT (History)
6 users (show)

See Also:


Attachments
patch (5.79 KB, patch)
2010-06-15 17:00 PDT, Zhenyao Mo
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Zhenyao Mo 2010-06-11 13:56:47 PDT
--- /b/slave/webkit-rel-mac-webkit-org/build/src/webkit/Release/../../../layout-test-results/fast/canvas/webgl/get-active-test-expected.txt 
+++ /b/slave/webkit-rel-mac-webkit-org/build/src/webkit/Release/../../../layout-test-results/fast/canvas/webgl/get-active-test-actual.txt 
@@ -25,13 +25,13 @@
 PASS info[ii].type is expected[ii].type
 PASS info[ii].size is expected[ii].size
 PASS info2[ii] is non-null.
-PASS info2[ii] is non-null.
-PASS info2[ii].name is expected2[ii].name
-PASS info2[ii].type is expected2[ii].type
-PASS info2[ii].size is expected2[ii].size
-PASS info2[ii].name is expected2[ii].name
-PASS info2[ii].type is expected2[ii].type
-PASS info2[ii].size is expected2[ii].size
+FAIL info2[ii] should be non-null. Was null
+FAIL info2[ii].name should be ival. Threw exception TypeError: Cannot read property 'name' of null
+FAIL info2[ii].type should be 5124. Threw exception TypeError: Cannot read property 'type' of null
+FAIL info2[ii].size should be 1. Threw exception TypeError: Cannot read property 'size' of null
+FAIL info2[ii].name should be ival2[0]. Was u_modelViewProjMatrix.
+FAIL info2[ii].type should be 5124. Was 35676.
+FAIL info2[ii].size should be 2. Was 1.
 PASS context.getActiveAttrib(program, 2) is null
 PASS context.getError() is context.INVALID_VALUE
 PASS context.getActiveAttrib(program, -1) is null
Comment 1 Zhenyao Mo 2010-06-11 13:57:51 PDT
Will roll out the failing part first, then investigate.
Comment 2 Zhenyao Mo 2010-06-11 14:35:33 PDT
Manually rolled out the failing part of the test: http://trac.webkit.org/changeset/61038

Will add it back once this bug is fixed.
Comment 3 Zhenyao Mo 2010-06-15 17:00:33 PDT
Created attachment 58838 [details]
patch

Please review this first.  Commit will wait until command-buffer port in Chrome is fixed.
Comment 4 Kenneth Russell 2010-06-15 17:49:18 PDT
Comment on attachment 58838 [details]
patch

Argh. Thanks for fixing this.

Could you please fix the same bug in Chromium in src/chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc ? Either that, or we should refactor the makeContextCurrent() calls into the GraphicsContext3DInternal class in WebKit/chromium/src/GraphicsContext3D.cpp so that ports don't need to remember to do this.
Comment 5 Zhenyao Mo 2010-06-15 17:56:00 PDT
(In reply to comment #4)
> (From update of attachment 58838 [details])
> Argh. Thanks for fixing this.
> 
> Could you please fix the same bug in Chromium in src/chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc ? Either that, or we should refactor the makeContextCurrent() calls into the GraphicsContext3DInternal class in WebKit/chromium/src/GraphicsContext3D.cpp so that ports don't need to remember to do this.

Yes, I'll fix the command_buffer port.
Comment 6 Kenneth Russell 2010-06-15 17:59:40 PDT
(In reply to comment #5)
> (In reply to comment #4)
> > (From update of attachment 58838 [details] [details])
> > Argh. Thanks for fixing this.
> > 
> > Could you please fix the same bug in Chromium in src/chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc ? Either that, or we should refactor the makeContextCurrent() calls into the GraphicsContext3DInternal class in WebKit/chromium/src/GraphicsContext3D.cpp so that ports don't need to remember to do this.
> 
> Yes, I'll fix the command_buffer port.

OK, thanks. This patch looks good, but we should consider refactoring where the makeCurrent() calls occur.
Comment 7 Dimitri Glazkov (Google) 2010-06-16 10:08:05 PDT
Comment on attachment 58838 [details]
patch

ok.
Comment 8 WebKit Commit Bot 2010-06-19 01:31:32 PDT
Comment on attachment 58838 [details]
patch

Clearing flags on attachment: 58838

Committed r61471: <http://trac.webkit.org/changeset/61471>
Comment 9 WebKit Commit Bot 2010-06-19 01:31:37 PDT
All reviewed patches have been landed.  Closing bug.