Plain text tokenized as HTML upon encoding rewind
Categories
(Core :: DOM: HTML Parser, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr91 | --- | unaffected |
firefox96 | --- | unaffected |
firefox97 | + | verified |
firefox98 | + | verified |
People
(Reporter: saschanaz, Assigned: hsivonen)
References
(Regression)
Details
(Keywords: regression)
Attachments
(2 files, 1 obsolete file)
951 bytes,
text/plain
|
Details | |
48 bytes,
text/x-phabricator-request
|
dmeehan
:
approval-mozilla-beta+
|
Details | Review |
- Open view-source:https://bug1749522.bmoattachments.org/attachment.cgi?id=9258559
- See if anything is visible
DevTools shows that <script>
is somehow not escaped properly, but doesn't seem that it runs any script.
Comment 1•3 years ago
|
||
Even non view-source URL shows nothing for me.
Reporter | ||
Comment 2•3 years ago
•
|
||
That's expected, it only includes a script.
Edit: Oh wait, it's served with text/plain
, so it should show something!
Reporter | ||
Comment 3•3 years ago
|
||
Reporter | ||
Comment 4•3 years ago
|
||
Comment 5•3 years ago
|
||
(In reply to Kagami :saschanaz from comment #2)
Edit: Oh wait, it's served with
text/plain
, so it should show something!
Yes, Firefox 95.0.2/96 shows the HTML source.
Comment 6•3 years ago
|
||
Set release status flags based on info from the regressing bug 1701828
Comment 7•3 years ago
|
||
NI based on regressor. This sounds somewhat serious and we probably don't want to ship with this.
Assignee | ||
Comment 8•3 years ago
|
||
Updated•3 years ago
|
Assignee | ||
Comment 9•3 years ago
|
||
https://treeherder.mozilla.org/jobs?repo=try&revision=317a739418b0fee1c2673332b3cad0c96886ab8e
(In reply to Christian Holler (:decoder) from comment #7)
NI based on regressor. This sounds somewhat serious and we probably don't want to ship with this.
Indeed, we should uplift to beta.
Assignee | ||
Comment 10•3 years ago
|
||
[Tracking Requested - why for this release]:
Bad regression for plain text that contains HTML tag-like text (not just plain text view source) in some scenarios where there is no (usable) encoding declaration. (The test case here declares IBM855, which is an unsupported label.)
Assignee | ||
Updated•3 years ago
|
Updated•3 years ago
|
Comment 11•3 years ago
|
||
Comment 12•3 years ago
|
||
Backed out for causing reftest failures in tests/reftest/bug1749522-1
Backout link: https://hg.mozilla.org/integration/autoland/rev/ff88218a0ce8ec0cd8fb9332f73ee4156bf20a4a
Assignee | ||
Comment 13•3 years ago
|
||
(In reply to Sandor Molnar from comment #12)
Backed out for causing reftest failures in tests/reftest/bug1749522-1
Backout link: https://hg.mozilla.org/integration/autoland/rev/ff88218a0ce8ec0cd8fb9332f73ee4156bf20a4a
The result is that the test fails intermittently on Android and consistently passes elsewhere. This is cross-platform code, so there isn't any mechanism why this would sometimes fail on Android while sometimes passing on Android and always passing on desktop.
I suspect an Android reftest harness bug.
Assignee | ||
Comment 14•3 years ago
|
||
Assignee | ||
Comment 15•3 years ago
|
||
Relanding with test skipped on Android.
Assignee | ||
Comment 16•3 years ago
|
||
(In reply to Henri Sivonen (:hsivonen) from comment #13)
I suspect an Android reftest harness bug.
Filed as bug 1750511.
Comment 17•3 years ago
|
||
Comment 18•3 years ago
|
||
bugherder |
Assignee | ||
Comment 19•3 years ago
|
||
Comment on attachment 9258859 [details]
Bug 1749522 - When plain text encoding speculation fails, restart the plaintext mode of the tokenizer.
Beta/Release Uplift Approval Request
- User impact if declined: Plain text content disappears in whole or part if it doesn't have an encoding declaration and has content that resembles HTML markup, notably less-than sign followed by an ASCII letter or exclamation mark.
- Is this code covered by automated tests?: Yes
- Has the fix been verified in Nightly?: Yes
- Needs manual test from QE?: No
- If yes, steps to reproduce:
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): Not risky due to the mechanism of the bug and fix being well understood.
- String changes made/needed: None
Comment 20•3 years ago
|
||
Comment on attachment 9258859 [details]
Bug 1749522 - When plain text encoding speculation fails, restart the plaintext mode of the tokenizer.
Approved for 97.0b5. Thanks.
Comment 21•3 years ago
|
||
bugherder uplift |
Updated•3 years ago
|
Comment 22•3 years ago
|
||
I've reproduced the issue on Firefox 97.0b4 and verified the fix using Nightly 98.0a1 and Beta 97.0b5 on Windows 10, MacOS 11.6 and Ubuntu 20.04.
Updated•3 years ago
|
Description
•