Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does disabling third party cookies also disable cookies created by third party javascript?

When a page includes third party javascript (via <script src=...) and that javascript then sets a cookie, that cookie "becomes" a first party cookie, even though it's originally set by a third party source.

My question is this. If someone has disabled third party cookies in their browser, does that also apply cookies set by third party javascript? Or does it only block cookies that are explicitly set in the headers for requests to the third party domain?

And either way, do all browsers handle this the exact same way or do some block javascript cookies but others allow it?

like image 248
Sean Avatar asked Apr 02 '10 01:04

Sean


People also ask

How to disable third-party cookies on your computer?

It takes different steps to disable third-party cookies depending on what browser you are using. To disable third-party cookies on the Microsoft Edge browser, click the gear icon in the upper right-hand corner. Select the “Settings” option in the new menu that pops up. Next, click “View Advanced Settings.” In this menu, find the “Cookies” heading.

What are third party cookies and how do they work?

Cookies are pieces of data that are saved in your web browser by the websites you visit. Third-party cookies have their origins on other domains than the website you visit. Most of the time, third-party cookies are used by ad services to offer you targeted ads that are based on your browsing history and your web searches.

Is Google Chrome getting rid of third party cookies?

Google’s Privacy Sandbox and third-party cookies in Chrome. In January 2020, Google published a blogpost announcing that Chrome would phase out support for third-party cookies in the browser within two years, starting with trials on conversion measurement and personalization by the end of 2020.

Which browsers block third-party cookies by default?

And in 2019, Mozilla's Firefox browser started blocking third-party cookies by default. This doesn't mean that advertisers won't have tools to target you on the country's most popular browsers. Google, in fact, is already testing alternatives to third-party cookies.


1 Answers

I just thought I'd update this after further testing, in case anyone comes across it later.

I tested Firefox 3.6, MSIE 7, Safari 4, Chrome 4, and Opera 10, and they all do in fact support creating cookies via third party javascript, even when third party cookies are disabled. I conclude this is because the cookies are created for the first party domain, so the browsers treat them as first party cookies, even though they are created by a script from a third party source.

It's only cookies created by headers from third party requests that get rejected when this feature is enabled.

like image 67
Sean Avatar answered Sep 16 '22 19:09

Sean