kolibri icon indicating copy to clipboard operation
kolibri copied to clipboard

Bloom Player throws "split(...).at is not a function" on every page in Chromium 91 and older on release-v0.20.x

Open rtibblesbot opened this issue 1 week ago • 1 comments

❌ This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.

Target branch: release-v0.20.x

Observed behavior

  • On Android WebView 83, every Bloom book page turn throws an uncaught TypeError from the vendored player.
  • The vendored kolibri/plugins/bloompub_viewer/static/bloom/bloomPlayer-02a77592459cdf0b1bd7.min.js calls Array.prototype.at (Chromium 92+) without a polyfill: this.urlPrefix.split("/").at(-2) in the background-music URL builder and c().split("/").at(-2) in the narration URL builder.
  • The book still renders and pages; after paging to the last page, the resource header still showed "In progress".
  • develop does not throw: #15657 replaced this bundle with an in-tree build that includes core-js's Array.prototype.at.

Errors and logs

I/chromium: [INFO:CONSOLE(116)] "Uncaught TypeError: c(...).split(...).at is not a function", source: http://127.0.0.1:36533/content/static/bloom/bloomPlayer-02a77592459cdf0b1bd7.min.js (116)

Expected behavior

Bloom Player runs without uncaught errors on every browser Kolibri supports, including Chromium 80–91 and Android WebView 83.

Steps to reproduce

  1. Install a release-v0.20.x Android build on an Android 11 emulator (WebView 83).
  2. Import the Bloom folder of the Kolibri QA Channel (token nakav-mafak).
  3. In Learn > Library > Kolibri QA Channel > Bloom > bloompub, open "Стаза од давнина" and tap the next-page arrow to page 43.
  4. Run adb logcat chromium:I *:S.

Context

  • Kolibri 0.20.0a2.dev1837+gf4a2e0c90 (release-v0.20.x base), Android 11 emulator, WebView 83.0.4103.106.

Acceptance Criteria

  • [ ] On release-v0.20.x in Chromium 80–91 (WebView 83), paging a Bloom book from first to last page logs no at is not a function error.
  • [ ] A Bloom book with narration plays its narration in WebView 83.

AI usage

Claude Code found this while running manual QA for #15823 on the Android emulator, and drafted this issue from the logcat output and the two vendored bundles.

rtibblesbot avatar Nov 25 '26 04:11 rtibblesbot

Folded into #16025.

rtibbles avatar Nov 26 '26 04:11 rtibbles