Closed Bug 2073541 Opened 2 months ago Closed 2 months ago

[wpt-sync] Sync PR 62796 - Accept BOM at start of parsing input in Rust XML parser

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox158 fixed)

RESOLVED FIXED
158 Branch
Tracking Status
firefox158 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Dominik Röttsches <drott@chromium.org> wrote:

Accept BOM at start of parsing input in Rust XML parser

Fix BOM handling in Rust XML parser by stripping it from the
beginning of the input string.

Add a Web Platform Test covering DOMParser parsing of XML documents
starting with a Byte Order Mark (U+FEFF). Under the experimental Rust
XML parser (XmlRustForNonXslt), leading BOM characters currently fail
parsing as unexpected characters outside the root element.

Fixed: 561655168
Change-Id: I519666eca927d44d76827996e29db99ae9e0005f

Reviewed-on: https://chromium-review.googlesource.com/8425943
WPT-Export-Revision: 34d71ab3bb12fc578327c05512fd48a8ba9ddb1f

CI Results

Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 21 tests and 5 subtests

Status Summary

Firefox

OK : 1[GitHub] 9[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS : 5[GitHub] 7[Gecko-linux2204-64-wayland-debug] 9[Gecko-linux2204-64-wayland-opt] 235[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 237[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL : 7[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 8[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
TIMEOUT: 2

Chrome

OK : 1
FAIL : 5

Safari

OK : 1
PASS : 3
FAIL : 2

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

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