RESOLVED FIXED 217612
[WebIDL] convertRecord() should handle duplicate keys for USVString records
https://bugs.webkit.org/show_bug.cgi?id=217612
Summary [WebIDL] convertRecord() should handle duplicate keys for USVString records
Alexey Shvayka
Reported 2020-10-12 09:34:11 PDT
[WebIDL] convertRecord() should handle duplicate keys for USVString records
Attachments
Patch (5.43 KB, patch)
2020-10-12 11:13 PDT, Alexey Shvayka
no flags
Patch (6.25 KB, patch)
2020-10-19 13:30 PDT, Alexey Shvayka
no flags
Alexey Shvayka
Comment 1 2020-10-12 11:13:25 PDT
EWS Watchlist
Comment 2 2020-10-12 11:14:20 PDT
This patch modifies the imported WPT tests. Please ensure that any changes on the tests (not coming from a WPT import) are exported to WPT. Please see https://trac.webkit.org/wiki/WPTExportProcess
Sam Weinig
Comment 3 2020-10-12 11:43:30 PDT
Comment on attachment 411134 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=411134&action=review > LayoutTests/imported/w3c/ChangeLog:9 > + * web-platform-tests/url/urlsearchparams-constructor.any-expected.txt: > + * web-platform-tests/url/urlsearchparams-constructor.any.js: Usually we don't modify the imported tests directly, or if we do, try to get that change integrated upstream as well. Is this something you plan to do with this change?
Alexey Shvayka
Comment 4 2020-10-12 11:58:31 PDT
(In reply to Sam Weinig from comment #3) Thank you for review, Sam. > Usually we don't modify the imported tests directly, or if we do, try to get > that change integrated upstream as well. Is this something you plan to do > with this change? I've got acquainted with WPT export process and make sure that tests are merged into upstream before landing a patch.
Sam Weinig
Comment 5 2020-10-12 13:08:30 PDT
(In reply to Alexey Shvayka from comment #4) > (In reply to Sam Weinig from comment #3) > > Thank you for review, Sam. > > > Usually we don't modify the imported tests directly, or if we do, try to get > > that change integrated upstream as well. Is this something you plan to do > > with this change? > > I've got acquainted with WPT export process and make sure that tests are > merged into upstream before landing a patch. Great. Thanks.
Radar WebKit Bug Importer
Comment 6 2020-10-19 09:35:25 PDT
Alexey Shvayka
Comment 7 2020-10-19 13:30:07 PDT
Created attachment 411786 [details] Patch Adjust .worker subtest expectations.
EWS
Comment 8 2020-10-19 19:25:22 PDT
Committed r268709: <https://trac.webkit.org/changeset/268709> All reviewed patches have been landed. Closing bug and clearing flags on attachment 411786 [details].
Alex Christensen
Comment 9 2020-10-21 16:53:59 PDT
Comment on attachment 411786 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=411786&action=review > Source/WebCore/bindings/js/JSDOMConvertRecord.h:134 > + auto index = result.findMatching([&](auto& entry) { return entry.key == typedKey; }); This is an O(n^2) algorithm. See https://bugs.webkit.org/show_bug.cgi?id=218062
Note You need to log in before you can comment on or make changes to this bug.