Skip to content

Commit

Permalink
Bump @duckduckgo/content-scope-scripts from 4.42.0 to 4.48.0 (#2341)
Browse files Browse the repository at this point in the history
* Bump @duckduckgo/content-scope-scripts from 4.42.0 to 4.48.0

Bumps [@duckduckgo/content-scope-scripts](https://github.com/duckduckgo/content-scope-scripts) from 4.42.0 to 4.48.0.
- [Release notes](https://github.com/duckduckgo/content-scope-scripts/releases)
- [Commits](duckduckgo/content-scope-scripts@2d20aa3...03c2227)

---
updated-dependencies:
- dependency-name: "@duckduckgo/content-scope-scripts"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* Initialize gpc test code closer to the real thing

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jonathan Kingston <jkingston@duckduckgo.com>
  • Loading branch information
dependabot[bot] and jonathanKingston committed Nov 13, 2023
1 parent 1bd0d4b commit 2cc01d1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
},
"dependencies": {
"@duckduckgo/autofill": "github:duckduckgo/duckduckgo-autofill#10.0.0",
"@duckduckgo/content-scope-scripts": "github:duckduckgo/content-scope-scripts#4.42.0",
"@duckduckgo/content-scope-scripts": "github:duckduckgo/content-scope-scripts#4.48.0",
"@duckduckgo/ddg2dnr": "file:packages/ddg2dnr",
"@duckduckgo/jsbloom": "^1.0.2",
"@duckduckgo/privacy-dashboard": "github:duckduckgo/privacy-dashboard#2.0.1",
Expand Down
6 changes: 4 additions & 2 deletions unit-test/background/reference-tests/gpc-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const Site = require('../../../shared/js/background/classes/site').default
const GPC = require('../../../shared/js/background/GPC')
const GpcContentScript = require('@duckduckgo/content-scope-scripts/src/features/gpc').default
const gpcContentScript = new GpcContentScript('gpc')
const constants = require('../../../shared/data/constants')
const settings = require('../../../shared/js/background/settings')

const contentScriptUtils = require('@duckduckgo/content-scope-scripts/src/utils.js')
Expand Down Expand Up @@ -46,7 +47,8 @@ for (const setName of Object.keys(testSets)) {
it(`${test.name}`, () => {
const args = {
site: new Site(test.siteURL),
globalPrivacyControlValue: test.gpcUserSettingOn
globalPrivacyControlValue: test.gpcUserSettingOn,
platform: constants.platform
}
const isEnabled = !contentScriptUtils.isFeatureBroken(args, 'gpc')

Expand All @@ -62,7 +64,7 @@ for (const setName of Object.keys(testSets)) {
spyOnProperty(globalThis, 'navigator', 'get').and.returnValue(fakeNavigator)

if (isEnabled) {
gpcContentScript.init(args)
gpcContentScript.callInit(args)
}

// clean up
Expand Down

0 comments on commit 2cc01d1

Please sign in to comment.