fix(#1100): remove SRI integrity from prism-tomorrow.min.css to prevent intermittent blocking#1115
fix(#1100): remove SRI integrity from prism-tomorrow.min.css to prevent intermittent blocking#1115bergeouss wants to merge 2 commits intonesquena:masterfrom
Conversation
…to prevent intermittent blocking - jsdelivr serves different SHA-384 digests across edge nodes - This caused the browser to block the CSS, breaking syntax highlighting - Version pinning (@1.29.0) is sufficient for supply-chain assurance - Prism JS files keep SRI (less affected by CDN edge issues) - Add 4 tests
Hold — fix is incomplete:
|
_setResolvedTheme was re-applying integrity attribute on theme switch, causing the same CDN edge-digest mismatch. Now clears integrity on theme change. Added test to verify _setResolvedTheme doesn't set SRI hashes.
|
Nice fix — that's exactly right. |
…SRI (#1119) * feat: add Korean locale support (#1093, @jundev0001) — 615 keys, copy_failed added * fix(#1094): provider deletion + false positive API key + threading deadlock (#1102, @bergeouss) * fix(#1103): show reasoning chip on page load not only after session load (#1114, @bergeouss) * fix(#1100): remove Prism CSS SRI integrity to fix intermittent blocking (#1115, @bergeouss) * fix(tests): update copy_failed locale count for 7 locales (Korean added) * fix: drop unused _cfg_cache import; update locale count comment --------- Co-authored-by: nesquena-hermes <[email protected]>
|
Absorbed and shipped in v0.50.222 (PR #1119). Closing — thanks! |
…SRI (nesquena#1119) * feat: add Korean locale support (nesquena#1093, @jundev0001) — 615 keys, copy_failed added * fix(nesquena#1094): provider deletion + false positive API key + threading deadlock (nesquena#1102, @bergeouss) * fix(nesquena#1103): show reasoning chip on page load not only after session load (nesquena#1114, @bergeouss) * fix(nesquena#1100): remove Prism CSS SRI integrity to fix intermittent blocking (nesquena#1115, @bergeouss) * fix(tests): update copy_failed locale count for 7 locales (Korean added) * fix: drop unused _cfg_cache import; update locale count comment --------- Co-authored-by: nesquena-hermes <[email protected]>
Thinking Path
integrityattribute from the CSS link tag@1.29.0in URL) still provides supply-chain assuranceWhat Changed
static/index.html: Removedintegrityattribute from theprism-tomorrow.min.css<link>tag. Added a comment explaining why. Keptcrossorigin="anonymous". Prism JS<script>tags retain their SRI attributes.Why It Matters
Multiple users reported code blocks losing syntax highlighting due to SRI failures. The browser logs
Failed to find a valid digest in the 'integrity' attribute. This completely breaks the code viewing experience. After this fix, syntax highlighting loads reliably.Verification
pytest tests/test_issue1100_prism_sri.py -v— 4/4 passRisks / Follow-ups
Model Used
Closes #1100