commit | b1407027d13bfe3b9e62c2f7aea4180db74681a9 | [log] [tgz] |
---|---|---|
author | Xiaocheng Hu <xiaochengh@chromium.org> | Mon Apr 25 23:04:44 2022 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Apr 25 23:04:44 2022 |
tree | bc0b2e006e31dfe487b837254c527ea5a17cb6d3 | |
parent | 4da3ecb66a710165c2099605855f55e17c785af1 [diff] |
[renderblocking] Dynamically inserted render-blocking stylesheets should not block scripts This patch fixes a bug that adding `blocking=render` to script-inserted stylesheets makes them script-blocking, which violates the spec as only parser-inserted stylesheets can be script-blocking [1]. The fix idea is to add a new enum to PendingSheetType to represent dynamic render-blocking sheets, so that we only block rendering but not scripts or parser for this type. This patch is also a preparation patch to allow unblocking rendering on dynamic stylesheets by removing `blocking=render` [2] [1] https://html.spec.whatwg.org/#contributes-a-script-blocking-style-sheet [2] crrev.com/c/3601726 Bug: 1271296 Change-Id: I6eee34357ab034c802b3b022719427a1b3964c19 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3601502 Reviewed-by: Yoav Weiss <yoavweiss@chromium.org> Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org> Cr-Commit-Position: refs/heads/main@{#995849}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.