Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Issue 29860578: Issue 6775 - Work around filter data stored in IndexedDB getting lost on Microsoft Edge (Closed)

Created:
Aug. 21, 2018, 4:40 p.m. by geo
Modified:
Sept. 6, 2018, 7:42 p.m.
Reviewers:
Sebastian Noack, kzar
Visibility:
Public.

Description

This patch contains: 1.new module that handles creating backups using browser.storage.local 2.updates to ioIndexedDB, (restore logic in case of missing data and logic for reestablishing a connection to indexedDB if the user clears the data while the extension is running) 3.tests for the new code

Patch Set 1 #

Total comments: 31

Patch Set 2 : #

Total comments: 18

Patch Set 3 : #

Total comments: 10

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+402 lines, -64 lines) Patch
A lib/indexedDBBackup.js View 1 2 3 4 1 chunk +119 lines, -0 lines 0 comments Download
M lib/ioIndexedDB.js View 1 2 3 3 chunks +63 lines, -13 lines 0 comments Download
M metadata.edge View 1 chunk +3 lines, -0 lines 0 comments Download
A qunit/tests/indexedDBBackup.js View 1 2 3 4 1 chunk +126 lines, -0 lines 1 comment Download
M qunit/tests/ioIndexedDB.js View 6 chunks +91 lines, -51 lines 0 comments Download

Messages

Total messages: 10
geo
Aug. 21, 2018, 4:49 p.m. (2018-08-21 16:49:54 UTC) #1
Sebastian Noack
Hi Geo, thank a lot for working on this! https://codereview.adblockplus.org/29860578/diff/29860579/lib/indexedDBBackup.js File lib/indexedDBBackup.js (right): https://codereview.adblockplus.org/29860578/diff/29860579/lib/indexedDBBackup.js#newcode41 lib/indexedDBBackup.js:41: ...
Aug. 21, 2018, 8:26 p.m. (2018-08-21 20:26:25 UTC) #2
geo
https://codereview.adblockplus.org/29860578/diff/29860579/lib/indexedDBBackup.js File lib/indexedDBBackup.js (right): https://codereview.adblockplus.org/29860578/diff/29860579/lib/indexedDBBackup.js#newcode41 lib/indexedDBBackup.js:41: MIN_WRITE_INTERVAL = backupInterval || 60 * 1000; On 2018/08/21 ...
Aug. 31, 2018, 3:49 p.m. (2018-08-31 15:49:25 UTC) #3
Sebastian Noack
https://codereview.adblockplus.org/29860578/diff/29860579/lib/ioIndexedDB.js File lib/ioIndexedDB.js (right): https://codereview.adblockplus.org/29860578/diff/29860579/lib/ioIndexedDB.js#newcode171 lib/ioIndexedDB.js:171: }, 0); On 2018/08/31 15:49:25, geo wrote: > On ...
Aug. 31, 2018, 6:07 p.m. (2018-08-31 18:07:05 UTC) #4
geo
https://codereview.adblockplus.org/29860578/diff/29860579/lib/ioIndexedDB.js File lib/ioIndexedDB.js (right): https://codereview.adblockplus.org/29860578/diff/29860579/lib/ioIndexedDB.js#newcode221 lib/ioIndexedDB.js:221: .then(() => Promise.resolve()); On 2018/08/31 18:07:04, Sebastian Noack wrote: ...
Sept. 4, 2018, 4:12 p.m. (2018-09-04 16:12:08 UTC) #5
Sebastian Noack
https://codereview.adblockplus.org/29860578/diff/29874601/lib/indexedDBBackup.js File lib/indexedDBBackup.js (right): https://codereview.adblockplus.org/29860578/diff/29874601/lib/indexedDBBackup.js#newcode24 lib/indexedDBBackup.js:24: require("../adblockpluscore/lib/subscriptionClasses"); Nit: No reason to wrap twice here (also ...
Sept. 4, 2018, 9 p.m. (2018-09-04 21:00:02 UTC) #6
geo
https://codereview.adblockplus.org/29860578/diff/29874601/lib/indexedDBBackup.js File lib/indexedDBBackup.js (right): https://codereview.adblockplus.org/29860578/diff/29874601/lib/indexedDBBackup.js#newcode24 lib/indexedDBBackup.js:24: require("../adblockpluscore/lib/subscriptionClasses"); On 2018/09/04 21:00:01, Sebastian Noack wrote: > Nit: ...
Sept. 5, 2018, 2:04 p.m. (2018-09-05 14:04:34 UTC) #7
Sebastian Noack
https://codereview.adblockplus.org/29860578/diff/29875579/lib/indexedDBBackup.js File lib/indexedDBBackup.js (right): https://codereview.adblockplus.org/29860578/diff/29875579/lib/indexedDBBackup.js#newcode27 lib/indexedDBBackup.js:27: let minWriteInterval; Nit: This is no longer a "min" ...
Sept. 5, 2018, 2:34 p.m. (2018-09-05 14:34:49 UTC) #8
geo
https://codereview.adblockplus.org/29860578/diff/29875579/lib/indexedDBBackup.js File lib/indexedDBBackup.js (right): https://codereview.adblockplus.org/29860578/diff/29875579/lib/indexedDBBackup.js#newcode27 lib/indexedDBBackup.js:27: let minWriteInterval; On 2018/09/05 14:34:49, Sebastian Noack wrote: > ...
Sept. 5, 2018, 3:59 p.m. (2018-09-05 15:59:09 UTC) #9
Sebastian Noack
Sept. 5, 2018, 4:11 p.m. (2018-09-05 16:11:46 UTC) #10
LGTM

Powered by Google App Engine
This is Rietveld