beforeunload event does not fire in MobileSafari on iOS. This is inconsistent with the HTML specification and with Safari on macOS. It is therefore confusing for Web developers that this event does not fire.
<rdar://problem/70550655>
Created attachment 414464 [details] Patch
Comment on attachment 414464 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=414464&action=review r=me > Source/WebCore/ChangeLog:9 > + MobileSafari on iOS does implement WKUIDelegate's runJavaScriptAlertPanelWithMessage because does not > Source/WebCore/ChangeLog:16 > + Might be worth mentioning that iOS already fires the unload event, so running an event at this time is not a significant change in policy.
Created attachment 414466 [details] Patch
Created attachment 414470 [details] Patch
Committed r269983: <https://trac.webkit.org/changeset/269983> All reviewed patches have been landed. Closing bug and clearing flags on attachment 414470 [details].
Reverted r269983 for reason: Seems to have regressed PLT5 Committed r270560: <https://trac.webkit.org/changeset/270560>