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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/cookies/same-site/popup-same-site.html

Issue 1783813002: SameSite: Strict/Lax behavior. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@strict-lax
Patch Set: OOPIF. Created 4 years, 9 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 src="/cookies/resources/testharness-helpers.js"></script>
5 <script>
6 async_test(t => {
7 clearKnownCookies();
8 document.cookie = STRICT_DOM + "=1; SameSite=Strict; Max-Age=100; path=/";
9 document.cookie = LAX_DOM + "=1; SameSite=Lax; Max-Age=100; path=/";
10 document.cookie = NORMAL_DOM + "=1; Max-Age=100; path=/";
11
12 window.addEventListener("message", t.step_func_done(e => {
13 assert_equals(e.data.http[STRICT_DOM], "1", "strict");
14 assert_equals(e.data.http[LAX_DOM], "1", "lax");
15 assert_equals(e.data.http[NORMAL_DOM], "1", "normal");
16 assert_equals(e.data.document, STRICT_DOM + "=1; " + LAX_DOM + "=1; " + NORMAL_DOM + "=1");
17 }));
18
19 var i = window.open("http://" + ORIGINAL_HOST + ":8000/cookies/resources/pos t-cookies-to-opener.php");
20 }, "'" + ORIGINAL_HOST + "' is same-site with itself, so samesite cookies are se nt.");
21 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698