blob: 1ad7d9e50076b6d16bbc26a5046e99696d6e0768 [file] [log] [blame]
Tests that blocking is not removed mid-flight in redirects.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS successfullyParsed is true
TEST COMPLETE
--------
Frame: '<!--frame1-->'
--------
Should receive first-party cookie for localhost.
Did not receive cookie named 'firstPartyCookieIP'.
Received cookie named 'firstPartyCookieLocalhost'.
Did not receive cookie named 'thirdPartyCookie'.
Client-side document.cookie: firstPartyCookieLocalhost=localhost
--------
Frame: '<!--frame2-->'
--------
Redirect case 1, should receive first-party cookie for 127.0.0.1.
Received cookie named 'firstPartyCookieIP'.
Did not receive cookie named 'firstPartyCookieLocalhost'.
Did not receive cookie named 'thirdPartyCookie'.
Client-side document.cookie: firstPartyCookieIP=127.0.0.1
--------
Frame: '<!--frame3-->'
--------
Try to set third-party cookie for localhost in blocked mode.
--------
Frame: '<!--frame4-->'
--------
Should receive no cookie.
Did not receive cookie named 'firstPartyCookieIP'.
Did not receive cookie named 'firstPartyCookieLocalhost'.
Did not receive cookie named 'thirdPartyCookie'.
Client-side document.cookie:
--------
Frame: '<!--frame5-->'
--------
Redirect case 2, should not receive first-party cookie for 127.0.0.1.
Did not receive cookie named 'firstPartyCookieIP'.
Did not receive cookie named 'firstPartyCookieLocalhost'.
Did not receive cookie named 'thirdPartyCookie'.
Client-side document.cookie: firstPartyCookieIP=127.0.0.1