RESOLVED FIXED92181
Replace int with long in test IDL files
https://bugs.webkit.org/show_bug.cgi?id=92181
Summary Replace int with long in test IDL files
Kentaro Hara
Reported 2012-07-24 17:25:53 PDT
int is not a valid type in WebIDL. It should be long. We should replace int with long in bindings/scripts/test/*.idl. This is a follow-up patch for r123550.
Attachments
Patch (67.30 KB, patch)
2012-07-24 17:27 PDT, Kentaro Hara
webkit.review.bot: commit-queue-
Archive of layout-test-results from gce-cr-linux-01 (1.02 MB, application/zip)
2012-07-24 18:31 PDT, WebKit Review Bot
no flags
Archive of layout-test-results from gce-cq-03 (1013.29 KB, application/zip)
2012-07-24 18:51 PDT, WebKit Review Bot
no flags
patch for landing (67.29 KB, patch)
2012-07-25 02:24 PDT, Kentaro Hara
no flags
Kentaro Hara
Comment 1 2012-07-24 17:27:53 PDT
WebKit Review Bot
Comment 2 2012-07-24 18:30:43 PDT
Comment on attachment 154189 [details] Patch Attachment 154189 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/13347052 New failing tests: http/tests/security/script-crossorigin-loads-correctly.html fast/loader/loadInProgress.html fast/inline/positionedLifetime.html fast/loader/unload-form-post-about-blank.html
WebKit Review Bot
Comment 3 2012-07-24 18:31:06 PDT
Created attachment 154210 [details] Archive of layout-test-results from gce-cr-linux-01 The attached test failures were seen while running run-webkit-tests on the chromium-ews. Bot: gce-cr-linux-01 Port: <class 'webkitpy.common.config.ports.ChromiumXVFBPort'> Platform: Linux-2.6.39-gcg-201203291735-x86_64-with-Ubuntu-10.04-lucid
WebKit Review Bot
Comment 4 2012-07-24 18:51:51 PDT
Comment on attachment 154189 [details] Patch Rejecting attachment 154189 [details] from commit-queue. New failing tests: http/tests/security/script-crossorigin-loads-correctly.html fast/loader/loadInProgress.html fast/inline/positionedLifetime.html fast/loader/unload-form-post-about-blank.html Full output: http://queues.webkit.org/results/13343058
WebKit Review Bot
Comment 5 2012-07-24 18:51:56 PDT
Created attachment 154216 [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-2.6.39-gcg-201203291735-x86_64-with-Ubuntu-10.04-lucid
Adam Barth
Comment 6 2012-07-24 19:20:09 PDT
That makes no sense!
Kentaro Hara
Comment 7 2012-07-24 19:21:11 PDT
Yeah, let me cq+ it later again.
Kentaro Hara
Comment 8 2012-07-25 02:24:19 PDT
Created attachment 154302 [details] patch for landing
WebKit Review Bot
Comment 9 2012-07-25 03:35:49 PDT
Comment on attachment 154302 [details] patch for landing Clearing flags on attachment: 154302 Committed r123600: <http://trac.webkit.org/changeset/123600>
Vineet Chaudhary (vineetc)
Comment 10 2012-07-25 06:18:53 PDT
(In reply to comment #0) > int is not a valid type in WebIDL. It should be long. We should replace int with long in bindings/scripts/test/*.idl. > > This is a follow-up patch for r123550. haraken, sorry if I am getting this wrong but does this mean we should not use int WebCore/*.idl files? like one is .../dom/Touch.idl: readonly attribute int webkitRadiusX;
Kentaro Hara
Comment 11 2012-07-25 07:34:48 PDT
(In reply to comment #10) > haraken, sorry if I am getting this wrong but does this mean we should not use int WebCore/*.idl files? > like one is > .../dom/Touch.idl: readonly attribute int webkitRadiusX; Per the spec, int is not allowed. But we need to care about compatibility when we replace the real IDL files. (Sorry I've not yet looked into them in detail.)
Adam Barth
Comment 12 2012-07-25 09:00:12 PDT
(In reply to comment #11) > (In reply to comment #10) > > haraken, sorry if I am getting this wrong but does this mean we should not use int WebCore/*.idl files? > > like one is > > .../dom/Touch.idl: readonly attribute int webkitRadiusX; > > Per the spec, int is not allowed. But we need to care about compatibility when we replace the real IDL files. (Sorry I've not yet looked into them in detail.) There shouldn't be any compat trouble since they're both JavaScript numbers.
Vineet Chaudhary (vineetc)
Comment 13 2012-07-25 09:28:00 PDT
(In reply to comment #12) > There shouldn't be any compat trouble since they're both JavaScript numbers. Thanks haraken/abarth for clarifying currently there are below listed idls with int attributes ./dom/Touch.idl: readonly attribute int webkitRadiusX; ./dom/Touch.idl: readonly attribute int webkitRadiusY; ./dom/WebKitNamedFlow.idl: readonly attribute int firstEmptyRegionIndex; ./html/canvas/WebGLActiveInfo.idl: readonly attribute int size; ./html/canvas/WebGLActiveInfo.idl: readonly attribute unsigned int type; ./html/canvas/WebGLShaderPrecisionFormat.idl: readonly attribute int rangeMin; ./html/canvas/WebGLShaderPrecisionFormat.idl: readonly attribute int rangeMax; ./html/canvas/WebGLShaderPrecisionFormat.idl: readonly attribute int precision; ./page/WebKitAnimation.idl: readonly attribute [Custom] int iterationCount; If its oke to replace these with long I can provide patch for all of them in one or separate patch. For ArrayBuffer.idl I have filed Bug92260 already.
Adam Barth
Comment 14 2012-07-25 10:05:45 PDT
I'd do them all together.
Note You need to log in before you can comment on or make changes to this bug.