blob: 5b3263e81ee66035c1c0592b3e401940c959eba3 [file] [log] [blame]
Tests that cross-origin iframe storage access is denied if the iframe is sandboxed, has the allow token, the iframe origin is a prevalent resource, the iframe origin has had user interaction, the user opts in, but the frame is not the one with access.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS Storage access was granted. document.cookie == firstPartyCookie=value, cookies seen server-side == {"firstPartyCookie":"value"}
PASS successfullyParsed is true
TEST COMPLETE
--------
Frame: '<!--frame1-->'
--------
Should receive first-party cookie.
Received cookie named 'firstPartyCookie'.
Did not receive cookie named 'partitionedCookie'.
Client-side document.cookie: firstPartyCookie=value
--------
Frame: '<!--frame2-->'
--------
Should not receive cookies.
Did not receive cookie named 'firstPartyCookie'.
Did not receive cookie named 'partitionedCookie'.
Client-side document.cookie:
--------
Frame: '<!--frame3-->'
--------
--------
Frame: '<!--frame4-->'
--------
Should not receive cookies.
Did not receive cookie named 'firstPartyCookie'.
Did not receive cookie named 'partitionedCookie'.
Client-side document.cookie:
--------
Frame: '<!--frame5-->'
--------
--------
Frame: '<!--frame6-->'
--------
Should not receive cookies.
Did not receive cookie named 'firstPartyCookie'.
Did not receive cookie named 'partitionedCookie'.
Client-side document.cookie: