Do we have a race condition with dump_data()? We load Badger's background page and query storage. Whenever we load the background page, we reinitialize another copy of background.js with all that entails. What if Badger's storage isn't yet ready? Basically if we depend on anything asynchronous, it may not yet be ready.
If this is a problem, it may only show up in Chrome (the faster browser).
Do we have a race condition with
dump_data()
? We load Badger's background page and query storage. Whenever we load the background page, we reinitialize another copy ofbackground.js
with all that entails. What if Badger's storage isn't yet ready? Basically if we depend on anything asynchronous, it may not yet be ready.If this is a problem, it may only show up in Chrome (the faster browser).
Compare to the waiting logic in Privacy Badger's tests.