RESOLVED FIXED179435
Remove support for UTF-32 variant text encodings
https://bugs.webkit.org/show_bug.cgi?id=179435
Summary Remove support for UTF-32 variant text encodings
Maciej Stachowiak
Reported 2017-11-08 12:00:29 PST
Remove support for UTF-32 variant text encodings. There's no obvious reason we would need it, and having the support when other browsers don't is a security risk.
Attachments
Patch (18.15 KB, patch)
2017-11-12 16:59 PST, Maciej Stachowiak
no flags
Archive of layout-test-results from ews101 for mac-elcapitan (2.48 MB, application/zip)
2017-11-12 17:55 PST, Build Bot
no flags
Archive of layout-test-results from ews107 for mac-elcapitan-wk2 (2.81 MB, application/zip)
2017-11-12 18:07 PST, Build Bot
no flags
Archive of layout-test-results from ews114 for mac-elcapitan (3.17 MB, application/zip)
2017-11-12 18:23 PST, Build Bot
no flags
Archive of layout-test-results from ews125 for ios-simulator-wk2 (2.71 MB, application/zip)
2017-11-12 18:23 PST, Build Bot
no flags
Patch (38.62 KB, patch)
2017-11-12 22:07 PST, Maciej Stachowiak
no flags
Patch for landing (38.62 KB, patch)
2017-11-12 23:23 PST, Maciej Stachowiak
no flags
Maciej Stachowiak
Comment 1 2017-11-12 16:59:48 PST
Build Bot
Comment 2 2017-11-12 17:55:23 PST
Comment on attachment 326730 [details] Patch Attachment 326730 [details] did not pass mac-ews (mac): Output: http://webkit-queues.webkit.org/results/5205088 New failing tests: http/tests/misc/submit-get-in-utf32le.html http/tests/misc/url-in-utf32le.html http/tests/misc/submit-post-in-utf32be.html http/tests/misc/submit-post-in-utf32le.html http/tests/misc/submit-get-in-utf32be.html http/tests/misc/url-in-utf32be.html
Build Bot
Comment 3 2017-11-12 17:55:24 PST
Created attachment 326731 [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
Build Bot
Comment 4 2017-11-12 18:07:18 PST
Comment on attachment 326730 [details] Patch Attachment 326730 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.webkit.org/results/5205103 New failing tests: http/tests/misc/submit-get-in-utf32le.html http/tests/misc/url-in-utf32le.html http/tests/misc/submit-post-in-utf32be.html http/tests/misc/submit-post-in-utf32le.html http/tests/misc/submit-get-in-utf32be.html http/tests/misc/url-in-utf32be.html
Build Bot
Comment 5 2017-11-12 18:07:19 PST
Created attachment 326732 [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
Build Bot
Comment 6 2017-11-12 18:22:58 PST
Comment on attachment 326730 [details] Patch Attachment 326730 [details] did not pass mac-debug-ews (mac): Output: http://webkit-queues.webkit.org/results/5205101 New failing tests: http/tests/misc/submit-get-in-utf32le.html http/tests/misc/url-in-utf32le.html http/tests/misc/submit-post-in-utf32be.html http/tests/misc/submit-post-in-utf32le.html http/tests/misc/submit-get-in-utf32be.html http/tests/misc/url-in-utf32be.html
Build Bot
Comment 7 2017-11-12 18:23:00 PST
Created attachment 326735 [details] Archive of layout-test-results from ews114 for mac-elcapitan The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews114 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Build Bot
Comment 8 2017-11-12 18:23:17 PST
Comment on attachment 326730 [details] Patch Attachment 326730 [details] did not pass ios-sim-ews (ios-simulator-wk2): Output: http://webkit-queues.webkit.org/results/5205124 New failing tests: http/tests/misc/submit-get-in-utf32le.html http/tests/misc/url-in-utf32le.html http/tests/misc/submit-post-in-utf32be.html http/tests/misc/submit-post-in-utf32le.html http/tests/misc/submit-get-in-utf32be.html http/tests/misc/url-in-utf32be.html
Build Bot
Comment 9 2017-11-12 18:23:18 PST
Created attachment 326736 [details] Archive of layout-test-results from ews125 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews125 Port: ios-simulator-wk2 Platform: Mac OS X 10.12.6
Maciej Stachowiak
Comment 10 2017-11-12 18:53:32 PST
Looks like I need to remove or update a few more tests.
Maciej Stachowiak
Comment 11 2017-11-12 22:07:29 PST
Darin Adler
Comment 12 2017-11-12 22:16:29 PST
Comment on attachment 326743 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=326743&action=review > LayoutTests/fast/encoding/legacy-utf-32-aliases.html:9 > +description("This test verifies that certain aliases for UTF-32 not supported."); Noticed the word "are" is missing in this description.
Maciej Stachowiak
Comment 13 2017-11-12 23:23:04 PST
Created attachment 326746 [details] Patch for landing
WebKit Commit Bot
Comment 14 2017-11-12 23:54:59 PST
Comment on attachment 326746 [details] Patch for landing Clearing flags on attachment: 326746 Committed r224747: <https://trac.webkit.org/changeset/224747>
WebKit Commit Bot
Comment 15 2017-11-12 23:55:01 PST
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 16 2017-11-15 09:43:17 PST
Daniel Bates
Comment 17 2018-02-16 19:35:38 PST
(In reply to WebKit Commit Bot from comment #14) > Comment on attachment 326746 [details] > Patch for landing > > Clearing flags on attachment: 326746 > > Committed r224747: <https://trac.webkit.org/changeset/224747> This change removed UTF-32{BE, LE} from the codec registry. We should also remove the UTF-32 BOM parsing code as well as the TextEncoding objects for these encodings. See bug #182900.
Note You need to log in before you can comment on or make changes to this bug.