Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors on browser start in Chrome #1240

Closed
ghostwords opened this issue Mar 8, 2017 · 0 comments
Closed

Errors on browser start in Chrome #1240

ghostwords opened this issue Mar 8, 2017 · 0 comments

Comments

@ghostwords
Copy link
Member

When your Chrome browser is set up to remember open windows/tabs, Privacy Badger tends to run repeatedly into errors on browser start, probably as the remembered tabs are being loaded with Privacy Badger not yet fully initialized.

Some error strings (see also screenshots below):

  • Can't initialize cache from getBadgerStorageObject. You are using this API improperly
  • Error in event handler for runtime.onMessage: TypeError: Cannot read property 'getItem' of undefined
  • Error in event handler for webRequest.onBeforeRequest/6: TypeError: Cannot read property 'getItem' of undefined
  • Error in event handler for webRequest.onHeadersReceived/3: TypeError: Cannot read property 'getItem' of undefined
  • Error in event handler for webRequest.onBeforeSendHeaders/2: TypeError: Cannot read property 'getItem' of undefined

DNT policy checking seems to produce errors related to storage not yet being ready too. You have to update timestamps for some domains to be ready for rechecking to see these.

The fix would probably be to delay attaching listeners until Privacy Badger is actually ready.

This should be relatively low priority since PB seems to function fine afterwards.

Firefox is probably similarly affected, but I haven't checked yet.

screenshot from 2017-03-08 13 00 26
screenshot from 2017-03-08 13 01 04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant