Automatic update from web-platform-tests WebKit export: Storage Access API tests should set a cookie from a first-party context before setting cross-site cookies (#54330) https://bugs.webkit.org/show_bug.cgi?id=297352 -- wpt-commits: d26b8d3c95004258b41e6c9b8932f1ca136059fb wpt-pr: 54330
17 lines
380 B
HTML
17 lines
380 B
HTML
<!DOCTYPE html>
|
|
<meta charset="utf-8">
|
|
<body>
|
|
<script>
|
|
'use strict';
|
|
|
|
let query = window.location.search;
|
|
let cookieString = '';
|
|
if (query && query.length > 1)
|
|
cookieString = decodeURIComponent(query.slice(1));
|
|
|
|
document.cookie = cookieString;
|
|
|
|
window.opener.postMessage('set-document-cookie-complete', '*');
|
|
window.close();
|
|
</script>
|
|
</body> |