ITP not working with safaridriver

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

ITP not working with safaridriver
 
 
Q