: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
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.tsxindex 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 replayREPLAY_VIDEO_BASED_SUMMARIZATION: 'replay-video-based-summarization', // owner: #team-replayREPLAY_VISION: 'replay-vision', // owner: #team-replay- REPLAY_WAIT_FOR_IFRAME_READY: 'replay-wait-for-full-snapshot-playback', // owner: @ksvat #team-replayREPLAY_X_LLM_ANALYTICS_CONVERSATION_VIEW: 'replay-x-llm-analytics-conversation-view', // owner: @pauldambra #team-replayREVENUE_ANALYTICS: 'revenue-analytics', // owner: @rafaeelaudibert #team-customer-analyticsREVENUE_FIELDS_IN_POWER_USERS_TABLE: 'revenue-fields-in-power-users-table', // owner: @arthurdedeus #team-customer-analyticsdiff --git a/frontend/src/scenes/session-recordings/player/sessionRecordingPlayerLogic.ts b/frontend/src/scenes/session-recordings/player/sessionRecordingPlayerLogic.tsindex 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-typeimport 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?.documentconst iframeFetch = iframeContentWindow?.fetchconst 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 })