Intent to Deprecate and Remove: Remove auto-detection of ISO-2022-JP charset in HTML

702 views
Skip to first unread message

Chromestatus

unread,
Apr 7, 2025, 1:36:52 PMApr 7
to blin...@chromium.org, jkok...@google.com

Contact emails

jkok...@google.com

Explainer

None

Specification

None

Summary

There are known[1] security issues around charset auto-detection for ISO-2022-JP. Given that the usage is very low, and Safari does not support auto-detection of ISO-2022-JP, we will remove support for it to eliminate the security issues. [1]: https://www.sonarsource.com/blog/encoding-differentials-why-charset-matters/



Blink component

Blink>TextEncoding

Motivation

There are known[1] security issues around charset auto-detection for ISO-2022-JP. The use counter[2] shows that the auto-detection of ISO-2022-JP charset only happens around 0.000002% of page load. Given that usage is very low, and Safari does not support auto-detection of ISO-2022-JP, we will remove support for it to eliminate the security issues. [1]: https://www.sonarsource.com/blog/encoding-differentials-why-charset-matters/ [2]: https://chromestatus.com/metrics/feature/timeline/popularity/5244



Initial public proposal

None

TAG review

None

TAG review status

Not applicable

Risks



Interoperability and Compatibility

None



Gecko: Positive (https://github.com/mozilla/standards-positions/issues/1199)

WebKit: Shipped/Shipping

Web developers: No signals

Other signals:

WebView application risks

Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?

None



Debuggability

None



Is this feature fully tested by web-platform-tests?

No

Flag name on about://flags

None

Finch feature name

None

Non-finch justification

None

Requires code in //chrome?

False

Tracking bug

https://issues.chromium.org/issues/40089450

Estimated milestones

No milestones specified



Link to entry on the Chrome Platform Status

https://chromestatus.com/feature/6576566521561088?gate=6587467307941888

This intent message was generated by Chrome Platform Status.

Mike Taylor

unread,
Apr 8, 2025, 2:18:16 PMApr 8
to Jun Kokatsu, blink-dev

LGTM1 to just remove this outright.

I looked at the 8 sites listed on chromestatus, and of those only 2 seem to be affected in a meaningful way. Would you mind trying to do outreach to those 2 sites and let them know how they can fix this ahead of the change?

https://bbb.asahi-net.or.jp/ - mentions using Netscape Navigator. So possibly a relic from the past. But maybe worth trying to send an email to https://asahi-net.jp/, in case someone still uses this service?

https://shugo.net/ - a personal site that will be broken, but there appear to be some email addresses on the homepage.

(the rest below aren't affected meaningfully)

http://www.chem.aoyama.ac.jp/ - the initial landing page is garbled before the page is redirected (after 3 seconds) to http://www.chem.aoyama.ac.jp/Chem/index.html. That page is fine.

https://dentalx.sakura.ne.jp/ is blank.

https://flex.phys.tohoku.ac.jp/ - this page works in Safari today.

https://kima3.net - effectively a blank site.

https://wi-lab.com/ - has a meta refresh to "/wi-lab/index.html", and it looks fine in Safari (but a lot of text is in images...).

https://www.medipal-app.com/ - has a meta refersh to "/App/", and it looks fine in Safari.

--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/67f40d24.170a0220.25676e.144b.GAE%40google.com.

Daniel Bratell

unread,
Apr 8, 2025, 2:34:37 PMApr 8
to Mike Taylor, Jun Kokatsu, blink-dev

LGTM2

I second Mike's suggestion to give a heads-up to the two sites we know are affected.

/Daniel

TAMURA, Kent

unread,
Apr 8, 2025, 6:55:37 PMApr 8
to Jun Kokatsu, blink-dev, Mike Taylor, Daniel Bratell
How many milestones will the deprecation period be?
Anyway, LGTM3.




--
TAMURA Kent
Software Engineer, Google


Jun Kokatsu

unread,
Apr 14, 2025, 6:01:03 PMApr 14
to blink-dev, TAMURA, Kent, Mike Taylor, Daniel Bratell, Jun Kokatsu
Thank you all!
I've sent emails to 2 sites which were affected.
Regarding deprecation period, I will wait for 2 weeks to hear back from those 2 sites. If I don't get any response, then I plan to just deprecate this feature in M138 since usage is very low.
Let me know if y'all think I should instead have a deprecation warning for sometime.

Thanks,

Jun

TAMURA, Kent

unread,
Apr 14, 2025, 6:20:23 PMApr 14
to Jun Kokatsu, blink-dev
"Deprecate" means that the feature still works but using it shows a deprecation warning in the DevTools console and kicks Reporting API.

IMO, we should have a deprecation period for one or two milestones.  The usage is low, but the feature removal would be critical for affected sites.

Jun Kokatsu

unread,
Apr 16, 2025, 12:48:04 PMApr 16
to TAMURA, Kent, blink-dev
Sounds good! I will work on adding a depreciation period for 2 milestones!

Thanks,

Jun

Reply all
Reply to author
Forward
0 new messages