The return value of an OnBeforeUnloadEventHandler should always be coerced into a DOMString:
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]
Comment on attachment 351110 [details]
Clearing flags on attachment: 351110
Committed r236633: <https://trac.webkit.org/changeset/236633>
All reviewed patches have been landed. Closing bug.