@duckduckgo/autoconsent 18.8.0 → 18.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/dependabot.yml +1 -0
- package/.github/workflows/checks.yml +1 -0
- package/CHANGELOG.md +29 -0
- package/dist/addon-firefox/background.bundle.js +11 -14
- package/dist/addon-firefox/compact-rules.json +1 -1
- package/dist/addon-firefox/content.bundle.js +10 -3
- package/dist/addon-firefox/manifest.json +1 -1
- package/dist/addon-firefox/popup.bundle.js +11 -14
- package/dist/addon-firefox/rule-index.json +1 -1
- package/dist/addon-firefox/rules.json +1 -1
- package/dist/addon-mv3/background.bundle.js +11 -14
- package/dist/addon-mv3/compact-rules.json +1 -1
- package/dist/addon-mv3/content.bundle.js +10 -3
- package/dist/addon-mv3/manifest.json +1 -1
- package/dist/addon-mv3/popup.bundle.js +11 -14
- package/dist/addon-mv3/rule-index.json +1 -1
- package/dist/addon-mv3/rules.json +1 -1
- package/dist/autoconsent.cjs.js +10 -3
- package/dist/autoconsent.esm.js +10 -3
- package/dist/autoconsent.playwright.js +10 -3
- package/dist/autoconsent.standalone.js +11 -4
- package/lib/cmps/trustarc-top.ts +12 -3
- package/package.json +2 -2
- package/rules/autoconsent/cookieinformation.json +2 -1
- package/rules/autoconsent/huawei-cookie-notice.json +27 -0
- package/rules/autoconsent/xhamster-eu.json +1 -1
- package/rules/autoconsent/xhamster-us.json +1 -1
- package/rules/compact-rules.json +1 -1
- package/rules/rule-index.json +1 -1
- package/rules/rules.json +1 -1
- package/tests/cookieinformation.spec.ts +3 -1
- package/tests/huawei-cookie-notice.spec.ts +5 -0
- package/tests/trustarc.spec.ts +7 -0
- package/tests/xhamster-eu.spec.ts +4 -0
- package/tests/xhamster-us.spec.ts +4 -0
- package/web-test-runner.config.mjs +6 -0
|
@@ -6,7 +6,9 @@ generateCMPTests(
|
|
|
6
6
|
// 'https://www.phaseone.com/', // appears only on user iteraction
|
|
7
7
|
'https://www.georgjensen.com/',
|
|
8
8
|
'https://www.power.no/',
|
|
9
|
-
'https://
|
|
9
|
+
'https://consumer.huawei.com/uk/',
|
|
10
|
+
'https://www.tokmanni.fi/',
|
|
11
|
+
'https://www.puuilo.fi/',
|
|
10
12
|
],
|
|
11
13
|
{},
|
|
12
14
|
);
|
package/tests/trustarc.spec.ts
CHANGED
|
@@ -24,3 +24,10 @@ generateCMPTests('TrustArc-top', ['https://shop.royalmail.com/garden-wildlife-st
|
|
|
24
24
|
testOptOut: true,
|
|
25
25
|
testSelfTest: false,
|
|
26
26
|
});
|
|
27
|
+
|
|
28
|
+
// banner with a hidden, unwired "Reject All" shortcut (implied-consent regions)
|
|
29
|
+
generateCMPTests('TrustArc-top', ['https://us.store.bambulab.com/'], {
|
|
30
|
+
testOptOut: true,
|
|
31
|
+
testSelfTest: false,
|
|
32
|
+
onlyRegions: ['US'],
|
|
33
|
+
});
|
|
@@ -16,6 +16,10 @@ generateCMPTests(
|
|
|
16
16
|
'https://xhvid.com/',
|
|
17
17
|
'https://xhfanclub.com/',
|
|
18
18
|
'https://id.xhfanclub.com/',
|
|
19
|
+
'https://id.xhamster.desi/',
|
|
20
|
+
'https://vi.xhstream.com/',
|
|
21
|
+
'https://id.xhname.com/',
|
|
22
|
+
'https://vi.xhspot.com/',
|
|
19
23
|
],
|
|
20
24
|
{
|
|
21
25
|
onlyRegions: ['GB', 'DE', 'FR', 'NL', 'CH', 'NO', 'IT', 'ES', 'PL', 'SE', 'DK'],
|
|
@@ -16,6 +16,10 @@ generateCMPTests(
|
|
|
16
16
|
'https://xhvid.com/',
|
|
17
17
|
'https://xhfanclub.com/',
|
|
18
18
|
'https://id.xhfanclub.com/',
|
|
19
|
+
'https://id.xhamster.desi/',
|
|
20
|
+
'https://vi.xhstream.com/',
|
|
21
|
+
'https://id.xhname.com/',
|
|
22
|
+
'https://vi.xhspot.com/',
|
|
19
23
|
],
|
|
20
24
|
{
|
|
21
25
|
onlyRegions: ['US'],
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import { esbuildPlugin } from '@web/dev-server-esbuild';
|
|
2
|
+
import { playwrightLauncher } from '@web/test-runner-playwright';
|
|
2
3
|
import { fileURLToPath } from 'url';
|
|
3
4
|
|
|
4
5
|
export default {
|
|
5
6
|
files: ['tests-wtr/**/*.html', 'tests-wtr/**/*.test.ts'],
|
|
6
7
|
nodeResolve: true,
|
|
8
|
+
// Use Playwright's pinned Chromium rather than the CI image's system Chrome, which is slow to cold-start
|
|
9
|
+
browsers: [playwrightLauncher({ product: 'chromium', launchOptions: { timeout: 120000 } })],
|
|
10
|
+
// Defaults are 30s; a slow first browser launch on CI otherwise fails every test file
|
|
11
|
+
browserStartTimeout: 120000,
|
|
12
|
+
testsStartTimeout: 120000,
|
|
7
13
|
plugins: [
|
|
8
14
|
esbuildPlugin({
|
|
9
15
|
ts: true,
|