Page MenuHomePhabricator

[web] clear old Olm session before creating new one
ClosedPublic

Authored by kamil on Mar 20 2025, 5:02 AM.
Tags
None
Referenced Files
F6182236: D14483.diff
Wed, Apr 23, 7:32 AM
Unknown Object (File)
Fri, Apr 18, 5:06 AM
Unknown Object (File)
Wed, Apr 9, 12:30 PM
Unknown Object (File)
Wed, Apr 9, 9:21 AM
Unknown Object (File)
Tue, Apr 8, 3:30 PM
Unknown Object (File)
Sun, Apr 6, 8:31 AM
Unknown Object (File)
Sun, Apr 6, 12:10 AM
Unknown Object (File)
Wed, Apr 2, 10:08 PM
Subscribers

Details

Summary

Some context in ENG-10405.

I found this issue using this PR.

Depends on D14482

Test Plan

Used memory is the same after overwriting session

Diff Detail

Repository
rCOMM Comm
Branch
logging
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

kamil held this revision as a draft.
web/shared-worker/worker/worker-crypto.js
762 ↗(On Diff #47495)

In this case, do we fail to call .free for the new session, which is discarded?

kamil published this revision for review.Mar 20 2025, 5:53 AM
kamil added inline comments.
web/shared-worker/worker/worker-crypto.js
762 ↗(On Diff #47495)

yes, good catch - updated and I looked through the file to find other throws/early-exits

This revision is now accepted and ready to land.Mar 20 2025, 5:54 AM