diff --git a/cookies/third-party-cookies/resources/third-party-cookies-cross-site-popup-opener.html b/cookies/third-party-cookies/resources/third-party-cookies-cross-site-popup-opener.html index 0e25f79261924e..a09b07e5b70231 100644 --- a/cookies/third-party-cookies/resources/third-party-cookies-cross-site-popup-opener.html +++ b/cookies/third-party-cookies/resources/third-party-cookies-cross-site-popup-opener.html @@ -1,4 +1,6 @@ + + Window that opens a popup in a cross-site context @@ -26,17 +28,17 @@ } // Verify whether third-party cookies are blocked by default. - promise_test(async () => { - const thirdPartyHttpCookie = "3P_http" - await credFetch( - `${origin}/cookies/resources/set.py?${thirdPartyHttpCookie}=foobar;` + - "Secure;Path=/;SameSite=None"); - await assertHttpOriginCanAccessCookies({ + if (navigator.userAgent.toLowerCase().indexOf('firefox') == -1) { + assertThirdPartyHttpCookies({ + desc: "3P fetch", origin, - cookieNames: [thirdPartyHttpCookie], + cookieNames, expectsCookie: false, }); - }, "3P fetch: Cross site window setting HTTP cookies"); + } else { + // Default behavior for third-party cookie blocking is flaky in Firefox. + throw new AssertionError("Testing default third-party cookie blocking is not implemented in Firefox."); + } // Open the cookies' origin in a popup to activate the heuristic. const popupUrl = new URL( diff --git a/cookies/third-party-cookies/resources/third-party-cookies-cross-site-popup-verify.html b/cookies/third-party-cookies/resources/third-party-cookies-cross-site-popup-verify.html index 8d4819ad82912d..6deb88b5d03d74 100644 --- a/cookies/third-party-cookies/resources/third-party-cookies-cross-site-popup-verify.html +++ b/cookies/third-party-cookies/resources/third-party-cookies-cross-site-popup-verify.html @@ -1,4 +1,6 @@ + + Verifies heuristics enabled by popup diff --git a/cookies/third-party-cookies/resources/third-party-cookies-cross-site-popup.html b/cookies/third-party-cookies/resources/third-party-cookies-cross-site-popup.html index 6f802007f8d074..7addc7943c0ee2 100644 --- a/cookies/third-party-cookies/resources/third-party-cookies-cross-site-popup.html +++ b/cookies/third-party-cookies/resources/third-party-cookies-cross-site-popup.html @@ -1,4 +1,6 @@ + + Cross-site popup diff --git a/cookies/third-party-cookies/third-party-cookie-heuristics.tentative.https.html b/cookies/third-party-cookies/third-party-cookie-heuristics.tentative.https.html index 3eb70432b947a9..32e7ab6d9ab344 100644 --- a/cookies/third-party-cookies/third-party-cookie-heuristics.tentative.https.html +++ b/cookies/third-party-cookies/third-party-cookie-heuristics.tentative.https.html @@ -1,4 +1,6 @@ + + Test third-party cookie heuristics