Closed Bug 1727491 Opened 3 years ago Closed 3 years ago

Remove support for BOMless unlabeled Latin1 Supplement-range UTF-16LE|BE

Categories

(Core :: DOM: HTML Parser, task, P2)

task

Tracking

()

RESOLVED FIXED
93 Branch
Tracking Status
firefox93 --- fixed

People

(Reporter: hsivonen, Assigned: hsivonen)

References

()

Details

Attachments

(1 file)

Bug 631751 added sniffing for BOMless UTF-16 if the first kilobyte stays below U+0100. This was done for IE compatibility and has no basis in the spec. Neither WebKit nor Blink has this behavior. (I.e. new Edge doesn't have this behavior.)

Let's remove this oddity to get it out of the way before bug 1701828.

Demo: https://hsivonen.com/test/moz/bomless-utf-16le.htm

Risk: Failing to render some Windows-originating legacy HTML that rendered OK in IE, but is already broken in Safari, Chrome, and Edge.

Severity: -- → S3
Priority: -- → P2
Attachment #9237916 - Attachment description: Bug 1727491 - Remove support for BOMless unlabeled Latin1 Supplement-range UTF-16LE|BE. → WIP: Bug 1727491 - Remove support for BOMless unlabeled Latin1 Supplement-range UTF-16LE|BE.
Attachment #9237916 - Attachment description: WIP: Bug 1727491 - Remove support for BOMless unlabeled Latin1 Supplement-range UTF-16LE|BE. → Bug 1727491 - Remove support for BOMless unlabeled Latin1 Supplement-range UTF-16LE|BE.
Pushed by hsivonen@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/dc6b9ca8f3fa
Remove support for BOMless unlabeled Latin1 Supplement-range UTF-16LE|BE. r=emk

Sigh. I should have run more test suites in my try runs.

The tests that failed are tests for the patch being undone here. The reason why this patch made them detect as UTF-8 instead of windows-1252 is that the test runs from a file> URL.

Flags: needinfo?(hsivonen)
Pushed by hsivonen@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/c7c2c5f061b4
Remove support for BOMless unlabeled Latin1 Supplement-range UTF-16LE|BE. r=emk
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 93 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: