1.372.10
Patch Changes
-
#3544
d120042Thanks @ksvat! - fix: stop session recording before destroying sessionManager inopt_out_capturing()withcookieless_mode: "on_reject". Previously, queued/throttled rrweb events (e.g. mousemove) could fire after the sessionManager was set toundefinedand throw[SessionRecording] must be started with a valid sessionManager. Also adds a defensive early-return inonRRwebEmitso any remaining late events bail out instead of throwing.
(2026-05-07) -
#3542
94a5ba0Thanks @TueHaulund! - Preserve<style>textContent when the browser's CSSOM serialization would
emit empty longhands fromvar()inside a shorthand. When a stylesheet has
e.g.padding: var(--p); padding-bottom: var(--pb);, browsers store the
shorthand's longhands with empty token lists per the CSS Custom Properties
spec, andCSSStyleRule.cssTextre-emits them aspadding-top: ; padding-right: ; padding-left: ;. The previous behavior replaced the
<style>text with that corrupted output, silently dropping layout rules
on replay. We now detect the empty-longhand pattern and keep the original
textContent in that case. Affects users of any CSS-in-JS framework that
combinesvar()with shorthands (Chakra UI v3, Panda CSS, Emotion, etc.).
Same class of bug as rrweb-io/rrweb#1667. (2026-05-07) -
Updated dependencies []:
- @posthog/types@1.372.10
- @posthog/core@1.28.4