Skip to content

Commit 2901b43

Browse files
shakyShanegithub-actions[bot]
authored andcommitted
Release build 8.20.0 [ci release]
1 parent 1d5f27d commit 2901b43

File tree

27 files changed

+533
-296
lines changed

27 files changed

+533
-296
lines changed

CHANGELOG.txt

+5-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
- Add query param color=white to (#1662)
1+
- ntp: fixed the empty state of activity widget when trackers are present (#1677)
2+
- Update YouTube feature description for ad blocking experiment (#1674)
3+
- Skip Duck Player step when ad blocking is enabled (#1673)
4+
- build(deps-dev): bump jasmine from 5.6.0 to 5.7.1 (#1666)
5+
- Onboarding: Send set*() messages to native apps when step is skipped (#1648)

Sources/ContentScopeScripts/dist/pages/new-tab/dist/index.js

+8-5
Original file line numberDiff line numberDiff line change
@@ -20148,8 +20148,8 @@
2014820148
);
2014920149
const [formatter] = h2(() => new Intl.NumberFormat());
2015020150
const adBlocking = useAdBlocking();
20151-
const none = itemCount === 0;
20152-
const someItems = itemCount > 0;
20151+
const none = itemCount === 0 && trackerCount === 0;
20152+
const some = itemCount > 0 || trackerCount > 0;
2015320153
const trackerCountFormatted = formatter.format(trackerCount);
2015420154
let allTimeString;
2015520155
if (trackerCount === 1) {
@@ -20165,7 +20165,7 @@
2016520165
},
2016620166
/* @__PURE__ */ g("span", { className: PrivacyStats_default.headingIcon }, /* @__PURE__ */ g("img", { src: adBlocking ? "./icons/shield-green.svg" : "./icons/shield.svg", alt: "Privacy Shield" })),
2016720167
none && /* @__PURE__ */ g("h2", { className: PrivacyStats_default.title }, t4("activity_noRecent_title")),
20168-
someItems && /* @__PURE__ */ g("h2", { className: PrivacyStats_default.title }, /* @__PURE__ */ g(Trans, { str: allTimeString, values: { count: trackerCountFormatted } })),
20168+
some && /* @__PURE__ */ g("h2", { className: PrivacyStats_default.title }, /* @__PURE__ */ g(Trans, { str: allTimeString, values: { count: trackerCountFormatted } })),
2016920169
canExpand && /* @__PURE__ */ g("span", { className: PrivacyStats_default.widgetExpander }, /* @__PURE__ */ g(
2017020170
ShowHideButtonCircle,
2017120171
{
@@ -20178,8 +20178,8 @@
2017820178
label: expansion === "expanded" ? t4("stats_hideLabel") : t4("stats_toggleLabel")
2017920179
}
2018020180
)),
20181-
itemCount === 0 && /* @__PURE__ */ g("p", { className: (0, import_classnames5.default)(PrivacyStats_default.subtitle, { [PrivacyStats_default.indented]: !adBlocking }) }, adBlocking ? t4("activity_noRecentAdsAndTrackers_subtitle") : t4("activity_noRecent_subtitle")),
20182-
itemCount > 0 && /* @__PURE__ */ g("p", { className: (0, import_classnames5.default)(PrivacyStats_default.subtitle, PrivacyStats_default.indented, { [PrivacyStats_default.uppercase]: !adBlocking }) }, t4("stats_feedCountBlockedPeriod"))
20181+
none && /* @__PURE__ */ g("p", { className: (0, import_classnames5.default)(PrivacyStats_default.subtitle, { [PrivacyStats_default.indented]: !adBlocking }) }, adBlocking ? t4("activity_noRecentAdsAndTrackers_subtitle") : t4("activity_noRecent_subtitle")),
20182+
some && /* @__PURE__ */ g("p", { className: (0, import_classnames5.default)(PrivacyStats_default.subtitle, PrivacyStats_default.indented, { [PrivacyStats_default.uppercase]: !adBlocking }) }, t4("stats_feedCountBlockedPeriod"))
2018320183
);
2018420184
}
2018520185
var import_classnames5;
@@ -29594,6 +29594,9 @@
2959429594
},
2959529595
"activity.noTrackers": {
2959629596
factory: () => /* @__PURE__ */ g(Activity, { expansion: "expanded", itemCount: 20, trackerCount: 0, toggle: noop("toggle"), batched: false }, /* @__PURE__ */ g(Mock, { size: 1 }, /* @__PURE__ */ g(ActivityBody, { canBurn: false, visibility: "visible" })))
29597+
},
29598+
"activity.noActivity.someTrackers": {
29599+
factory: () => /* @__PURE__ */ g(Activity, { expansion: "collapsed", itemCount: 0, trackerCount: 56, toggle: noop("toggle"), batched: false }, /* @__PURE__ */ g(Mock, { size: 0 }, /* @__PURE__ */ g(ActivityBody, { canBurn: false, visibility: "visible" })))
2959729600
}
2959829601
};
2959929602
function Mock({ children, size }) {

Sources/ContentScopeScripts/dist/pages/onboarding/dist/index.js

+28-50
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Sources/ContentScopeScripts/dist/pages/onboarding/locales/en/onboarding.json

+4-8
Original file line numberDiff line numberDiff line change
@@ -285,14 +285,6 @@
285285
"title": "No targeted ads. No targeted recommendations. Just your video.",
286286
"note": "Subtitle for a page that shows the benefits of using the Duck Player feature to watch YouTube videos more privately."
287287
},
288-
"duckPlayer_alt_title": {
289-
"title": "Watch YouTube privately with Duck Player",
290-
"note": "Alternative title for Duck Player step when YouTube ad blocking is also offered."
291-
},
292-
"duckPlayer_alt_subtitle": {
293-
"title": "Watching videos in Duck Player won't influence your YouTube recommendations.",
294-
"note": "Alternative subtitle for Duck Player step when YouTube ad blocking is also offered."
295-
},
296288
"customize_title_v3": {
297289
"title": "Let’s customize a few things…",
298290
"note": "Title for a page that allows the user to customize specific settings in the DuckDuckGo browser."
@@ -401,6 +393,10 @@
401393
"title": "Play YouTube without targeted ads",
402394
"note": "The description of a browser privacy feature in the comparison table."
403395
},
396+
"comparison_youtubeAdFree": {
397+
"title": "Watch YouTube ad-free",
398+
"note": "The description of a browser privacy feature in the comparison table when ad-blocking is enabled."
399+
},
404400
"comparison_fullSupport": {
405401
"title": "Significant protection",
406402
"note": "The level of protection offered by a browser on a specific feature in the comparison table."

build/integration/pages/new-tab/dist/index.js

+39-5
Original file line numberDiff line numberDiff line change
@@ -20153,8 +20153,8 @@
2015320153
);
2015420154
const [formatter] = h2(() => new Intl.NumberFormat());
2015520155
const adBlocking = useAdBlocking();
20156-
const none = itemCount === 0;
20157-
const someItems = itemCount > 0;
20156+
const none = itemCount === 0 && trackerCount === 0;
20157+
const some = itemCount > 0 || trackerCount > 0;
2015820158
const trackerCountFormatted = formatter.format(trackerCount);
2015920159
let allTimeString;
2016020160
if (trackerCount === 1) {
@@ -20170,7 +20170,7 @@
2017020170
},
2017120171
/* @__PURE__ */ g("span", { className: PrivacyStats_default.headingIcon }, /* @__PURE__ */ g("img", { src: adBlocking ? "./icons/shield-green.svg" : "./icons/shield.svg", alt: "Privacy Shield" })),
2017220172
none && /* @__PURE__ */ g("h2", { className: PrivacyStats_default.title }, t4("activity_noRecent_title")),
20173-
someItems && /* @__PURE__ */ g("h2", { className: PrivacyStats_default.title }, /* @__PURE__ */ g(Trans, { str: allTimeString, values: { count: trackerCountFormatted } })),
20173+
some && /* @__PURE__ */ g("h2", { className: PrivacyStats_default.title }, /* @__PURE__ */ g(Trans, { str: allTimeString, values: { count: trackerCountFormatted } })),
2017420174
canExpand && /* @__PURE__ */ g("span", { className: PrivacyStats_default.widgetExpander }, /* @__PURE__ */ g(
2017520175
ShowHideButtonCircle,
2017620176
{
@@ -20183,8 +20183,8 @@
2018320183
label: expansion === "expanded" ? t4("stats_hideLabel") : t4("stats_toggleLabel")
2018420184
}
2018520185
)),
20186-
itemCount === 0 && /* @__PURE__ */ g("p", { className: (0, import_classnames5.default)(PrivacyStats_default.subtitle, { [PrivacyStats_default.indented]: !adBlocking }) }, adBlocking ? t4("activity_noRecentAdsAndTrackers_subtitle") : t4("activity_noRecent_subtitle")),
20187-
itemCount > 0 && /* @__PURE__ */ g("p", { className: (0, import_classnames5.default)(PrivacyStats_default.subtitle, PrivacyStats_default.indented, { [PrivacyStats_default.uppercase]: !adBlocking }) }, t4("stats_feedCountBlockedPeriod"))
20186+
none && /* @__PURE__ */ g("p", { className: (0, import_classnames5.default)(PrivacyStats_default.subtitle, { [PrivacyStats_default.indented]: !adBlocking }) }, adBlocking ? t4("activity_noRecentAdsAndTrackers_subtitle") : t4("activity_noRecent_subtitle")),
20187+
some && /* @__PURE__ */ g("p", { className: (0, import_classnames5.default)(PrivacyStats_default.subtitle, PrivacyStats_default.indented, { [PrivacyStats_default.uppercase]: !adBlocking }) }, t4("stats_feedCountBlockedPeriod"))
2018820188
);
2018920189
}
2019020190
var import_classnames5;
@@ -29732,6 +29732,23 @@
2973229732
}
2973329733
]
2973429734
},
29735+
singleWithTrackers: {
29736+
activity: [
29737+
{
29738+
favicon: { src: "selco-icon.png" },
29739+
url: "https://example.com",
29740+
title: "example.com",
29741+
etldPlusOne: "example.com",
29742+
favorite: false,
29743+
trackersFound: true,
29744+
trackingStatus: {
29745+
trackerCompanies: [{ displayName: "Google" }, { displayName: "Facebook" }, { displayName: "Amazon" }],
29746+
totalCount: 56
29747+
},
29748+
history: []
29749+
}
29750+
]
29751+
},
2973529752
few: {
2973629753
activity: [
2973729754
{
@@ -29876,6 +29893,17 @@
2987629893
_msg
2987729894
);
2987829895
switch (msg.method) {
29896+
case "activity_removeItem": {
29897+
const oldCount = dataset.activity.reduce((acc, item) => acc + item.trackingStatus.totalCount, 0);
29898+
dataset.activity = dataset.activity.filter((x4) => x4.url !== msg.params.url);
29899+
const patchParams = toPatch(dataset.activity);
29900+
patchParams.totalTrackersBlocked = oldCount;
29901+
setTimeout(() => {
29902+
const cb = subs.get("activity_onDataPatch");
29903+
cb(patchParams);
29904+
}, 0);
29905+
break;
29906+
}
2987929907
default: {
2988029908
console.warn("unhandled notification", msg);
2988129909
}
@@ -29895,6 +29923,9 @@
2989529923
if (sub2 === "activity_onDataUpdate") {
2989629924
subs.set("activity_onDataUpdate", cb);
2989729925
}
29926+
if (sub2 === "activity_onDataPatch") {
29927+
subs.set("activity_onDataPatch", cb);
29928+
}
2989829929
if (sub2 === "activity_onDataUpdate" && url.searchParams.has("flood")) {
2989929930
let count = 0;
2990029931
const int = setInterval(() => {
@@ -30144,6 +30175,9 @@
3014430175
},
3014530176
"activity.noTrackers": {
3014630177
factory: () => /* @__PURE__ */ g(Activity, { expansion: "expanded", itemCount: 20, trackerCount: 0, toggle: noop("toggle"), batched: false }, /* @__PURE__ */ g(Mock, { size: 1 }, /* @__PURE__ */ g(ActivityBody, { canBurn: false, visibility: "visible" })))
30178+
},
30179+
"activity.noActivity.someTrackers": {
30180+
factory: () => /* @__PURE__ */ g(Activity, { expansion: "collapsed", itemCount: 0, trackerCount: 56, toggle: noop("toggle"), batched: false }, /* @__PURE__ */ g(Mock, { size: 0 }, /* @__PURE__ */ g(ActivityBody, { canBurn: false, visibility: "visible" })))
3014730181
}
3014830182
};
3014930183
function Mock({ children, size }) {

0 commit comments

Comments
 (0)