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..73ad387a943fe0c81ed849da961834f8d618118a |
--- /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, JSON_PRETTY_PRINT); |
Mike West
2016/03/21 11:03:13
I think our linux trybots don't support JSON_PRETT
|
+?>; |
+ |
+window.addEventListener("message", e => { |
+ e.source.postMessage({ |
+ 'http': from_http, |
+ 'document': document.cookie |
+ }, "*"); |
+}); |
+</script> |