[Webkit-unassigned] [Bug 168382] onbeforeunload event return value coercion is not per-spec

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Feb 15 13:50:06 PST 2017


https://bugs.webkit.org/show_bug.cgi?id=168382

--- Comment #3 from Chris Dumez <cdumez at apple.com> ---
(In reply to comment #2)
> 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}`);

frame.contentWindow.runTest is not a function. (In 'iframe.contentWindow.runTest(t, testCase)', 'iframe.contentWindow.runTest' is undefined)
http://w3c-test.org/html/browsers/browsing-the-web/unloading-documents/beforeunload-canceling.html:128:35
step at http://w3c-test.org/resources/testharness.js:1409:30
http://w3c-test.org/resources/testharness.js:1433:40
appendChild@[native code]
http://w3c-test.org/html/browsers/browsing-the-web/unloading-documents/beforeunload-canceling.html:132:30
step at http://w3c-test.org/resources/testharness.js:1409:30
async_test at http://w3c-test.org/resources/testharness.js:518:26
global code at http://w3c-test.org/html/browsers/browsing-the-web/unloading-documents/beforeunload-canceling.html:125:13

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170215/edda71ab/attachment.html>


More information about the webkit-unassigned mailing list