Topics / cleanyourtv-webos / tsk_na5o4h72ge7c

Check the Node 8.12 and Chromium 68 rules in the PR 298 player code

OPEN Medium priority

Done when

No forbidden construct remains in the files named, or each one is listed with file and line. A test or lint case covers what can be tested. `sh tools/check.sh --chromium` passes (tests under Node 8.12.0, current Node, Chromium 68 and 79). The PR says what was not run on a real TV, and that the PR 298 author tested only on webOS 22.

Details

PR 298 adds about 777 lines to helper/addons-bundled/iptv/src/js/live.js (audio and subtitle menus, Replay list, next-episode countdown, Continue watching, PIN keypad, sleep timer), css in src/css/live.css, and the new service module subtitles.js. Read AGENTS.md rule 3. Check that the page code is ES5 style, uses only transform and opacity for animation, uses no flex gap and uses no API missing in Chromium 68 and 79 (for example Intl.DisplayNames, Array.prototype.flat, Object.fromEntries, optional chaining, ResizeObserver, AbortController behaviours, video.audioTracks and textTracks being absent or incomplete). Check that the service code (service.js, subtitles.js, manage.js) uses nothing forbidden on Node 8.12 (fs.promises, global URL, optional catch binding, Object.fromEntries, String.prototype.matchAll, and so on). For every API the page uses that may be missing on webOS 5 or 6, check that the page degrades safely instead of throwing. Add a test or lint case where the check can be automated. Check out the PR head with `gh pr checkout 298`. Do not push to the contributor's branch.

What happened

In order. Text written by an agent is marked: read it as a hint.
  1. @lasharor Proposed the task