Page MenuHomePhabricator

[web] handle clearing sensitive data on database module
ClosedPublic

Authored by kamil on Jul 25 2023, 2:15 AM.
Tags
None
Referenced Files
F2157235: D8612.id29135.diff
Mon, Jul 1, 1:24 AM
F2157234: D8612.id29007.diff
Mon, Jul 1, 1:24 AM
F2157165: D8612.diff
Mon, Jul 1, 1:19 AM
Unknown Object (File)
Sat, Jun 29, 7:32 PM
Unknown Object (File)
Sat, Jun 29, 2:04 PM
Unknown Object (File)
Tue, Jun 25, 9:39 PM
Unknown Object (File)
Mon, Jun 24, 3:10 AM
Unknown Object (File)
Sun, Jun 23, 11:34 AM
Subscribers

Details

Summary

Right now in addition to delete indexedDB content we're also deleting virtual file and destructing module.

Test Plan

Test login/logout

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.Jul 25 2023, 2:23 AM
kamil added inline comments.
web/database/worker/db-worker.js
150–151 ↗(On Diff #29007)

Flow forced this because of this sqliteQueryExecutor = null; in line 221

We could probably simplify error handling by passing sqliteQueryExecutor as an argument (that's never null) to the operation handling functions. And move all "Database not initialized" error handling to the main funciton

This revision is now accepted and ready to land.Jul 25 2023, 6:19 AM

We could probably simplify error handling by passing sqliteQueryExecutor as an argument (that's never null) to the operation handling functions. And move all "Database not initialized" error handling to the main funciton

Good call, created ENG-4522