Page MenuHomePhabricator

[web] update `WorkerCryptoStore` to handle session version
ClosedPublic

Authored by kamil on Mon, Apr 8, 6:47 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 22, 1:46 AM
Unknown Object (File)
Wed, Apr 17, 8:39 AM
Unknown Object (File)
Tue, Apr 16, 10:42 AM
Unknown Object (File)
Tue, Apr 16, 7:25 AM
Unknown Object (File)
Mon, Apr 15, 8:48 PM
Unknown Object (File)
Sun, Apr 14, 11:13 AM
Unknown Object (File)
Sun, Apr 14, 9:33 AM
Unknown Object (File)
Sat, Apr 13, 11:03 AM
Subscribers

Details

Summary

Updates in-memory CryptoStore to work with session versions.

Depends on D11582

Test Plan

Tested in TBD

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kamil held this revision as a draft.
kamil published this revision for review.Tue, Apr 9, 6:01 AM
kamil added inline comments.
web/shared-worker/worker/worker-crypto.js
439 ↗(On Diff #38905)

updated in D11586

467 ↗(On Diff #38905)

updated in D11586

This revision is now accepted and ready to land.Wed, Apr 10, 6:31 AM
web/shared-worker/worker/worker-crypto.js
63

Sorry for adding this comment late, but this could be made read-only

web/shared-worker/worker/worker-crypto.js
63

If I recall correctly this was by design, so we can modify one session in in-memory cryptoStore (see line 74) without updating the entire object.

If you still think it's better to make this read-only and update rest of the code I can put up a diff

web/shared-worker/worker/worker-crypto.js
63

Thanks for explaining! Looks like it's been thought through, so it's fine to leave as-is