mirror of
https://github.com/lexmount/moli.git
synced 2026-11-25 00:02:32 +00:00
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:
@@ -467,6 +467,7 @@ impl StylesheetResponseProvenance {
|
||||
request_origin,
|
||||
head,
|
||||
moli_fetch::RequestMode::NoCors,
|
||||
moli_fetch::RequestRedirectMode::Follow,
|
||||
web_security_disabled,
|
||||
)
|
||||
.is_none(),
|
||||
|
||||
Reference in New Issue
Block a user