Closed Bug 2082586 Opened 1 month ago Closed 24 days ago

[wpt-sync] Sync PR 63708 - Test that Fragment scripting mode leaves force async true on external scripts

Categories

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

task

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Attachments

(1 file)

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

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

Noam Rosenthal <nrosenthal@google.com> wrote:

Test that Fragment scripting mode leaves force async true on external scripts

Tests for https://github.com/whatwg/html/issues/13079 and https://github.com/whatwg/html/pull/13080:

  • domparsing/createContextualFragment-external-scripts-async.html: verifies that <script> elements created by createContextualFragment() have script.async === true before insertion and that external scripts without async execute asynchronously once connected.
  • domparsing/unsafe-and-trusted-types-external-scripts-async.html: verifies the same behavior for {set,append,prepend,before,after,replaceWith}HTMLUnsafe() with { runScripts: true } (on both connected and disconnected elements and ShadowRoot) and for innerHTML, outerHTML, insertAdjacentHTML(), and *HTMLUnsafe() when a Trusted Types default policy's createParserOptions enables runScripts: true.
Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core

PR 63708 applied with additional changes from upstream: 286b7995a5a3028cee705b5e5f67b0a960dafd44

Attached file Notable wpt changes —

CI Results

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

Total 91 tests and 1 subtests

Status Summary

Firefox

OK : 4[GitHub] 88[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-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS : 1[GitHub] 3[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 905[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-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL : 48[GitHub] 2266[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-64-25h2-debug, Gecko-windows11-64-25h2-opt]

Chrome

OK : 3
PASS : 43
FAIL : 3
TIMEOUT: 1
ERROR : 1
NOTRUN : 2

Safari

OK : 4
PASS : 1
FAIL : 48

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

(See attachment for full changes)

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

Attachment

General

Created:
Updated:
Size: