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

BUG: Ghostery doesn't init cliqz properly leading to console statement on every page load #135

Closed
jhaenchen opened this issue Jul 13, 2018 · 4 comments
Assignees

Comments

@jhaenchen
Copy link

@jhaenchen jhaenchen commented Jul 13, 2018

Description

I noticed the following warning in my console:

loading pref showConsoleLogs before prefs were initialised, you will not get the correct result

This was emitted from the Ghostery extension content-bundle.js file. Upon closer examination that statement is emitted from here and is emitted because init() is not called before reading the prefs. I suspect then that it could be fixed by calling init on the created App instance here

Expected Behavior

Not to see a console statement on every page load.

Actual Behavior

I see a console statement.

Steps to Reproduce

  1. Load any page with dev tools open.
  2. Observe the console statement.

Versions

  • Browser: Chrome 67.0.3396.99
  • OS: Mac 10.13.5
  • Node: N/A
  • NPM: N/A
@christophertino
Copy link
Member

@christophertino christophertino commented Jul 31, 2018

@chrmod Any ideas on this?

@philipp-classen
Copy link
Contributor

@philipp-classen philipp-classen commented Aug 8, 2018

@jhaenchen Thanks for your help. I think, you are right. The main idea to fix it is to always wait for the initialization of the prefs.init(), and if necessary start with a default value until the promise resolves.

Do you still get the error message with the current Ghostery release? If you can show me how to reproduce, I will have a look. I tested on Linux not on Mac, but this should not be OS dependent.

There were also some changes recently on the browser-core side. Maybe it is already fixed there, but I do not think the latest Ghostery release has those changes yet.

@jhaenchen
Copy link
Author

@jhaenchen jhaenchen commented Aug 8, 2018

@philipp-classen I can no longer reproduce the issue! Thanks everyone! I'll close if there are no objections.

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

Successfully merging a pull request may close this issue.

None yet
4 participants