Skip to content

v1.3.1 — Loosen frame-src so Live Preview tiles load

Choose a tag to compare

@cstrat cstrat released this 24 Apr 14:12
· 2 commits to master since this release

v1.3.1 — Loosen frame-src so Live Preview tiles always load

Hotfix for v1.3.0. The renderer CSP introduced in 1.3.0 set frame-src https: http:, which empirically prevented <webview> tiles from loading on some deployed environments — tiles stayed blank while the log kept scrolling through URLs whose navigations were silently refused.

Fixed

  • frame-src widened to *. The preview tiles are already isolated in the persist:stg-preview session where downloads, permission prompts, and popups are denied in the main process — the frame-src restriction was cosmetic, not load-bearing, and the rest of the CSP (script-src 'self', object-src 'none', base-uri 'none') still defuses the XSS sinks that 1.3.0 also escaped.

Install

Format arm64 x86-64
.deb (recommended) STG-1.3.1-arm64.deb STG-1.3.1-amd64.deb
.AppImage STG-1.3.1-arm64.AppImage STG-1.3.1-x86_64.AppImage
sudo apt install ./STG-1.3.1-amd64.deb     # or _arm64.deb

apt upgrades in place over 1.3.0 / 1.2.x.

Included (from 1.3.0)

  • Renderer CSP (script-src 'self', object-src 'none', base-uri 'none')
  • HTML escaping at every dynamic innerHTML sink
  • Config sanitiser on load + import (rejects __proto__, non-http URLs, out-of-range counts)