Bug 179435 - Remove support for UTF-32 variant text encodings
Summary: Remove support for UTF-32 variant text encodings
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Text (show other bugs)
Version: Safari Technology Preview
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Maciej Stachowiak
URL:
Keywords: InRadar
Depends on:
Blocks: 179303
  Show dependency treegraph
 
Reported: 2017-11-08 12:00 PST by Maciej Stachowiak
Modified: 2018-02-16 19:35 PST (History)
8 users (show)

See Also:


Attachments
Patch (18.15 KB, patch)
2017-11-12 16:59 PST, Maciej Stachowiak
no flags Details | Formatted Diff | Diff
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 Details
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 Details
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 Details
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 Details
Patch (38.62 KB, patch)
2017-11-12 22:07 PST, Maciej Stachowiak
no flags Details | Formatted Diff | Diff
Patch for landing (38.62 KB, patch)
2017-11-12 23:23 PST, Maciej Stachowiak
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Maciej Stachowiak 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.
Comment 1 Maciej Stachowiak 2017-11-12 16:59:48 PST
Created attachment 326730 [details]
Patch
Comment 2 Build Bot 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
Comment 3 Build Bot 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
Comment 4 Build Bot 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
Comment 5 Build Bot 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
Comment 6 Build Bot 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
Comment 7 Build Bot 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
Comment 8 Build Bot 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
Comment 9 Build Bot 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
Comment 10 Maciej Stachowiak 2017-11-12 18:53:32 PST
Looks like I need to remove or update a few more tests.
Comment 11 Maciej Stachowiak 2017-11-12 22:07:29 PST
Created attachment 326743 [details]
Patch
Comment 12 Darin Adler 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.
Comment 13 Maciej Stachowiak 2017-11-12 23:23:04 PST
Created attachment 326746 [details]
Patch for landing
Comment 14 WebKit Commit Bot 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>
Comment 15 WebKit Commit Bot 2017-11-12 23:55:01 PST
All reviewed patches have been landed.  Closing bug.
Comment 16 Radar WebKit Bug Importer 2017-11-15 09:43:17 PST
<rdar://problem/35562305>
Comment 17 Daniel Bates 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.