<!DOCTYPE html>
<head>
<meta charset="utf-8"/>
<meta name="timeout" content="long">
<title>Service Worker: Partitioned Cookies 3P Iframe</title>
<script src="/resources/testharness.js"></script>
<script src="shared-worker-partitioned-cookies-helper.js"></script>
</head>

<body>
<script>

promise_test(async () => {
  const worker = new SharedWorker('./shared-worker-echo-cookies.js');
  const next_message = worker_message_generator(worker);

  worker.port.postMessage({type: 'test_message'});
  const msg1 = aw