Bug 159140 - Add support for WebIDL setlike
Summary: Add support for WebIDL setlike
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: youenn fablet
URL:
Keywords: InRadar
: 159146 (view as bug list)
Depends on:
Blocks: 159146 204847
  Show dependency treegraph
 
Reported: 2016-06-27 03:04 PDT by youenn fablet
Modified: 2019-12-04 04:08 PST (History)
18 users (show)

See Also:


Attachments
Patch (84.58 KB, patch)
2016-06-27 04:03 PDT, youenn fablet
no flags Details | Formatted Diff | Diff
Fixing style (84.58 KB, patch)
2016-06-27 05:11 PDT, youenn fablet
no flags Details | Formatted Diff | Diff
WIP (106.92 KB, patch)
2017-02-02 08:16 PST, youenn fablet
no flags Details | Formatted Diff | Diff
Patch (132.57 KB, patch)
2017-02-16 21:23 PST, youenn fablet
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews101 for mac-elcapitan (996.08 KB, application/zip)
2017-02-16 23:42 PST, Build Bot
no flags Details
Archive of layout-test-results from ews107 for mac-elcapitan-wk2 (908.42 KB, application/zip)
2017-02-16 23:44 PST, Build Bot
no flags Details
Archive of layout-test-results from ews117 for mac-elcapitan (1.71 MB, application/zip)
2017-02-16 23:50 PST, Build Bot
no flags Details
Archive of layout-test-results from ews126 for ios-simulator-wk2 (781.45 KB, application/zip)
2017-02-16 23:54 PST, Build Bot
no flags Details
Reduced patch to binding code (97.94 KB, patch)
2019-11-05 07:07 PST, youenn fablet
no flags Details | Formatted Diff | Diff
Patch (116.86 KB, patch)
2019-11-19 00:10 PST, youenn fablet
no flags Details | Formatted Diff | Diff
Patch (125.43 KB, patch)
2019-11-19 18:45 PST, youenn fablet
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description youenn fablet 2016-06-27 03:04:39 PDT
We should implement https://heycam.github.io/webidl/#idl-setlike and apply to FontFaceSet.idl
Comment 1 youenn fablet 2016-06-27 04:03:32 PDT
Created attachment 282117 [details]
Patch
Comment 2 youenn fablet 2016-06-27 05:11:59 PDT
Created attachment 282121 [details]
Fixing style
Comment 3 youenn fablet 2016-07-13 02:16:53 PDT
As part of this bug, we should ensure that binding generator dies for "iterable" interfaces that do not have indexed getters.
Comment 4 youenn fablet 2017-02-02 08:16:26 PST
Created attachment 300409 [details]
WIP
Comment 5 youenn fablet 2017-02-02 08:16:43 PST
*** Bug 159146 has been marked as a duplicate of this bug. ***
Comment 6 youenn fablet 2017-02-16 21:23:04 PST
Created attachment 301878 [details]
Patch
Comment 7 WebKit Commit Bot 2017-02-16 22:30:34 PST
Attachment 301878 [details] did not pass style-queue:


ERROR: Source/WebCore/bindings/js/JSDOMSetLike.h:66:  Should be indented on a separate line, with the colon or comma first on that line.  [whitespace/indent] [4]
ERROR: Source/WebCore/bindings/js/JSDOMGuardedObject.h:60:  Should be indented on a separate line, with the colon or comma first on that line.  [whitespace/indent] [4]
ERROR: Source/WebCore/bindings/js/JSDOMGlobalObject.h:37:  Code inside a namespace should not be indented.  [whitespace/indent] [4]
ERROR: Source/WebCore/bindings/js/JSDOMPromise.h:121:  Should be indented on a separate line, with the colon or comma first on that line.  [whitespace/indent] [4]
Total errors found: 4 in 31 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 8 youenn fablet 2017-02-16 22:40:07 PST
Setlike part of the patch is working.
Integration with FontFacetSet is not properly working since every time the backing font face set is updated, we should update the FontFacet set like object.
Current iterator implementation enforces this by iterating through the backing font face set.
Comment 9 Build Bot 2017-02-16 23:42:08 PST
Comment on attachment 301878 [details]
Patch

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

New failing tests:
fast/text/font-face-set-cssom.html
fast/text/font-face-set-javascript.html
Comment 10 Build Bot 2017-02-16 23:42:13 PST
Created attachment 301891 [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 11 Build Bot 2017-02-16 23:44:17 PST
Comment on attachment 301878 [details]
Patch

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

New failing tests:
fast/text/font-face-set-cssom.html
fast/text/font-face-set-javascript.html
Comment 12 Build Bot 2017-02-16 23:44:22 PST
Created attachment 301893 [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 13 Build Bot 2017-02-16 23:49:59 PST
Comment on attachment 301878 [details]
Patch

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

New failing tests:
fast/text/font-face-set-cssom.html
fast/text/font-face-set-javascript.html
Comment 14 Build Bot 2017-02-16 23:50:05 PST
Created attachment 301894 [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 15 Build Bot 2017-02-16 23:54:01 PST
Comment on attachment 301878 [details]
Patch

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

New failing tests:
fast/text/font-face-set-cssom.html
fast/text/font-face-set-javascript.html
Comment 16 Build Bot 2017-02-16 23:54:07 PST
Created attachment 301895 [details]
Archive of layout-test-results from ews126 for ios-simulator-wk2

The attached test failures were seen while running run-webkit-tests on the ios-sim-ews.
Bot: ews126  Port: ios-simulator-wk2  Platform: Mac OS X 10.11.6
Comment 17 youenn fablet 2019-11-05 07:07:56 PST
Created attachment 382820 [details]
Reduced patch to binding code
Comment 18 youenn fablet 2019-11-19 00:10:36 PST
Created attachment 383850 [details]
Patch
Comment 19 youenn fablet 2019-11-19 18:45:57 PST
Created attachment 383933 [details]
Patch
Comment 20 Darin Adler 2019-12-03 12:53:21 PST
Comment on attachment 383933 [details]
Patch

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

> Source/WebCore/bindings/scripts/IDLParser.pm:2108
> +    # FIXME: Add support to forEach

What's the status on this part?
Comment 21 youenn fablet 2019-12-04 03:21:48 PST
(In reply to Darin Adler from comment #20)
> Comment on attachment 383933 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=383933&action=review
> 
> > Source/WebCore/bindings/scripts/IDLParser.pm:2108
> > +    # FIXME: Add support to forEach
> 
> What's the status on this part?

I'll add support as a follow-up
Comment 22 WebKit Commit Bot 2019-12-04 04:07:01 PST
Comment on attachment 383933 [details]
Patch

Clearing flags on attachment: 383933

Committed r253100: <https://trac.webkit.org/changeset/253100>
Comment 23 WebKit Commit Bot 2019-12-04 04:07:04 PST
All reviewed patches have been landed.  Closing bug.
Comment 24 Radar WebKit Bug Importer 2019-12-04 04:08:20 PST
<rdar://problem/57620807>