kolibri
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
❌ 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
TypeErrorfrom the vendored player. - The vendored
kolibri/plugins/bloompub_viewer/static/bloom/bloomPlayer-02a77592459cdf0b1bd7.min.jscallsArray.prototype.at(Chromium 92+) without a polyfill:this.urlPrefix.split("/").at(-2)in the background-music URL builder andc().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".
developdoes not throw: #15657 replaced this bundle with an in-tree build that includes core-js'sArray.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
- Install a release-v0.20.x Android build on an Android 11 emulator (WebView 83).
- Import the Bloom folder of the Kolibri QA Channel (token
nakav-mafak). - In Learn > Library > Kolibri QA Channel > Bloom > bloompub, open "Стаза од давнина" and tap the next-page arrow to page 43.
- 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 functionerror. - [ ] 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.
Folded into #16025.