electron/shell
trop[bot] 06b2741d44
fix: invalidate sandboxed preload code cache when source changes without changing length (#51933)
V8's CachedData source check hashes only the source length, so a preload
edit that preserves byte length consumed the stale blob and ran the old
bytecode. Bind cache entries to sha256 of the source: the renderer ships
the hash of what it compiled, the browser stores it in the cache entry
and only serves a blob whose hash matches the contents it just read.
Reject cache writes for preload ids not served to the sending frame.

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Keeley Hammond <vertedinde@electronjs.org>
2026-06-09 05:39:57 +00:00
..
app perf: backport startup performance improvements to 42-x-y (#51602, #51697, #51703) (#51831) 2026-06-02 23:22:48 -07:00
browser fix: invalidate sandboxed preload code cache when source changes without changing length (#51933) 2026-06-09 05:39:57 +00:00
common fix: invalidate sandboxed preload code cache when source changes without changing length (#51933) 2026-06-09 05:39:57 +00:00
renderer fix: invalidate sandboxed preload code cache when source changes without changing length (#51933) 2026-06-09 05:39:57 +00:00
services/node chore: bump chromium to 148.0.7768.0 (42-x-y) (#50781) 2026-04-07 15:30:18 -04:00
utility fix: broken OOP window.print() on macOS/Linux (#45214) 2025-01-20 10:23:44 +01:00