Bug 222583 - ITP not working with safaridriver
Summary: ITP not working with safaridriver
Status: RESOLVED MOVED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebDriver (show other bugs)
Version: Safari 14
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-03-01 19:06 PST by Hiroshi Maeda
Modified: 2022-02-10 21:43 PST (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hiroshi Maeda 2021-03-01 19:06:25 PST
Hi, I'm using Selenium and Safari for automated testing and came across an unexpected behavior with third party cookies.
I think third party cookies are restricted by ITP on Safari 14 by default. 
But when I launch it from Selenium using safaridriver, it does send third party cookies.

Here is a repository containing the steps to reproduce the issue: https://github.com/hir0shim/third-party-cookie-investigation

With the manual tests, ITP is working as expected, which is good. 
However with automatic tests, ITP is not working and third party cookies are sent.

Versions
- Safari: Version 14.0.3 (16610.4.3.1.4) 
- Selenium library: org.seleniumhq.selenium:selenium-java:3.141.59


Thanks
Comment 1 Radar WebKit Bug Importer 2021-03-04 16:25:48 PST
<rdar://problem/75064485>
Comment 2 Arthur Edelstein 2021-10-13 14:17:50 PDT
I am running a project that runs automated tests on web browsers to uncover their privacy properties. I seem to have run into the same issue where a remote Selenium test is not showing cookie blocking (or isolation), which suggests that ITP may be disabled.

It seems important for that Safari driven by Selenium should behave as close as possible to Safari in the wild, especially for web developers using Selenium to test their websites' functionality.
Comment 3 Brent Fulgham 2022-02-10 21:43:44 PST
The fix for this issue was needed outside the WebKit project, therefore this is being resolved as 'Moved'.

This should now be fixed in macOS 12.3 Beta.