Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

chore(replay): remove dead replay-wait-for-full-snapshot-playback flag (#59047)

Kim Svatos Duganfa795d8323e4
diff --git a/frontend/src/lib/constants.tsx b/frontend/src/lib/constants.tsx
index 4863621947d7..aea272397943 100644
--- a/frontend/src/lib/constants.tsx
+++ b/frontend/src/lib/constants.tsx
@@ -447,7 +447,6 @@ export const FEATURE_FLAGS = {
REPLAY_UI_REDESIGN_2026: 'replay-ui-redesign-2026', // owner: #team-replay, New UI layout for replay
REPLAY_VIDEO_BASED_SUMMARIZATION: 'replay-video-based-summarization', // owner: #team-replay
REPLAY_VISION: 'replay-vision', // owner: #team-replay
- REPLAY_WAIT_FOR_IFRAME_READY: 'replay-wait-for-full-snapshot-playback', // owner: @ksvat #team-replay
REPLAY_X_LLM_ANALYTICS_CONVERSATION_VIEW: 'replay-x-llm-analytics-conversation-view', // owner: @pauldambra #team-replay
REVENUE_ANALYTICS: 'revenue-analytics', // owner: @rafaeelaudibert #team-customer-analytics
REVENUE_FIELDS_IN_POWER_USERS_TABLE: 'revenue-fields-in-power-users-table', // owner: @arthurdedeus #team-customer-analytics
diff --git a/frontend/src/scenes/session-recordings/player/sessionRecordingPlayerLogic.ts b/frontend/src/scenes/session-recordings/player/sessionRecordingPlayerLogic.ts
index c72c999173f6..b58e6c7772f0 100644
--- a/frontend/src/scenes/session-recordings/player/sessionRecordingPlayerLogic.ts
+++ b/frontend/src/scenes/session-recordings/player/sessionRecordingPlayerLogic.ts
@@ -31,7 +31,6 @@ import { EventType, IncrementalSource, eventWithTime } from '@posthog/rrweb-type
import api from 'lib/api'
import { exportsLogic } from 'lib/components/ExportButton/exportsLogic'
-import { FEATURE_FLAGS } from 'lib/constants'
import { dayjs, now } from 'lib/dayjs'
import { featureFlagLogic } from 'lib/logic/featureFlagLogic'
import { clamp, downloadFile, findLastIndex, objectsEqual, uuid } from 'lib/utils'
@@ -1338,7 +1337,6 @@ export const sessionRecordingPlayerLogic = kea<sessionRecordingPlayerLogicType>(
replayer.on('fullsnapshot-rebuilded', () => {
const iframeContentWindow = replayer.iframe.contentWindow
- const iframeDocument = iframeContentWindow?.document
const iframeFetch = iframeContentWindow?.fetch
const setupErrorHandlers = (): void => {
@@ -1377,44 +1375,7 @@ export const sessionRecordingPlayerLogic = kea<sessionRecordingPlayerLogicType>(
}
}
- if (
- values.featureFlags[FEATURE_FLAGS.REPLAY_WAIT_FOR_IFRAME_READY] &&
- iframeDocument &&
- iframeDocument.readyState === 'loading'
- ) {
- let pauseTimeoutId: ReturnType<typeof setTimeout> | null = null
-
- const onReady = (): void => {
- setupErrorHandlers()
-
- if (
- replayer &&
- values.currentTimestamp !== undefined &&
- values.sessionPlayerData.start
- ) {
- const currentTime =
- values.currentTimestamp - values.sessionPlayerData.start.valueOf()
- replayer.pause(currentTime)
- pauseTimeoutId = setTimeout(() => {
- if (replayer) {
- replayer.pause(currentTime)
- }
- }, 0)
- }
-
- iframeDocument.removeEventListener('DOMContentLoaded', onReady)
- }
- iframeDocument.addEventListener('DOMContentLoaded', onReady)
-
- iframeCleanups.push(() => {
- iframeDocument.removeEventListener('DOMContentLoaded', onReady)
- if (pauseTimeoutId !== null) {
- clearTimeout(pauseTimeoutId)
- }
- })
- } else {
- setupErrorHandlers()
- }
+ setupErrorHandlers()
})
actions.setPlayer({ replayer, windowId })