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
Unknown Object (File)
Tue, Nov 5, 7:07 AM
Unknown Object (File)
Tue, Nov 5, 7:07 AM
Unknown Object (File)
Tue, Nov 5, 7:07 AM
Unknown Object (File)
Tue, Nov 5, 7:04 AM
Unknown Object (File)
Fri, Nov 1, 3:57 PM
Unknown Object (File)
Oct 2 2024, 10:01 PM
Unknown Object (File)
Sep 28 2024, 1:55 AM
Unknown Object (File)
Sep 28 2024, 1:55 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
No Lint Coverage
Unit
No Test Coverage

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

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