Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: a677f7ec2534fb088e0e2ef212a680c4811ea63c
      
https://github.com/WebKit/WebKit/commit/a677f7ec2534fb088e0e2ef212a680c4811ea63c
  Author: Anne van Kesteren <[email protected]>
  Date:   2026-04-13 (Mon, 13 Apr 2026)

  Changed paths:
    A LayoutTests/imported/w3c/web-platform-tests/encoding/WEB_FEATURES.yml
    R 
LayoutTests/imported/w3c/web-platform-tests/encoding/idlharness-shadowrealm.window-expected.txt
    R 
LayoutTests/imported/w3c/web-platform-tests/encoding/idlharness-shadowrealm.window.html
    R 
LayoutTests/imported/w3c/web-platform-tests/encoding/idlharness-shadowrealm.window.js
    M LayoutTests/imported/w3c/web-platform-tests/encoding/idlharness.any.js
    M 
LayoutTests/imported/w3c/web-platform-tests/encoding/legacy-mb-japanese/iso-2022-jp/iso2022jp-decode-csiso2022jp_1-1000-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/encoding/legacy-mb-japanese/iso-2022-jp/iso2022jp-decode-csiso2022jp_3001-4000-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/encoding/legacy-mb-japanese/iso-2022-jp/iso2022jp-decode-csiso2022jp_7001-last-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/encoding/legacy-mb-japanese/iso-2022-jp/iso2022jp-decode_1-1000-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/encoding/legacy-mb-japanese/iso-2022-jp/iso2022jp-decode_3001-4000-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/encoding/legacy-mb-japanese/iso-2022-jp/iso2022jp-decode_7001-last-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/encoding/legacy-mb-japanese/iso-2022-jp/iso2022jp_chars-csiso2022jp.html
    M 
LayoutTests/imported/w3c/web-platform-tests/encoding/legacy-mb-japanese/iso-2022-jp/iso2022jp_chars.html
    M 
LayoutTests/imported/w3c/web-platform-tests/encoding/legacy-mb-japanese/shift_jis/sjis-encode-href-errors-han.html
    M 
LayoutTests/imported/w3c/web-platform-tests/encoding/legacy-mb-japanese/shift_jis/sjis-encode-href-errors-han_1-1000-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/encoding/legacy-mb-japanese/shift_jis/sjis-encode-href-errors-han_10001-11000-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/encoding/legacy-mb-japanese/shift_jis/sjis-encode-href-errors-han_1001-2000-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/encoding/legacy-mb-japanese/shift_jis/sjis-encode-href-errors-han_11001-12000-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/encoding/legacy-mb-japanese/shift_jis/sjis-encode-href-errors-han_12001-13000-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/encoding/legacy-mb-japanese/shift_jis/sjis-encode-href-errors-han_13001-14000-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/encoding/legacy-mb-japanese/shift_jis/sjis-encode-href-errors-han_14001-15000-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/encoding/legacy-mb-japanese/shift_jis/sjis-encode-href-errors-han_15001-16000-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/encoding/legacy-mb-japanese/shift_jis/sjis-encode-href-errors-han_16001-17000-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/encoding/legacy-mb-japanese/shift_jis/sjis-encode-href-errors-han_17001-18000-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/encoding/legacy-mb-japanese/shift_jis/sjis-encode-href-errors-han_18001-19000-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/encoding/legacy-mb-japanese/shift_jis/sjis-encode-href-errors-han_19001-20000-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/encoding/legacy-mb-japanese/shift_jis/sjis-encode-href-errors-han_20001-21000-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/encoding/legacy-mb-japanese/shift_jis/sjis-encode-href-errors-han_2001-3000-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/encoding/legacy-mb-japanese/shift_jis/sjis-encode-href-errors-han_21001-last-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/encoding/legacy-mb-japanese/shift_jis/sjis-encode-href-errors-han_3001-4000-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/encoding/legacy-mb-japanese/shift_jis/sjis-encode-href-errors-han_4001-5000-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/encoding/legacy-mb-japanese/shift_jis/sjis-encode-href-errors-han_5001-6000-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/encoding/legacy-mb-japanese/shift_jis/sjis-encode-href-errors-han_6001-7000-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/encoding/legacy-mb-japanese/shift_jis/sjis-encode-href-errors-han_7001-8000-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/encoding/legacy-mb-japanese/shift_jis/sjis-encode-href-errors-han_8001-9000-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/encoding/legacy-mb-japanese/shift_jis/sjis-encode-href-errors-han_9001-10000-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/encoding/legacy-mb-japanese/shift_jis/sjis-encode-href-errors-hangul.html
    M 
LayoutTests/imported/w3c/web-platform-tests/encoding/legacy-mb-japanese/shift_jis/sjis-encode-href-errors-hangul_1-1000-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/encoding/legacy-mb-japanese/shift_jis/sjis-encode-href-errors-hangul_10001-11000-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/encoding/legacy-mb-japanese/shift_jis/sjis-encode-href-errors-hangul_1001-2000-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/encoding/legacy-mb-japanese/shift_jis/sjis-encode-href-errors-hangul_11001-last-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/encoding/legacy-mb-japanese/shift_jis/sjis-encode-href-errors-hangul_2001-3000-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/encoding/legacy-mb-japanese/shift_jis/sjis-encode-href-errors-hangul_3001-4000-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/encoding/legacy-mb-japanese/shift_jis/sjis-encode-href-errors-hangul_4001-5000-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/encoding/legacy-mb-japanese/shift_jis/sjis-encode-href-errors-hangul_5001-6000-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/encoding/legacy-mb-japanese/shift_jis/sjis-encode-href-errors-hangul_6001-7000-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/encoding/legacy-mb-japanese/shift_jis/sjis-encode-href-errors-hangul_7001-8000-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/encoding/legacy-mb-japanese/shift_jis/sjis-encode-href-errors-hangul_8001-9000-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/encoding/legacy-mb-japanese/shift_jis/sjis-encode-href-errors-hangul_9001-10000-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/encoding/legacy-mb-japanese/shift_jis/sjis-encode-href-errors-misc.html
    M 
LayoutTests/imported/w3c/web-platform-tests/encoding/legacy-mb-japanese/shift_jis/sjis-encode-href-errors-misc_1-1000-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/encoding/legacy-mb-japanese/shift_jis/sjis-encode-href-errors-misc_1001-2000-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/encoding/legacy-mb-japanese/shift_jis/sjis-encode-href-errors-misc_2001-3000-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/encoding/legacy-mb-japanese/shift_jis/sjis-encode-href-errors-misc_3001-last-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/encoding/legacy-mb-japanese/shift_jis/sjis-encode-href.html
    M 
LayoutTests/imported/w3c/web-platform-tests/encoding/legacy-mb-japanese/shift_jis/sjis-encode-href_1-1000-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/encoding/legacy-mb-japanese/shift_jis/sjis-encode-href_1001-2000-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/encoding/legacy-mb-japanese/shift_jis/sjis-encode-href_2001-3000-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/encoding/legacy-mb-japanese/shift_jis/sjis-encode-href_3001-4000-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/encoding/legacy-mb-japanese/shift_jis/sjis-encode-href_4001-5000-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/encoding/legacy-mb-japanese/shift_jis/sjis-encode-href_5001-6000-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/encoding/legacy-mb-japanese/shift_jis/sjis-encode-href_6001-7000-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/encoding/legacy-mb-japanese/shift_jis/sjis-encode-href_7001-last-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/encoding/legacy-mb-schinese/gb18030/gb18030-decoder.any-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/encoding/legacy-mb-schinese/gb18030/gb18030-decoder.any.js
    M 
LayoutTests/imported/w3c/web-platform-tests/encoding/legacy-mb-schinese/gb18030/gb18030-decoder.any.worker-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/encoding/textdecoder-arguments.any-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/encoding/textdecoder-arguments.any.js
    M 
LayoutTests/imported/w3c/web-platform-tests/encoding/textdecoder-arguments.any.worker-expected.txt
    A 
LayoutTests/imported/w3c/web-platform-tests/encoding/textdecoder-mistakes.any-expected.txt
    A 
LayoutTests/imported/w3c/web-platform-tests/encoding/textdecoder-mistakes.any.html
    A 
LayoutTests/imported/w3c/web-platform-tests/encoding/textdecoder-mistakes.any.js
    A 
LayoutTests/imported/w3c/web-platform-tests/encoding/textdecoder-mistakes.any.worker-expected.txt
    A 
LayoutTests/imported/w3c/web-platform-tests/encoding/textdecoder-mistakes.any.worker.html
    M LayoutTests/imported/w3c/web-platform-tests/encoding/w3c-import.log
    A 
LayoutTests/platform/glib/imported/w3c/web-platform-tests/encoding/textdecoder-mistakes.any-expected.txt
    A 
LayoutTests/platform/glib/imported/w3c/web-platform-tests/encoding/textdecoder-mistakes.any.worker-expected.txt
    M Tools/Scripts/webkitpy/w3c/test_importer.py
    M Tools/Scripts/webkitpy/w3c/test_importer_unittest.py

  Log Message:
  -----------
  Synchronize WPT encoding/
https://bugs.webkit.org/show_bug.cgi?id=312096

Reviewed by Youenn Fablet.

This includes a fix for import-w3c-tests. _W3CTestConverter (an
HTMLParser subclass) round-trips all WPT HTML files. But HTMLParser
calls handle_entityref('A') when it encounters &A in text content, and
the handler blindly reconstructs it as &A; — adding a spurious
semicolon. This corrupts ISO-2022-JP test data files where byte
0x26 (&) followed by a letter is a valid JIS X 0208 character pair, not
an HTML entity.

The fix tags non-test files (resources, support files) with
is_resource: True in the copy list — using the existing
TestParser.analyze_test() result that already distinguishes tests from
resources — and skips the HTMLParser conversion for them. Resource
files never need CSS prefix conversion, path fixups, or test runner
options.

Upstream commit: 
https://github.com/web-platform-tests/wpt/commit/1193645b4710269a57df0b13c3fcc982be5f4fb1

Canonical link: https://commits.webkit.org/311052@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to