-
Notifications
You must be signed in to change notification settings - Fork 143
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
fix: update autoconsent library to 12.x #2134
Conversation
Builds for commit 7f979b4: |
hey @smalluban, a few notes from the autoconsent side:
|
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.
Just like we disabled enableCosmeticRules
before, I think it's good to set enableFilterList: false
. Then we don't need to take care about change of default in the future. I think everything else is fine.
@muodov It looks like you are right. However, I thought that for a simple reason - the build library contains all of the snippets and methods to execute them - Moreover, the
|
I've found that referencing snippets is our "hack" - #1599 added by @chrmod some time ago. @sammacbeth @chrmod We had a similar issue with CSP with injecting scriptlets. Can you provide snippets as a main export instead of passing them with a message from the content script? As we have changed that in the above PR? |
@smalluban there is an option As for the imports, you can still import anything if you reference the package dir directly. That is, 'node_modules/@duckduckgo/autoconsent/...' instead of '@duckduckgo/autoconsent/...' I hope it helps! |
@muodov I would like to avoid that hack at all, as your source might change at any time, or even it should not be distributed with the npm package in the first place. EDIT: this is already in the dist, but just as a variable |
@smalluban it shouldn't be a problem to export snippets. Could you create an issue for this with a summary of your use case? |
7f979b4
to
e630856
Compare
Builds for commit e630856: |
eval
message is no longer sent to the background - execution of the scriptlets is done by the Autoconsent class in the content script by the library