Closed Bug 1758820 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 33145 - [renderblocking] Implement render-blocking on script elements

Categories

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

task

Tracking

()

RESOLVED FIXED
100 Branch
Tracking Status
firefox100 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Xiaocheng Hu <xiaochengh@chromium.org> wrote:

[renderblocking] Implement render-blocking on script elements

This patch makes RenderBlockingResourceManager to accept scripts as
render-blocking resources, and implements the following parts of the
spec:

  1. Right before fetching a render-blocking script, add it to
    RenderBlockingResourceManager:

https://html.spec.whatwg.org/multipage/scripting.html#script-processing-model:block-rendering

  1. When executing a script, remove it from RenderBlockingResourceManager

https://html.spec.whatwg.org/multipage/scripting.html#script-processing-model:unblock-rendering

  1. When a render-blocking script is removed, also remove it from
    RenderBlockingResourceManager, so that rendering is unblocked even
    without executing the script:

https://html.spec.whatwg.org/multipage/urls-and-fetching.html#blocking-attributes:unblock-rendering

Bug: 1271296
Change-Id: Ib5d7391668efb1a0c74a3c152e02c1b533accc43
Reviewed-on: https://chromium-review.googlesource.com/3511116
WPT-Export-Revision: 858eb996f39af40f79a68e36c69d9205f5e3ef34

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core

CI Results

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

Total 1 tests and 1 subtests

Status Summary

Firefox

OK : 1
PASS: 1

Chrome

OK : 1
PASS: 1

Safari

OK : 1
PASS: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/233323be21a9
[wpt PR 33145] - [renderblocking] Implement render-blocking on script elements, a=testonly
Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/470e2af10c74
[wpt PR 33145] - [renderblocking] Implement render-blocking on script elements, a=testonly
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 100 Branch
You need to log in before you can comment on or make changes to this bug.