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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/cookies/websocket/third-party-cookie-blocking-in-iframe.html

Issue 2102993002: Fix WebSocket to set first party for cookies (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: a 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="/js-test-resources/testharness.js"></script>
3 <script src="/js-test-resources/testharnessreport.js"></script>
4 <script>
5 if (window.testRunner) {
6 // Block third-party cookies.
7 testRunner.setAlwaysAcceptCookies(false);
8 }
9 var test = async_test('Test that third-party cookies are blocked for ' +
10 'WebSocket when the document on which the WebSocket is instantiated ' +
11 'is same domain but the top frame is not same domain');
12
13 test.step(() => {
14 window.addEventListener(
15 'message',
16 test.step_func_done(event => {
17 assert_equals(event.data, 'DONE');
18 }),
19 false);
20 });
21 </script>
22 <!-- Using localhost so that it'll be the same domain as the WebSocket created
23 in the iframe. -->
24 <iframe src="http://localhost:8000/security/cookies/websocket/resources/third-pa rty-iframe.html"></iframe>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698