EFForg / badger-sett

Automated training for Privacy Badger. Badger Sett automates browsers to visit websites to produce fresh Privacy Badger tracker data.
https://www.eff.org/badger-pretraining
MIT License
119 stars 13 forks source link

Do we have a race condition with dump_data? #36

Closed ghostwords closed 5 years ago

ghostwords commented 5 years ago

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).

Compare to the waiting logic in Privacy Badger's tests.