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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/cookies/resources/post-cookies-onmessage.php

Issue 1783813002: SameSite: Strict/Lax behavior. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@strict-lax
Patch Set: Comment. 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/http/tests/cookies/resources/post-cookies-onmessage.php
diff --git a/third_party/WebKit/LayoutTests/http/tests/cookies/resources/post-cookies-onmessage.php b/third_party/WebKit/LayoutTests/http/tests/cookies/resources/post-cookies-onmessage.php
new file mode 100644
index 0000000000000000000000000000000000000000..028d51a9837223f00ff84376e89cbb9776aa2206
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/cookies/resources/post-cookies-onmessage.php
@@ -0,0 +1,14 @@
+<!doctype html>
+<script>
+
+var from_http = <?php
+echo json_encode($_COOKIE);
+?>;
+
+window.addEventListener("message", e => {
+ e.source.postMessage({
+ 'http': from_http,
+ 'document': document.cookie
+ }, "*");
+});
+</script>

Powered by Google App Engine
This is Rietveld 408576698