• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

HSF / phoenix / 33948415449
55%
master: 38%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 05 Sep 2026 05:58AM UTC
Jobs 1
Files 58
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

05 Sep 2026 05:54AM UTC coverage: 46.285% (+0.01%) from 46.273%
33948415449

push

github

web-flow
fix: revoke object URLs after use (#992)

* fix: revoke object URLs after use

`URL.createObjectURL` keeps the underlying Blob or File alive until the URL
is revoked, so an unrevoked URL pins the whole file in memory for the
lifetime of the page.

`handleROOTInput` and `handleRootJSONInput` both created an object URL for
the selected file and never revoked it. ROOT and PHYSLITE files are routinely
hundreds of MB, so loading a few geometries leaks that much memory until the
tab is reloaded. `saveFile` had the same omission for the Blob it downloads.

Revoke in a `finally` in both dialog handlers, so the URL is released whether
the geometry loads or the load throws. Both loaders are async and finish
reading the URL before resolving, so this cannot revoke it too early.

`saveFile` needs different treatment: the anchor click starts the download
asynchronously, and revoking synchronously can cancel it, so release the URL
on the next tick once the browser holds its own reference.

This is an oversight rather than a convention - the other call sites
(session-pill, kinematics-panel, masterclass-panel and three-manager) all
revoke correctly.

Added tests covering that saveFile revokes what it creates, and does not
revoke synchronously.

Fixes #990

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* test(event-display): restore URL globals after saveFile tests

The tests replace `URL.createObjectURL` and `URL.revokeObjectURL`, which
jsdom does not implement. `jest.restoreAllMocks` does not undo a direct
property assignment, so put the original descriptors back explicitly.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>

824 of 2087 branches covered (39.48%)

Branch coverage included in aggregate %.

3 of 3 new or added lines in 1 file covered. (100.0%)

3107 of 6406 relevant lines covered (48.5%)

204.66 hits per line

Jobs
ID Job ID Ran Files Coverage
1 33948415449.1 05 Sep 2026 05:58AM UTC 58
46.29
GitHub Action Run
Source Files on build 33948415449
  • Tree
  • List 58
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #33948415449
  • 688327d8 on github
  • Prev Build on main (#33861084780)
  • Next Build on main (#33948550759)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc