Project

General

Profile

Feature #98

use IndexedDB for storing structured data

Added by koszko 6 months ago. Updated 3 months ago.

Status:
Closed
Priority:
High
Assignee:
-
Start date:
12/01/2021
Due date:
% Done:

100%

Estimated time:

Description

In all WebExtension guides the storage API was presented as the thing to use. I thought all other storage mechanisms are either unavailable or non-persistent when used from WebExtension. Now, after almost a year of fighting the storage.local, I realized IndexedDB is also available and will remain so even in ManifestV3. It supports transactions, so no routing of storage writes/reads to background scripts will be needed :)

The only thing IndexedDB lacks is observability. storage.local might still be useful to notify different contexts of changes in the db. It would then be used in parallel with IndexedDB and we'd reset it on every browser startup.

History

#1

Updated by koszko 6 months ago

  • Description updated (diff)
#2

Updated by koszko 6 months ago

  • Description updated (diff)
#3

Updated by koszko 3 months ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

In master

Also available in: Atom PDF