Skip to content

[codex] Fix literal TV staging asset replacement - #16

Draft
AndreKalberer wants to merge 1 commit into
mainfrom
codex/hbr005-tv-staging
Draft

AndreKalberer wants to merge 1 commit into
mainfrom
codex/hbr005-tv-staging

Conversation

@AndreKalberer

Copy link
Copy Markdown
Owner

LG TV staging interpreted JavaScript replacement tokens such as $& inside bundled HLS as HTML replacement instructions. This corrupted the generated page with nested script tags and prevented HLS from parsing. Callback replacements now preserve dynamic asset contents literally, including JavaScript, CSS, embedded image attributes, CSP, and Samsung version capture.

Adds a deterministic regression covering replacement tokens and script terminators across all six bundled scripts, plus a reusable smoke check for the actual staged page. The regression runs in npm test.

Validation:

  • Fresh npm test and npm run tv:stage passed.
  • Actual generated LG page: Hls executes, six inline scripts, no external scripts or leaked JavaScript nodes, no overflow at 1920/1280/720 widths, local WAV playback readiness, and no uncaught exceptions.
  • Independent review reported no findings; staged and extracted LG IPK verification passed, including the combined 2.3.8 integration build.

Physical TV hardware remains untested. Scope is four source/test files; generated packages and local profiles are excluded.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant