Comments (9)
@baptx FYI
from cookiemaster.
Actually this isn't specific to cookiemaster.
In a fresh firefox profile, without cookiemaster installed, if I go to about:preferences#privacy, click "Manage Permissions" under "Cookies and Site Data" and add duckduckgo.com with status 'Block', I get the same behaviour as when cookies for duckduckgo.com are blocked by cookiemaster.
This is simply how duckduckgo.com behaves when cookies cannot be set.
from cookiemaster.
@craigmiskell it is possible to change the language with Firefox cookies disabled on a DuckDuckGo search page, for example https://duckduckgo.com/?q=test (not in the settings page, which does not have a fallback when cookies are disabled).
The issue only happened when blocking cookies with your addon.
from cookiemaster.
I assume you mean changing the language from the search result screen means clicking the "settings" dropdown below the search bar on the right, then clicking and selecting an option from the language dropdown.
In a clean profile:
- In default state, without cookie-master: this works, and sets a cookie
- With duckduckgo.com blocked in Firefox's settings, and without cookie-master: this does not work; the page reloads, and the language remains as the Browser Preferred Language. It behaves exactly the same as when cookie-master is blocking the cookies.
I cannot replicate a situation where it falls back to some other way of specifying the language (URL parameters, I assume).
Please describe, starting from a fresh profile, exactly how you see that fallback happening, where it saves/applies a language setting when cookies are blocked by firefox.
from cookiemaster.
@craigmiskell no, I mean changing language should work with cookies disabled by clicking on the switch on the left of the country displayed, for example "France" in the screenshot attached below (this will use a URL parameter kl=fr-fr
like I mentioned in the original issue).
That's the fastest way to change language on DuckDuckGo, no need to go in settings (I did not even know it was possible to change the language in settings, the language switch is what most people notice first).
Note: the language switch is used to change the language of the search results, not the language of DuckDuckGo user interface.
from cookiemaster.
Interesting; for me that shows a toggle for 'New Zealand'; it sets a 'kl' parameter in the URL, but also seems to select the search results to be more country specific (not exactly a language choice, although that's part of it). For future bug reports please be extremely specific about what you do, click, and see. It is really frustrating to try and debug something where you're assuming I know what you're seeing and thinking.
Thing is, that toggle works fine for me, with cookie-master installed and blocking cookies for duckduckgo.com. I expect it's one of your other extensions. Are you able to replicate this in a fresh clean profile with only cookie-master installed?
from cookiemaster.
@craigmiskell I am using a clean profile with cookie-master addon installed only. To reproduce the problem, you first have to allow cookies on DuckDuckGo with your addon, then enable or disable the language switch and then disable cookies on DuckDuckGo with your addon. Now you will be able to reproduce the bug when trying to click on the language switch.
I explained it in this comment also: #15 (comment)
Update: when we reload the page with cookies disabled, we can see in the web console that previous cookies (created when cookies were enabled) are still sent in the request header. The issue can probably be fixed by clearing the JavaScript variable document.cookie
when we disable cookies with the addon.
from cookiemaster.
This is working as I intended then. cookie-master only prevents cookies from being set. If you allow that to happen, a cookie exists in the browser; if you then prevent that from happening in future, the cookie that was previously stored remains there. cookie-master will allow any deletes to be processed regardless of the user configuration, but in this case the presence of the cookie from previous setting makes duckduckgo assume certain things (I guess).
In my opinion it is a step too far for cookie-master to actively delete cookies when the policy is changed. That is best left to the user either through the existing firefox UI, or from another extension dedicated to deleting/editing cookies.
from cookiemaster.
@craigmiskell I would have expected a cookie blocker addon to have the same behaviour as when blocking cookies through Firefox UI (no cookies stored or accessible anymore and no cookie sent on HTTP requests). So I will have to find another addon or patch uMatrix then.
Note: if you don't want to delete cookies, it may be possible to just override document.cookie
(or keep a backup of the value) like what you did for navigator.cookieEnabled
. It looks like that is the behaviour of Firefox cookie blocking, the cookie is still here but not accessible anymore from JavaScript (and of course not sent in HTTP requests).
from cookiemaster.
Related Issues (20)
- Grayscale icon + tooltip when site has no cookies HOT 2
- since update this morning nothing works HOT 7
- SItes with CSP headers preventing eval (script-src) cannot be prevented from setting cookies by javascript HOT 2
- JS : Can not add cookie HOT 2
- the use of eval might be blocked by CSP policies HOT 3
- Websites cannot know if cookies are disabled HOT 10
- support for "allow for session" HOT 2
- Permission indicator disappears HOT 5
- DuckDuckGo language setting cannot be disabled HOT 7
- Feature Request: Automatically delete any existing cookies for domain / subdomain when switching from on to OFF HOT 1
- Feature request: Show a "cookies allow/session/deny" little confirmation dialog that pops-up the first time a new domain is visited HOT 2
- Sub-domains treated as third-party? HOT 2
- YouTube in background tab not rendering completely HOT 3
- Now with FF 86.0, you might need to update cookiemaster HOT 1
- Feature Request HOT 1
- Not saving cookie settings on allowed sites HOT 7
- Blocking 4-part top-level domain even though added to whitelist HOT 4
- Cookie defined in site list blocked HOT 1
- More readable logs HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cookiemaster.