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

Inter-extension communication with Cliqz #101

Merged
merged 6 commits into from Jul 19, 2018

Conversation

@sammacbeth
Copy link
Contributor

@sammacbeth sammacbeth commented Jun 13, 2018

This is a PoC of messaging between Ghostery and Cliqz extension, allowing Ghostery to call actions on Cliqz modules.

The first use case is importing settings from the antitracking and adblocker modules in Cliqz browser, allowing for the migration of this functionality from cliqz extension to Ghostery. The Cliqz side of this communication is implemented here.

Further work is needed to define the on-boarding flow for this migration, as currently antitracking and adblocker are forced off in Cliqz browser.

@sammacbeth sammacbeth requested review from zarembsky and ghostery/ghostery as code owners Jun 13, 2018
.reduce((lst, val) => lst.concat(val), [])
.map(s => s.replace(/^(http[s]?:\/\/)?(www\.)?/, ''))
.filter(s => !existingSites.has(s)));
log('add whitelisted sites', [...newSites]);

This comment has been minimized.

@zarembsky

zarembsky Jun 15, 2018
Contributor

Should be:

const site_whitelist;
newSites.forEach((s) => {
       site_whitelist.push(s);
}
conf.site_whitelist = site_whitelist;

Setter is proxied on conf, but it reacts only changes to immediate children properties.

Copy link
Contributor

@zarembsky zarembsky left a comment

  1. Building conf.site_whitelist (line 46) - see inline comment.
  2. Do you need to access IMPORT_RUN_FLAG in browser-core code? If not - why not using conf?
sammacbeth added 2 commits Jun 12, 2018
@sammacbeth sammacbeth force-pushed the sammacbeth:import-cliqz-settings branch from c0351c0 to d055828 Jun 28, 2018
@sammacbeth
Copy link
Contributor Author

@sammacbeth sammacbeth commented Jun 28, 2018

Thanks for the comments @zarembsky. I've updated the PR to address these issues.

sammacbeth and others added 3 commits Jun 28, 2018
@christophertino christophertino merged commit d759663 into ghostery:develop Jul 19, 2018
1 check passed
1 check passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
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 issues

Successfully merging this pull request may close these issues.

None yet

3 participants