/head>
  <body>
    <h1>Worker messaging - same-origin Worker request</h1>
    <p>If you can read JSON encoded HTTP request headers of the Worker below,
       the messaging works as expected.</p>

    <pre id="received_message">Running...</pre>

    <script>
      promise_test(function() {
        var urlPath = '/common/security-features/subresource/worker.py';
        var url = location.protocol + "//" + location.hostname + ":" +
                  location.port + urlPath;
        return requestViaDedicate