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

GH 1960 Intro Hub Forgot Password #506

Closed
wants to merge 20 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
51c9195
update npm dependencies and nvm version
christophertino Jan 24, 2020
851235f
GH-1911 Remove edge legacy code (#492)
benstrumeyer Jan 30, 2020
be339da
update changelog
christophertino Jan 30, 2020
e1de727
Update browser-core to v7.43 (#490)
sammacbeth Jan 30, 2020
e3610ea
fix lint errors and clean up yarn.lock
christophertino Jan 30, 2020
4afff29
Fix 'trust site' on localhost (#491)
benstrumeyer Feb 3, 2020
a597881
change manifest applications property to browser_specific_settings
christophertino Feb 3, 2020
02d5bed
update dependencies
christophertino Feb 3, 2020
371fae8
GH-1791 / add locale-appropriate formatting to historical stats numbe…
wlycdgr Feb 13, 2020
cb14abf
GH-1936 & GH-1920 Remove email opt-in from account creation in panel …
benstrumeyer Feb 14, 2020
22c66d6
Disable Purplebox on Firefox Android (#494)
benstrumeyer Feb 14, 2020
eb278c4
update changelog
christophertino Feb 14, 2020
b9186bc
GH-1947 Plus checkout UTM params (#499)
benstrumeyer Feb 21, 2020
a726e87
update translations
christophertino Feb 21, 2020
8b8bb4f
bump browser core
christophertino Feb 25, 2020
79bf18f
GH-1477 Wildcard/Regex Whitelisting (#501)
benstrumeyer Mar 3, 2020
7b6c32e
Enable whitelisting of Unknown Trackers from Ad Block module (#503)
christophertino Mar 3, 2020
0f32e80
Add ForgotPasswordViewto hub. Move related code from panel to shared …
benstrumeyer Mar 5, 2020
7e61aee
Update snapshot
benstrumeyer Mar 5, 2020
aa44a15
Merge branch 'develop' into GH-1960/intro-hub-forgot-password
benstrumeyer Mar 5, 2020
File filter
Filter file types
Jump to
Jump to file
Failed to load files.

Always

Just for now

Enable whitelisting of Unknown Trackers from Ad Block module (#503)
* enable whitlisting of Unknown ads

* GH-1805 Allow whitelisting of Unknown trackers from AdBlocker module

* update changelog
  • Loading branch information
christophertino committed Mar 3, 2020
commit 7b6c32e6d14401f0bb2b769d48787c5229c6be07
@@ -2,7 +2,8 @@

+ Migrate to the new Chromium-based Edge browser (#492)
+ Disable Purplebox on Firefox Android (#494)
+ Allow white-listing of regex and wildcard domains (#497)
+ Allow white-listing of wildcard domains (#501)
+ Allow site-specific white-listing of Unknown Trackers caught by Ad-Blocker (#503)
+ Fixes issue when adding localhost to Trusted Sites with port value (Fixes #470)
+ Add locale-appropriate formatting to historical stats numbers (#498)
+ Remove email opt-in from account creation in panel and hub (#495)
@@ -342,7 +342,7 @@ class Tracker extends React.Component {
this.clickTrackerRestrict,
this.clickTrackerStatus,
)}
{isUnknown && tracker.type === 'antiTracking' && renderUnknownTrackerButtons(
{isUnknown && renderUnknownTrackerButtons(
this.handleCliqzTrackerWhitelist,
tracker.whitelisted,
tracker.siteRestricted,
@@ -77,7 +77,7 @@ export const renderUnknownTrackerButtons = (
</span>

{/* USE INLINE SVG FOR ANTI-TRACKING SHIELD TO CHANGE COLORS WITH CSS */}
<span className="t-tooltip-up-left" data-g-tooltip={t('panel_tracker_scrub_tooltip')}>
<span className="t-tooltip-up-left" data-g-tooltip={type === 'antiTracking' ? t('panel_tracker_scrub_tooltip') : t('panel_tracker_restrict_tooltip')}>
<svg className="cliqz-tracker-scrub" onClick={handleCliqzTrackerWhitelist} width="20px" height="20px" viewBox="0 0 20 20">
<g transform="translate(1 1)" fill="none" fillRule="evenodd">
<path className="border" stroke="#00AEF0" d="M-.5-.5h18.3v18.217H-.5z" />
@@ -104,23 +104,14 @@ export default (state = initialState, action) => {
}
case UPDATE_CLIQZ_MODULE_DATA:
case UPDATE_SUMMARY_DATA: {
if (action.data.antiTracking) {
if (action.data.antiTracking && action.data.adBlock) {
const { antiTracking, adBlock } = action.data;
let adBlockUnknownTrackers = adBlock.unknownTrackers;
antiTracking.unknownTrackers.forEach((tracker) => {
if (tracker.whitelisted) {
adBlockUnknownTrackers = adBlockUnknownTrackers.filter(adBlockTracker => (
adBlockTracker.name !== tracker.name
));
}
});

const unknownCategory = {
totalUnsafeCount: antiTracking.totalUnsafeCount + adBlock.totalUnsafeCount,
totalUnknownCount: antiTracking.totalUnknownCount + adBlock.totalUnknownCount,
trackerCount: antiTracking.trackerCount + adBlock.trackerCount,
unknownTrackerCount: antiTracking.unknownTrackerCount + adBlock.unknownTrackerCount,
unknownTrackers: Array.from(new Set(antiTracking.unknownTrackers.concat(adBlockUnknownTrackers))),
unknownTrackers: Array.from(new Set(antiTracking.unknownTrackers.concat(adBlock.unknownTrackers))),
whitelistedUrls: Object.assign({}, antiTracking.whitelistedUrls, adBlock.whitelistedUrls),
hide: state.unknownCategory.hide,
};
@@ -45,7 +45,7 @@
"@cliqz/adblocker-circumvention": "^1.5.0",
"@cliqz/url-parser": "^1.1.1",
"base64-js": "^1.3.1",
"browser-core": "https://github.com/cliqz-oss/browser-core/releases/download/v7.43.3/browser-core-7.43.3.tgz",
"browser-core": "https://github.com/cliqz-oss/browser-core/releases/download/v7.43.5/browser-core-7.43.5.tgz",
"classnames": "^2.2.5",
"d3": "^5.15.0",
"foundation-sites": "^6.6.1",
@@ -1193,7 +1193,6 @@ function isWhitelisted(state) {
// state.ghosteryWhitelisted is sometimes undefined so force to bool
return Boolean(globals.SESSION.paused_blocking || events.policy.getSitePolicy(state.tabUrl, state.url) === 2 || state.ghosteryWhitelisted);
}

/**
* Set listener for 'enabled' event for Antitracking module which replaces
* Antitracking isWhitelisted method with Ghostery's isWhitelisted method.
@@ -1213,7 +1212,9 @@ antitracking.on('enabled', () => {
* @memberOf Background
*/
adblocker.on('enabled', () => {
adblocker.isReady().then(() => adblocker.action('addWhiteListCheck', url => isWhitelisted({ tabUrl: url })));
adblocker.isReady().then(() => {
adblocker.action('addWhiteListCheck', isWhitelisted);
});
});

/**
@@ -24,7 +24,9 @@ const { adblocker, antitracking } = cliqz.modules;
* Get the totalUnsafeCount of trackers found by Anti-Tracking on this tabId
* @memberOf BackgroundUtils
* @param {number} tabId
* @return {object} totalUnsafeCount
* @param {string} tabHostUrl
* @param {boolean} antiTracking Fetch data from the anti-tracking module
* @return {object}
*/
export function getCliqzData(tabId, tabHostUrl, antiTracking) {
let totalUnsafeCount = 0;
@@ -129,6 +131,7 @@ export function getCliqzGhosteryBugs(tabId) {
* found by Anti-Tracking
* @memberOf BackgroundUtils
* @param {number} tabId
* @param {string} tabHostUrl
* @param {Function} callback
*/
export function sendCliqzModuleCounts(tabId, tabHostUrl, callback) {
@@ -1544,9 +1544,9 @@ brorand@^1.0.1:
resolved "https://registry.yarnpkg.com/brorand/-/brorand-1.1.0.tgz#12c25efe40a45e3c323eb8675a0a0ce57b22371f"
integrity sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8=

"browser-core@https://github.com/cliqz-oss/browser-core/releases/download/v7.43.3/browser-core-7.43.3.tgz":
version "7.43.3"
resolved "https://github.com/cliqz-oss/browser-core/releases/download/v7.43.3/browser-core-7.43.3.tgz#a348fa8e482f8d7bf85f6e7fc9bea1ad5ad0512c"
"browser-core@https://github.com/cliqz-oss/browser-core/releases/download/v7.43.5/browser-core-7.43.5.tgz":
version "7.43.5"
resolved "https://github.com/cliqz-oss/browser-core/releases/download/v7.43.5/browser-core-7.43.5.tgz#278e2e684bf86143dbc660e88380034d692d9324"
dependencies:
"@cliqz-oss/dexie" "^2.0.4"
"@cliqz/adblocker-webextension" "^1.8.6"
ProTip! Use n and p to navigate between commits in a pull request.