<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@apple.com" title="Chris Dumez <cdumez@apple.com>"> <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">> Hmm, that shouldn't be possible, at least, I can't see how this code would
> cause it:
>
> async_test(t => {
> const iframe = document.createElement("iframe");
> iframe.onload = t.step_func(() => {
> iframe.contentWindow.runTest(t, testCase);
> });
>
> iframe.src = "beforeunload-canceling-1.html";
> document.body.appendChild(iframe);
> }, `Returning ${testCase.valueToReturn} with a real iframe
> 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@<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@[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@<a href="http://w3c-test.org/resources/testharness.js:1409:30">http://w3c-test.org/resources/testharness.js:1409:30</a>
async_test@<a href="http://w3c-test.org/resources/testharness.js:518:26">http://w3c-test.org/resources/testharness.js:518:26</a>
global code@<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>