Closed Bug 2078088 Opened 1 month ago Closed 1 month ago

[wpt-sync] Sync PR 63263 - HTML parser: test that U+FFFD sets frameset-ok to "not ok"

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED FIXED
160 Branch
Tracking Status
firefox160 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 63263 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/63263
Details from upstream follow.

Gérald Barré <git@meziantou.net> wrote:

HTML parser: test that U+FFFD sets frameset-ok to "not ok"

Only U+0000 is ignored in the "in body" insertion mode; any other character token that is not whitespace, including U+FFFD, sets the frameset-ok flag to "not ok", so a later <frameset> start tag is ignored. The existing tests only cover NULs (plain-text-unsafe.dat). This adds:

  • tests19.dat: U+FFFD before <frameset>, as a literal character, as a character reference (&#xFFFD;), and in foreign content (<svg>&#xFFFD;</svg>); the frameset start tag is ignored;
  • plain-text-unsafe.dat: a NUL in foreign content (<svg>U+0000</svg>), which is replaced by U+FFFD without changing the frameset-ok flag, so the frameset replaces the body. This keeps a fix of the first cases from changing the NUL handling.

Results of html5lib_{url,write,write_single}.html with Playwright builds (Chromium 153.0.8010.12, Firefox 155.0, WebKit 26.6):

Test Chromium Firefox WebKit
tests19.dat, 3 new tests FAIL PASS FAIL
plain-text-unsafe.dat, 1 new test PASS PASS PASS
Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core

The PR was not expected to affect any tests, but the try push wasn't a success. Check the try results for infrastructure issues

Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/008cc1181bbe https://hg.mozilla.org/integration/autoland/rev/0bcbd47323c2 [wpt PR 63263] - HTML parser: test that U+FFFD sets frameset-ok to "not ok", a=testonly

Test result changes from PR not available.

Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 160 Branch
You need to log in before you can comment on or make changes to this bug.