-
Notifications
You must be signed in to change notification settings - Fork 17
Cookies are still deleted despite lower domain-level allowance #277
Comments
These blue entries in the logger are not what uMatrix is doing. These are informative entries - they log everything is happening with cookies. Cookies removed by uM will have uppercase Also, your screenshot shows "{session-cookie:...}". Session cookies are temporary - they should disappear when you close browser at the latest (end of browsing "session"), but may also be removed when tab is closed. |
The only extension I have that manages cookies is uMatrix. I tested it extensively with other extensions and standalone for about 2 weeks. If you are stating I'm wrong in my conclusion do elaborate. You are saying my conclusion is invalid despite the fact the only thing that's changed is uMatrix global option for cookie deletion. If I did the test wrong tell me how could I test it properly? Is there a way for me to trigger the clean up even from extension background page console? Any other way? The issue is real on my end and I'm willing to put time to investigate it. |
Are you sure? I'm seeing only one message for cookie log: https://github.com/gorhill/uMatrix/blob/master/src/js/cookies.js#L270 UPDATE: I went through all source code related to cookies and all locale messages and the deletion messages and nothing of what you say matches current codebase. There is a generic cookie removal line for every cookie removal. Given the circumstances I'd appreciate if you could unlock the issue instead of straight jumping into assumptions. Thank you. |
You can be right.
BTW, I was talking about this: https://github.com/gorhill/uMatrix/blob/0bcb7669e77adc958ee66a97fe9172898cb8131d/src/js/cookies.js#L496 |
The logger reports cookies which may or may not have been removed by uMatrix -- you can verify this by deleting the cookies using the browser's own UI. The So far I have been unable to reproduce the reported issue on my side. I am not using |
I saw this, yeah. Problem is, I have a tons of cookies ready to be expired yet the only cookies that are being removed in the log is the one I've visited recently. I've got logged out out of Inoreader.com again just as I'e been active here, on in this issue, even though I've explicitly set every first party domain to allow. From my understanding this SHOULD not happen. Here are my cookies for Inoreader.com The logger for All Tabs with filter userSettings:
|
What is your setting regarding "Delete non-blocked session cookies [60] minutes after the last time they have been used"? |
It is false, I've updated previous comment with raw saved values straight from background page. As a matter of fact it never was enabled, even for testing (didnt come to this yet). |
What are your rules re. |
Base:
Were at the moment of creation of this issue:
Now I've explicitly set every single 1st party domain
However I had |
Is stepping into the code using the debugger something you are comfortable to do? There are only two places where uMatrix explicitly asks the browser to remove cookies, so maybe putting a breakpoint at these lines will provide useful additional info: |
Yes, I could do that, will do when I get chance, I will update the issue. |
If you want to put a |
It could be the site's own code which remove the cookie as a result of blocking something. |
Hmm, I see how that can make sense, but shouldnt there be a way with uMatrix to figure out what causes that ? |
Not really, any javascript code anywhere can do this. Are you spoofing referrer? This could be the issue. |
I can see how referer could be some kind of issue with unity forums as they use unityID portal for ID, but definitely not with few others I had the same issue with, like steam or some very basic plain phpBB forums. I will disable and test without referrer spoof for these. |
But this is again session cookie - it can be removed by browser at any time after you close the tab. |
Sure, but these are resources I visit the most frequent and on daily basis and the aforemention issue never manifested without uMatrix. So this is either cookie cleanup logic or something else with uMatrix not accounted for in terms of permisisons (?). |
As already stated:
If your breakpoint was not hit and if we are going to speculate, it's best to speculate the server itself or the site's client code is doing this. I have seen case of referrer-spoofing causing logging out of accounts in the past. |
Nope, not the referrer, got logged out again from steampowered.com and unity.com |
¯\_(ツ)_/¯ |
Then try testing with cookie column allowed globally. |
Test that and tested this:
Still the same issue. To reiterate, while the problem is extremely annoying, I dont think that for me it quite tips yet the scales between "fine-grained control of what I allow on web-page" vs "I now have to login every time on half of resources". I can live with that. That being said, I still think this is valid issue, even if not an obvious and easy to track one. In my opinion, just because something is complex in nature does not mean it by definition should be pain in ass to use ("pleb filter") or should encourage to tolerate such small/medium sized annoyances because "all big boys endure, aren't you big boy?". Keep this issue open until someone else figures out the way to trace it? |
One thing I could improve is reporting in the logger whether uBO itself removed a cookie or that a cookie was removed without uBO. |
That would be welcome addition either way, yes, however I think all the testing I've done shows it is no longer related to cookie deletion as I thought initially (neither referrer related), see #277 (comment) |
Small update to the issue - someone else who uses uMatrix mentioned that they always have their cookies preferences reset on https://www.g2a.com At the bottom of the page there is a way to setup language and currency and with rules like this:
when they return to the site after a day or two they would get these value reset to default detected by the IP origin. Normal behavior is that regardless if you are logged in or not the settings persist. May be this can be useful testing source, I dont know. |
Prerequisites
Description
Cookies deleted on timed manner even for allowed domains
A specific URL where the issue occurs
Any. In this particular case forums.unity.com
Steps to Reproduce
Ruleset
Global scope level: domain
Supporting evidence
Your environment
Additional notes
According to the wiki and option description:
I read it multiple times trying to imagine all possible meanings I might be missing (which is already very bad thing to begin with - option description shouldn't call for a meeting of wise men to debate what this or that means) but in the end I always come back to what seems logical and most reasonable - these domains that do not have rule allowing cookies out will be cleared.
My understanding is that when this feature was developed it sure was thought thru to flatten-out rules to make sure all checks are passed not just top level
* * * block
, so if I block cookies globally, but then allow fordomain.com
via 1st party rule - this will be the final flattened rule that is taken into account and therefore on the next iteration of a clean-up the cookie will be kept.However, according to my observation and logger data that is not the case. Local storage also suffers form the same issue.
P.S. It would be nice to add a clarification how are allowed 3d party cookies processed. For example, if I allow
google.com
3dparty cookies foryoutube.com
but block 1st party cookies ongoogle.com
- what the action will be performed during deletion, which will be kept or deleted?P.P.S. Screenshot of the switchboard says 1.4.1b0 - ignore that, the shots are made on that version but later after an update on b6 the same issues were observed so it was tested on b6 as well.
The text was updated successfully, but these errors were encountered: