-
Notifications
You must be signed in to change notification settings - Fork 20
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
New C-S-S webcompat intervention: modifyLocalStorage #1026
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for release-notes-preview canceled.
|
Temporary Branch UpdateThe temporary branch has been updated with the latest changes. Below are the details:
Please use the above install command to update to the latest version. |
Temporary Branch UpdateThe temporary branch has been updated with the latest changes. Below are the details:
Please use the above install command to update to the latest version. |
Temporary Branch UpdateThe temporary branch has been updated with the latest changes. Below are the details:
Please use the above install command to update to the latest version. |
Temporary Branch UpdateThe temporary branch has been updated with the latest changes. Below are the details:
Please use the above install command to update to the latest version. |
Temporary Branch UpdateThe temporary branch has been updated with the latest changes. Below are the details:
Please use the above install command to update to the latest version. |
Temporary Branch UpdateThe temporary branch has been updated with the latest changes. Below are the details:
Please use the above install command to update to the latest version. |
Temporary Branch UpdateThe temporary branch has been updated with the latest changes. Below are the details:
Please use the above install command to update to the latest version. |
Temporary Branch UpdateThe temporary branch has been updated with the latest changes. Below are the details:
Please use the above install command to update to the latest version. |
Temporary Branch UpdateThe temporary branch has been updated with the latest changes. Below are the details:
Please use the above install command to update to the latest version. |
Temporary Branch UpdateThe temporary branch has been updated with the latest changes. Below are the details:
Please use the above install command to update to the latest version. |
@jonathanKingston I got the privacy test page up and running and integration tests are passing locally, but something else seems to be going awry in CI - seeing a lot of Also made the changes we discussed to have /content-scope-scripts/webcompat/ be a directory of webcompat test pages. Want to give this a review when you get a chance? |
@@ -70,7 +70,7 @@ | |||
"@types/chrome": "^0.0.248", | |||
"@types/jasmine": "^5.1.4", | |||
"@typescript-eslint/eslint-plugin": "^6.9.1", | |||
"config-builder": "github:duckduckgo/privacy-configuration#main", | |||
"config-builder": "github:duckduckgo/privacy-configuration#dharb/modify-localstorage-config", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll flip this back once the config PR is merged.
Temporary Branch UpdateThe temporary branch has been updated with the latest changes. Below are the details:
Please use the above install command to update to the latest version. |
|
||
<script> | ||
// eslint-disable-next-line no-undef | ||
test('Only specified localStorage entry should be removed', async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add a test for a key that is also isn't present but the code deletes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This what you meant? https://github.com/duckduckgo/content-scope-scripts/pull/1026/files#diff-e8831dd92f5392a706f73b95990ac32c67e92544a34d094b502d63db301aad9eR27-R34 and line 28 below
Temporary Branch UpdateThe temporary branch has been updated with the latest changes. Below are the details:
Please use the above install command to update to the latest version. |
Temporary Branch UpdateThe temporary branch has been updated with the latest changes. Below are the details:
Please use the above install command to update to the latest version. |
Adds new webcompat intervention to modify localStorage entries on specified domains. At the moment
delete
is the only action implemented, but extensibility is there to add other actions (create
,update
) if necessary in the future. This feature is only enabled on iOS & Android.Asana Task/Github Issue: https://app.asana.com/0/246491496396031/1207836782368191/f
Corresponding privacy config changes: duckduckgo/privacy-configuration#2283
Testing steps:
There are a couple ways to test this:
Option A (easiest): Run the integration tests included in this PR to check against the privacy test page also included in this PR
npm i
then runnpm run test-int
. This will use puppeteer to check that the tests here succeed.Option B:
npm i
npm run start
from that directoryExpand Article
button persists across reloads.