Bug 166834 - [WebIDL] Remove most of the custom bindings for the WebGL code
Summary: [WebIDL] Remove most of the custom bindings for the WebGL code
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Sam Weinig
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-08 18:22 PST by Sam Weinig
Modified: 2017-01-13 08:51 PST (History)
18 users (show)

See Also:


Attachments
Patch (81.32 KB, patch)
2017-01-08 18:33 PST, Sam Weinig
no flags Details | Formatted Diff | Diff
Patch (83.66 KB, patch)
2017-01-08 19:08 PST, Sam Weinig
no flags Details | Formatted Diff | Diff
Patch (84.73 KB, patch)
2017-01-08 19:15 PST, Sam Weinig
no flags Details | Formatted Diff | Diff
Patch (84.83 KB, patch)
2017-01-08 19:26 PST, Sam Weinig
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews101 for mac-elcapitan (944.44 KB, application/zip)
2017-01-08 20:37 PST, Build Bot
no flags Details
Archive of layout-test-results from ews105 for mac-elcapitan-wk2 (974.14 KB, application/zip)
2017-01-08 20:39 PST, Build Bot
no flags Details
Archive of layout-test-results from ews117 for mac-elcapitan (1.74 MB, application/zip)
2017-01-08 20:45 PST, Build Bot
no flags Details
Patch (88.01 KB, patch)
2017-01-08 21:36 PST, Sam Weinig
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews100 for mac-elcapitan (971.39 KB, application/zip)
2017-01-08 22:49 PST, Build Bot
no flags Details
Archive of layout-test-results from ews107 for mac-elcapitan-wk2 (995.98 KB, application/zip)
2017-01-08 22:50 PST, Build Bot
no flags Details
Archive of layout-test-results from ews113 for mac-elcapitan (1.70 MB, application/zip)
2017-01-08 23:00 PST, Build Bot
no flags Details
Patch (106.45 KB, patch)
2017-01-10 10:52 PST, Sam Weinig
no flags Details | Formatted Diff | Diff
Patch (107.67 KB, patch)
2017-01-10 11:18 PST, Sam Weinig
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews103 for mac-elcapitan (974.52 KB, application/zip)
2017-01-10 12:29 PST, Build Bot
no flags Details
Archive of layout-test-results from ews117 for mac-elcapitan (1.71 MB, application/zip)
2017-01-10 12:36 PST, Build Bot
no flags Details
Archive of layout-test-results from ews105 for mac-elcapitan-wk2 (988.11 KB, application/zip)
2017-01-10 12:37 PST, Build Bot
no flags Details
Archive of layout-test-results from ews121 for ios-simulator-wk2 (9.42 MB, application/zip)
2017-01-10 12:51 PST, Build Bot
no flags Details
Patch (107.75 KB, patch)
2017-01-10 13:17 PST, Sam Weinig
no flags Details | Formatted Diff | Diff
Patch (107.82 KB, patch)
2017-01-10 14:21 PST, Sam Weinig
no flags Details | Formatted Diff | Diff
Patch (69.33 KB, patch)
2017-01-13 08:51 PST, Sam Weinig
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sam Weinig 2017-01-08 18:22:13 PST
[WebIDL] Remove most of the custom bindings for the WebGL code
Comment 1 Sam Weinig 2017-01-08 18:33:59 PST
Created attachment 298324 [details]
Patch
Comment 2 Sam Weinig 2017-01-08 18:35:42 PST
Only thing left is getExtension in WebGLRenderingContextBase.idl, which, with a little refactoring, we can use the new OverrideIDLType extended attribute to vanquish.
Comment 3 Sam Weinig 2017-01-08 19:08:32 PST
Created attachment 298326 [details]
Patch
Comment 4 Sam Weinig 2017-01-08 19:15:57 PST
Created attachment 298327 [details]
Patch
Comment 5 Sam Weinig 2017-01-08 19:26:12 PST
Created attachment 298328 [details]
Patch
Comment 6 Build Bot 2017-01-08 20:37:40 PST
Comment on attachment 298328 [details]
Patch

Attachment 298328 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.webkit.org/results/2856449

New failing tests:
fast/canvas/webgl/context-lost.html
webgl/1.0.2/conformance/state/gl-object-get-calls.html
fast/canvas/webgl/gl-object-get-calls.html
webgl/1.0.2/conformance/context/context-lost.html
fast/canvas/webgl/uniform-array-length-overflow.html
Comment 7 Build Bot 2017-01-08 20:37:45 PST
Created attachment 298329 [details]
Archive of layout-test-results from ews101 for mac-elcapitan

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews101  Port: mac-elcapitan  Platform: Mac OS X 10.11.6
Comment 8 Build Bot 2017-01-08 20:39:09 PST
Comment on attachment 298328 [details]
Patch

Attachment 298328 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.webkit.org/results/2856453

New failing tests:
fast/canvas/webgl/context-lost.html
webgl/1.0.2/conformance/state/gl-object-get-calls.html
fast/canvas/webgl/gl-object-get-calls.html
webgl/1.0.2/conformance/context/context-lost.html
fast/canvas/webgl/uniform-array-length-overflow.html
Comment 9 Build Bot 2017-01-08 20:39:14 PST
Created attachment 298330 [details]
Archive of layout-test-results from ews105 for mac-elcapitan-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews105  Port: mac-elcapitan-wk2  Platform: Mac OS X 10.11.6
Comment 10 Build Bot 2017-01-08 20:45:04 PST
Comment on attachment 298328 [details]
Patch

Attachment 298328 [details] did not pass mac-debug-ews (mac):
Output: http://webkit-queues.webkit.org/results/2856455

New failing tests:
fast/canvas/webgl/context-lost.html
webgl/1.0.2/conformance/state/gl-object-get-calls.html
fast/canvas/webgl/gl-object-get-calls.html
webgl/1.0.2/conformance/context/context-lost.html
fast/canvas/webgl/uniform-array-length-overflow.html
Comment 11 Build Bot 2017-01-08 20:45:08 PST
Created attachment 298332 [details]
Archive of layout-test-results from ews117 for mac-elcapitan

The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews117  Port: mac-elcapitan  Platform: Mac OS X 10.11.6
Comment 12 Sam Weinig 2017-01-08 21:36:36 PST
Created attachment 298333 [details]
Patch
Comment 13 Sam Weinig 2017-01-08 21:47:54 PST
The timeout of uniform-array-length-overflow.html is interesting. It illustrates that our IDLSequence conversion code is just too slow. 

The custom code was doing it's conversion in toNumberVector, which got the length, and then did a get() for each integer between 0 and length. The generic IDL conversion code that I switched it to uses JSC's forEachInIterable(), which may just be too slow. I will look into speeding that up and/or special casing js arrays.
Comment 14 Build Bot 2017-01-08 22:49:13 PST
Comment on attachment 298333 [details]
Patch

Attachment 298333 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.webkit.org/results/2856830

New failing tests:
fast/canvas/webgl/gl-object-get-calls.html
fast/canvas/webgl/uniform-array-length-overflow.html
Comment 15 Build Bot 2017-01-08 22:49:18 PST
Created attachment 298334 [details]
Archive of layout-test-results from ews100 for mac-elcapitan

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews100  Port: mac-elcapitan  Platform: Mac OS X 10.11.6
Comment 16 Build Bot 2017-01-08 22:50:09 PST
Comment on attachment 298333 [details]
Patch

Attachment 298333 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.webkit.org/results/2856828

New failing tests:
fast/canvas/webgl/gl-object-get-calls.html
fast/canvas/webgl/uniform-array-length-overflow.html
Comment 17 Build Bot 2017-01-08 22:50:13 PST
Created attachment 298335 [details]
Archive of layout-test-results from ews107 for mac-elcapitan-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews107  Port: mac-elcapitan-wk2  Platform: Mac OS X 10.11.6
Comment 18 Build Bot 2017-01-08 23:00:21 PST
Comment on attachment 298333 [details]
Patch

Attachment 298333 [details] did not pass mac-debug-ews (mac):
Output: http://webkit-queues.webkit.org/results/2856847

New failing tests:
fast/canvas/webgl/gl-object-get-calls.html
fast/canvas/webgl/uniform-array-length-overflow.html
Comment 19 Build Bot 2017-01-08 23:00:25 PST
Created attachment 298336 [details]
Archive of layout-test-results from ews113 for mac-elcapitan

The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews113  Port: mac-elcapitan  Platform: Mac OS X 10.11.6
Comment 20 Sam Weinig 2017-01-10 10:52:28 PST
Created attachment 298483 [details]
Patch
Comment 21 Sam Weinig 2017-01-10 11:18:08 PST
Created attachment 298487 [details]
Patch
Comment 22 WebKit Commit Bot 2017-01-10 11:20:32 PST
Attachment 298487 [details] did not pass style-queue:


ERROR: Source/WebCore/ForwardingHeaders/runtime/JSGlobalObjectInlines.h:0:  No copyright message found.  You should have a line: "Copyright [year] <Copyright Owner>"  [legal/copyright] [5]
Total errors found: 1 in 23 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 23 Saam Barati 2017-01-10 11:31:04 PST
Comment on attachment 298487 [details]
Patch

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

> Source/WebCore/bindings/js/JSDOMConvert.h:1039
> +            JSC::JSObject* object = JSC::asObject(value);

This iteration code LGTM

> Source/WebCore/bindings/js/JSDOMConvert.h:1051
> +                // FIXME: Is the right exception to throw?

Or maybe OOM?
Comment 24 Build Bot 2017-01-10 12:29:26 PST
Comment on attachment 298487 [details]
Patch

Attachment 298487 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.webkit.org/results/2865412

New failing tests:
fast/events/message-port-multi.html
Comment 25 Build Bot 2017-01-10 12:29:32 PST
Created attachment 298497 [details]
Archive of layout-test-results from ews103 for mac-elcapitan

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews103  Port: mac-elcapitan  Platform: Mac OS X 10.11.6
Comment 26 Build Bot 2017-01-10 12:36:35 PST
Comment on attachment 298487 [details]
Patch

Attachment 298487 [details] did not pass mac-debug-ews (mac):
Output: http://webkit-queues.webkit.org/results/2865413

New failing tests:
fast/events/message-port-multi.html
Comment 27 Build Bot 2017-01-10 12:36:41 PST
Created attachment 298498 [details]
Archive of layout-test-results from ews117 for mac-elcapitan

The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews117  Port: mac-elcapitan  Platform: Mac OS X 10.11.6
Comment 28 Build Bot 2017-01-10 12:37:01 PST
Comment on attachment 298487 [details]
Patch

Attachment 298487 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.webkit.org/results/2865425

New failing tests:
fast/events/message-port-multi.html
Comment 29 Build Bot 2017-01-10 12:37:09 PST
Created attachment 298499 [details]
Archive of layout-test-results from ews105 for mac-elcapitan-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews105  Port: mac-elcapitan-wk2  Platform: Mac OS X 10.11.6
Comment 30 Build Bot 2017-01-10 12:51:34 PST
Comment on attachment 298487 [details]
Patch

Attachment 298487 [details] did not pass ios-sim-ews (ios-simulator-wk2):
Output: http://webkit-queues.webkit.org/results/2865447

New failing tests:
fast/events/message-port-multi.html
Comment 31 Build Bot 2017-01-10 12:51:40 PST
Created attachment 298504 [details]
Archive of layout-test-results from ews121 for ios-simulator-wk2

The attached test failures were seen while running run-webkit-tests on the ios-sim-ews.
Bot: ews121  Port: ios-simulator-wk2  Platform: Mac OS X 10.11.6
Comment 32 Sam Weinig 2017-01-10 13:17:51 PST
Created attachment 298506 [details]
Patch
Comment 33 WebKit Commit Bot 2017-01-10 13:18:57 PST
Attachment 298506 [details] did not pass style-queue:


ERROR: Source/WebCore/ForwardingHeaders/runtime/JSGlobalObjectInlines.h:0:  No copyright message found.  You should have a line: "Copyright [year] <Copyright Owner>"  [legal/copyright] [5]
Total errors found: 1 in 23 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 34 Sam Weinig 2017-01-10 14:21:51 PST
Created attachment 298513 [details]
Patch
Comment 35 WebKit Commit Bot 2017-01-10 14:24:14 PST
Attachment 298513 [details] did not pass style-queue:


ERROR: Source/WebCore/ForwardingHeaders/runtime/JSGlobalObjectInlines.h:0:  No copyright message found.  You should have a line: "Copyright [year] <Copyright Owner>"  [legal/copyright] [5]
Total errors found: 1 in 23 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 36 Sam Weinig 2017-01-10 15:26:17 PST
Finally ready to be reviewed.
Comment 37 Alex Christensen 2017-01-10 16:01:40 PST
Comment on attachment 298513 [details]
Patch

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

> Source/WebCore/Modules/indexeddb/IDBKeyRange.idl:31
> +    [OverrideIDLType=IDLIDBKey] readonly attribute any lower;

This isn't really related to removing WebGL bindings, is it?

> Source/WebCore/bindings/scripts/CodeGeneratorJS.pm:5330
> +    # FIXME: We need a more robost way to specify this requirement so as not

robust

> Source/WebCore/bindings/scripts/CodeGeneratorJS.pm:5362
> +    # FIXME: We need a more robost way to specify this requirement so as not

robust
Comment 38 WebKit Commit Bot 2017-01-10 17:03:37 PST
Comment on attachment 298513 [details]
Patch

Clearing flags on attachment: 298513

Committed r210567: <http://trac.webkit.org/changeset/210567>
Comment 39 WebKit Commit Bot 2017-01-10 17:03:46 PST
All reviewed patches have been landed.  Closing bug.
Comment 40 Sam Weinig 2017-01-13 08:50:57 PST
Reopening to attach new patch.
Comment 41 Sam Weinig 2017-01-13 08:51:01 PST
Created attachment 298760 [details]
Patch
Comment 42 Sam Weinig 2017-01-13 08:51:53 PST
Wrong bug.