Closed Bug 1945506 Opened 10 months ago Closed 10 months ago

[wpt-sync] Sync PR 50442 - Update tests for SVGScriptElement innerHTML to match reality

Categories

(Core :: DOM: Security, task, P4)

task

Tracking

()

RESOLVED FIXED
137 Branch
Tracking Status
firefox137 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

(Blocks 1 open bug, )

Details

(Whiteboard: [wptsync downstream])

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

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

Luke Warlow <lwarlow@igalia.com> wrote:

Update tests for SVGScriptElement innerHTML to match reality

The previous tests were wrong and don't pass in either of the two implementations (Chromium or WebKit).

SVGScriptElement is intended to behave as close to HTMLScriptElement as possible and innerHTML doesn't work differently for HTMLScriptElement compared with other elements.

PR 50442 applied with additional changes from upstream: 387deb34919dc498c143bba161bc8e4ac8297a61
Component: web-platform-tests → DOM: Security
Product: Testing → Core

CI Results

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

Total 2 tests and 2 subtests

Status Summary

Firefox

OK : 2
PASS : 4
ERROR: 2

Chrome

OK : 2
PASS : 4

Safari

ERROR: 2

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

  • /trusted-types/trusted-types-reporting-for-HTMLScriptElement-innerHTML.html [wpt.fyi]: ERROR [GitHub], OK [Gecko-android-em-7.0-x86_64-lite-qr-opt-geckoview, Gecko-android-em-7.0-x86_64-qr-debug-geckoview, Gecko-android-em-7.0-x86_64-qr-opt-geckoview, Gecko-linux1804-64-qr-debug, Gecko-linux1804-64-qr-opt, Gecko-windows11-32-24h2-debug, Gecko-windows11-32-24h2-opt, Gecko-windows11-64-24h2-debug, Gecko-windows11-64-24h2-opt] (Chrome: OK, Safari: ERROR)
  • /trusted-types/trusted-types-reporting-for-SVGScriptElement-innerHTML.html [wpt.fyi]: ERROR [GitHub], OK [Gecko-android-em-7.0-x86_64-lite-qr-opt-geckoview, Gecko-android-em-7.0-x86_64-qr-debug-geckoview, Gecko-android-em-7.0-x86_64-qr-opt-geckoview, Gecko-linux1804-64-qr-debug, Gecko-linux1804-64-qr-opt, Gecko-windows11-32-24h2-debug, Gecko-windows11-32-24h2-opt, Gecko-windows11-64-24h2-debug, Gecko-windows11-64-24h2-opt] (Chrome: OK, Safari: ERROR)
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/accc11c3278a [wpt PR 50442] - Improve TT tests for SVG and HTML script innerHTML, a=testonly
Status: NEW → RESOLVED
Closed: 10 months ago
Resolution: --- → FIXED
Target Milestone: --- → 137 Branch
Blocks: 1939805
You need to log in before you can comment on or make changes to this bug.