fix(stylesheet): enforce integrity before CSSOM installation

Validate raw stylesheet response bytes and response eligibility through the
shared SRI verifier. Preserve integrity rejection in fetch terminals so failed
loads dispatch error and release their load delay without installing a sheet
or discovering imports.

Require links with integrity metadata to use the compatible fetch cache instead
of hydrating an unverified parsed source by URL. Add regressions for hashing,
CORS, service-worker filters, local data URLs, redirects, and cached loads.
This commit is contained in:
ldm0
2026-11-24 14:30:18 +08:00
parent 7672caf9e5
commit e599a8a0bc
@@ -467,6 +467,7 @@ impl StylesheetResponseProvenance {
request_origin,
head,
moli_fetch::RequestMode::NoCors,
moli_fetch::RequestRedirectMode::Follow,
web_security_disabled,
)
.is_none(),