summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/cookies/samesite/resources/iframe-subresource-report.html
blob: 1dceb4e43681c81b6c1b8877fd2d9f2b34391a02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!DOCTYPE html>
<head>
<script src="/cookies/resources/cookie-helper.sub.js"></script>
<script>
function reportSubresourceCookies() {
  credFetch(SECURE_ORIGIN + "/cookies/resources/list.py")
    .then(r => r.json())
    .then(cookies => { cookies.type = "COOKIES";
                       target = window.opener ? window.opener : window.parent;
                       target.postMessage(cookies, "*");});
}
</script>
</head>
<body onload="reportSubresourceCookies()">