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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Feb 15 11:32:06 PST 2017


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

            Bug ID: 168382
           Summary: onbeforeunload event return value coercion is not
                    per-spec
    Classification: Unclassified
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: Macintosh
                OS: macOS 10.12
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Page Loading
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: d at domenic.me
                CC: beidson at apple.com

Test: http://w3c-test.org/html/browsers/browsing-the-web/unloading-documents/beforeunload-canceling.html
Spec: https://html.spec.whatwg.org/#the-event-handler-processing-algorithm step 4

The return value of an onbeforeunload event handler is supposed to be coerced to a DOMString?, and then any non-null value should cancel the event. That means anything but null or undefined should cancel the event. Safari Tech Preview seems to not cancel when returning "" or true or 0.

-- 
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/068bf513/attachment.html>


More information about the webkit-unassigned mailing list