diff --git a/cookies/partitioned-cookies/partitioned-cookies.tentative.https.html b/cookies/partitioned-cookies/partitioned-cookies.tentative.https.html index 97e0f0b46c90e8..1512d3bc019a60 100644 --- a/cookies/partitioned-cookies/partitioned-cookies.tentative.https.html +++ b/cookies/partitioned-cookies/partitioned-cookies.tentative.https.html @@ -24,16 +24,30 @@ const domCookieName = '__Host-pcdom'; document.cookie = `${domCookieName}=foobar;${attributes}`; + // Set another partitioned cookie using the CookieStore API. + const cookieStoreCookieName = '__Host-pccookistore'; + await cookieStore.set({ + name: cookieStoreCookieName, + value: 'foobar', + path: '/', + sameSite: 'none', + partitioned: true, + }); + // Verify that the cookies are sent in requests from this top-level site. testHttpPartitionedCookies({ origin: self.origin, - cookieNames: [httpCookieName, domCookieName], + cookieNames: [httpCookieName, domCookieName, cookieStoreCookieName], expectsCookie: true, }); // Verify that the cookies are exposed to the DOM on this top-level site. testDomPartitionedCookies({ - cookieNames: [httpCookieName, domCookieName], + cookieNames: [httpCookieName, domCookieName, cookieStoreCookieName], + expectsCookie: true, + }); + testCookieStorePartitionedCookies({ + cookieNames: [httpCookieName, domCookieName, cookieStoreCookieName], expectsCookie: true, }); diff --git a/cookies/partitioned-cookies/resources/partitioned-cookies-cross-site-embed.html b/cookies/partitioned-cookies/resources/partitioned-cookies-cross-site-embed.html index 674fda7b30f358..4c6d0a878b1880 100644 --- a/cookies/partitioned-cookies/resources/partitioned-cookies-cross-site-embed.html +++ b/cookies/partitioned-cookies/resources/partitioned-cookies-cross-site-embed.html @@ -10,8 +10,15 @@