Closed Bug 1619643 Opened 4 years ago Closed 4 years ago

Cookies are NOT cleaned when interaction timeout window is passed

Categories

(Core :: Privacy: Anti-Tracking, defect)

defect
Not set
normal

Tracking

()

RESOLVED INVALID
Tracking Status
firefox73 --- unaffected
firefox74 --- unaffected
firefox75 --- wontfix

People

(Reporter: hyacoub, Unassigned)

References

(Blocks 1 open bug)

Details

Affected versions

  • 75.0a1 (2020-03-03)

Affected platforms

  • macOS 10.14
  • Windows 10 x64

Steps to reproduce

  1. Open Firefox and in about:config set privacy.purge_trackers.enabled=true.
  2. Navigate to one or two popular websites to create some cookies and site storage.
  3. Check the "Manage Cookies and Site Data" dialog from about:preferences#privacy to ensure that cookies and other site storage from domains on the TP list (https://github.com/englehardt/englehardt.github.io) were generated.
  4. Go to about:config and set the preference "privacy.userInteraction.expiration" to "1".
  5. Check the cookies from the "Manage Cookies and Site Data" dialog.

Expected result

  • First party cookies are NOT cleaned when interaction timeout window is passed

Actual result

  • All the cookies (first-party, third-party and other site storage) from the site on the TP list are cleared.

Note

All the scenarios are taken from the technical documentation: https://docs.google.com/document/d/1DWB6KSrw8Yquv3xqEdjIjdqgji1LQf1euPkPFcUdsl4/edit#

Your "actual result" looks correct to me. Did you mix up expected and actual here? :)

Assuming you did, you need to set the privacy.userInteraction.expiration before visiting the pages, so e.g. at the beginning of the session. Can you confirm that doing this resolves the issue?

Flags: needinfo?(hani.yacoub)

Sorry for that. I mixed the expected and actual results.
Cookies are NOT cleaned even after setting "privacy.userInteraction.expiration" pref before visiting the pages.

Do you have any extra tips?

Flags: needinfo?(hani.yacoub) → needinfo?(jhofmann)

I can't confirm. Setting privacy.userInteraction.expiration works fine for me. Which specific site are you seeing this for? Can you maybe make a screencast for this? :)

Thanks!

Flags: needinfo?(jhofmann) → needinfo?(hani.yacoub)

(In reply to Johann Hofmann [:johannh] from comment #3)

I can't confirm. Setting privacy.userInteraction.expiration works fine for me. Which specific site are you seeing this for? Can you maybe make a screencast for this? :)

Thanks!

Here is a set of more specific steps, that we used to reproduce this issue (after previously setting the preference "privacy.purge_trackers.enabled" to true):

  1. In a new tab, navigate to https://edition.cnn.com/ and open all the articles from the "Paid Content" section
  2. In a new tab, navigate to https://www.instagram.com/ and click on the Login with Facebook option
  3. In a new tab, navigate to https://www.amazon.com/
  4. Close all the tabs opened in the previous steps
  5. Go to about:config and set the preference "privacy.userInteraction.expiration" to "1"
  6. Restart the browser and check the "Manage Cookies and Site Data" dialog.
    ---> in this step, all the cookies from the Disconnect Tracking Protection list should be cleared (according to the received documentation, cookies should be cleared after modifying the "privacy.userInteraction.expiration" preference). Please see the screencast for more details:
    https://imgur.com/6QOulwl

Went even further and enter the following snippet in the browser console:

await Components.classes["@mozilla.org/purge-tracker-service;1"].getService(Components.interfaces.nsIPurgeTrackerService).purgeTrackingCookieJars()

Even so, the cookie "www.instagram.com" is still not cleared. Please see the screencast: https://imgur.com/V8ss4Ny

Johan, shouldn't the setting of the preference "privacy.userInteraction.expiration" to "1", be enough for the clearance of all the cookies from the Disconnect Tracking protection list?

Flags: needinfo?(hani.yacoub) → needinfo?(jhofmann)

To repeat, please set the privacy.userInteraction.expiration pref to 1 before visiting the pages to collect tracking cookies. You could do it as the first step in a fresh profile, for example.

Flags: needinfo?(jhofmann)

Simona, can you please try the same steps as in your previous comments while setting the pref before loading any pages?

Flags: needinfo?(simona.marcu)

(In reply to Johann Hofmann [:johannh] from comment #7)

Simona, can you please try the same steps as in your previous comments while setting the pref before loading any pages?

Indeed, if I set the preference "privacy.userInteraction.expiration" to "1" from the beginning and I follow steps 1-6 from Comment 4 and then I run the snippet from Comment 5, I no longer see cookies from the TP list.

There is though, a cookie that I'm seeing even after the clearance that draws my attention "associates-amazon.com". Is this ok?

Flags: needinfo?(simona.marcu)

Alright, thanks for confirming that. associates-amazon.com is not a known tracker as of know, Steve, I assume that's intentional?

Status: NEW → RESOLVED
Closed: 4 years ago
Flags: needinfo?(senglehardt)
Resolution: --- → INVALID

It's not on Disconnect's list. From a quick search it doesn't look like it's a particularly popular third party https://publicwww.com/websites/%22associates-amazon.com%22/. I tried following the steps in Comment 4 to see if I can find the website that sets the cookie, but had no luck. If we're able to find a non-amazon site that reliably embeds that domain as a third-party resource and if it appears to have tracking cookies, we can report it to Disconnect.

Simona, do you know which URL embeds content from associates-amazon.com?

Flags: needinfo?(senglehardt) → needinfo?(simona.marcu)

(In reply to Steven Englehardt [:englehardt] from comment #10)

It's not on Disconnect's list. From a quick search it doesn't look like it's a particularly popular third party https://publicwww.com/websites/%22associates-amazon.com%22/. I tried following the steps in Comment 4 to see if I can find the website that sets the cookie, but had no luck. If we're able to find a non-amazon site that reliably embeds that domain as a third-party resource and if it appears to have tracking cookies, we can report it to Disconnect.

Simona, do you know which URL embeds content from associates-amazon.com?

Yes, it's from https://www.amazon.com/

I'll pay attention to this cookie while testing, and I'll come back in the eventuality I find a non-amazon site.

Flags: needinfo?(simona.marcu)
You need to log in before you can comment on or make changes to this bug.