Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(144)

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/cookies/websocket/third-party-cookie-blocked-on-cross-origin-websocket.html

Issue 2102993002: Fix WebSocket to set first party for cookies (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update testRunner calls to setBlockThirdPartyCookies() Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="/resources/testharness.js"></script>
3 <script src="/resources/testharnessreport.js"></script>
4 <script>
5 if (window.testRunner) {
6 // Block third-party cookies.
7 testRunner.setBlockThirdPartyCookies(true);
8 }
9
10 async_test(t => {
11 window.addEventListener(
12 'message',
13 t.step_func_done(event => {
14 assert_equals(event.data, 'DONE: undefined');
15 }),
16 false);
17 }, "Test that first-party cookies are blocked for WebSockets conforming the " +
18 "requirements of the SameSite attribute.");
19 </script>
20 <!--
21 The iframe is a remote origin. It uses the same origin as this test case file
22 for the WebSocket.
23 -->
24 <iframe src="http://localhost:8000/security/cookies/websocket/resources/set-cook ie.html"></iframe>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698