<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - onbeforeunload event return value coercion is not per-spec"
   href="https://bugs.webkit.org/show_bug.cgi?id=168382#c3">Comment # 3</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - onbeforeunload event return value coercion is not per-spec"
   href="https://bugs.webkit.org/show_bug.cgi?id=168382">bug 168382</a>
              from <span class="vcard"><a class="email" href="mailto:cdumez&#64;apple.com" title="Chris Dumez &lt;cdumez&#64;apple.com&gt;"> <span class="fn">Chris Dumez</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=168382#c2">comment #2</a>)
<span class="quote">&gt; Hmm, that shouldn't be possible, at least, I can't see how this code would
&gt; cause it:
&gt; 
&gt;   async_test(t =&gt; {
&gt;     const iframe = document.createElement(&quot;iframe&quot;);
&gt;     iframe.onload = t.step_func(() =&gt; {
&gt;       iframe.contentWindow.runTest(t, testCase);
&gt;     });
&gt; 
&gt;     iframe.src = &quot;beforeunload-canceling-1.html&quot;;
&gt;     document.body.appendChild(iframe);
&gt;   }, `Returning ${testCase.valueToReturn} with a real iframe
&gt; unloading${labelAboutReturnValue}`);</span >

frame.contentWindow.runTest is not a function. (In 'iframe.contentWindow.runTest(t, testCase)', 'iframe.contentWindow.runTest' is undefined)
<a href="http://w3c-test.org/html/browsers/browsing-the-web/unloading-documents/beforeunload-canceling.html:128:35">http://w3c-test.org/html/browsers/browsing-the-web/unloading-documents/beforeunload-canceling.html:128:35</a>
step&#64;<a href="http://w3c-test.org/resources/testharness.js:1409:30">http://w3c-test.org/resources/testharness.js:1409:30</a>
<a href="http://w3c-test.org/resources/testharness.js:1433:40">http://w3c-test.org/resources/testharness.js:1433:40</a>
appendChild&#64;[native code]
<a href="http://w3c-test.org/html/browsers/browsing-the-web/unloading-documents/beforeunload-canceling.html:132:30">http://w3c-test.org/html/browsers/browsing-the-web/unloading-documents/beforeunload-canceling.html:132:30</a>
step&#64;<a href="http://w3c-test.org/resources/testharness.js:1409:30">http://w3c-test.org/resources/testharness.js:1409:30</a>
async_test&#64;<a href="http://w3c-test.org/resources/testharness.js:518:26">http://w3c-test.org/resources/testharness.js:518:26</a>
global code&#64;<a href="http://w3c-test.org/html/browsers/browsing-the-web/unloading-documents/beforeunload-canceling.html:125:13">http://w3c-test.org/html/browsers/browsing-the-web/unloading-documents/beforeunload-canceling.html:125:13</a></pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>