The return value of an OnBeforeUnloadEventHandler should always be coerced into a DOMString: - https://html.spec.whatwg.org/#onbeforeunloadeventhandler - https://html.spec.whatwg.org/#the-event-handler-processing-algorithm In particular, this means that returning false in an OnBeforeUnloadEventHandler should NOT cancel the event when the event is a CustomEvent (and not a BeforeUnloadEvent). This is because the return value cannot be false at: - https://html.spec.whatwg.org/#the-event-handler-processing-algorithm (Step 5. Otherwise case).
Created attachment 351110 [details] Patch
Comment on attachment 351110 [details] Patch Clearing flags on attachment: 351110 Committed r236633: <https://trac.webkit.org/changeset/236633>
All reviewed patches have been landed. Closing bug.