Page MenuHomePhabricator

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

Authored by kamil on Thu, Mar 20, 5:02 AM.
Tags
None
Referenced Files
F5118081: D14483.id47509.diff
Wed, Apr 2, 10:08 PM
Unknown Object (File)
Sun, Mar 30, 3:23 AM
Unknown Object (File)
Sat, Mar 29, 2:46 PM
Unknown Object (File)
Fri, Mar 28, 3:17 PM
Unknown Object (File)
Fri, Mar 28, 2:35 PM
Unknown Object (File)
Thu, Mar 27, 8:40 PM
Unknown Object (File)
Thu, Mar 27, 12:23 PM
Unknown Object (File)
Thu, Mar 27, 11:03 AM
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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.Thu, Mar 20, 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.Thu, Mar 20, 5:54 AM