You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(viewer): render rich parts same-origin with a nonce CSP
Chrome 149 field-trial variants can defer layout in opaque-origin srcdoc frames, leaving rich surfaces blank or clipped even after the existing reparse retry.
Render rich srcdoc frames same-origin to avoid the affected layout path and replace unsafe-inline with a fresh per-document CSP nonce. Only the trusted resize and interaction bridge receives the nonce; rendered part bodies remain non-executable. Move code-part copy behavior into that bridge so code surfaces remain functional under the stricter policy.
Add browser coverage proving injected scripts and handlers stay blocked while the bridge and code-copy path work.
Copy file name to clipboardExpand all lines: .changeset/chrome-srcdoc-retry.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,4 +2,4 @@
2
2
"sideshow": patch
3
3
---
4
4
5
-
Fix invisible markdown/mermaid/diff/terminal surfaces caused by a Chrome field trial that breaks layout measurement in opaque-origin srcdoc iframes. The viewer now retries the srcdoc parse after 2 seconds if the iframe is still stuck at minimum height.
5
+
Fix rich surfaces that intermittently render blank or clipped under a Chrome field trial. Rich `srcdoc` frames now avoid the affected opaque-origin layout path, while a per-document CSP nonce limits script execution to the trusted resize and interaction bridge.
0 commit comments