-
Notifications
You must be signed in to change notification settings - Fork 7.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Safari for IOS 17.3.1 does not support beforeunload
event
#20119
Comments
Hello @akylc. Could you provide additional documentation about the support of this event has been removed? The documentation currently provided may not be accurate (it is archived and may be out of date) as I was also able to find this event in the latest code of WebKit: https://github.com/search?q=repo%3AWebKit%2FWebKit%20beforeunload&type=code |
it's a property exists on window by default value but it will not be fired, as it's not in the supported events table, (possibly) from the very-beginning researching has begun since 5years ago, see: https://stackoverflow.com/questions/3239834/window-onbeforeunload-not-working-on-the-ipad |
I've tested this event on iOS 17.4.1 and failed to trigger the event handler during testing. But I can't find any recent official document showing that this event cannot be triggered. |
beforeunload
event
Hey @queengooborg. Sorry to bother you, I was indeed unable to trigger the |
found a doc in WebKit JS: onbeforeunload | ADD, said that it's supported ever since Safari Mobile 9.0+ |
beforeunload
eventbeforeunload
event
MDN URL
https://developer.mozilla.org/docs/Web/API/Window/beforeunload_event
What specific section or headline is this issue about?
Browser compatibility
What information was incorrect, unhelpful, or incomplete?
The
beforeunload
event's compatibility data related to "Safari for iOS" is not corrected.What did you expect to see?
The BCD shows that the event is not supported on Safari for iOS, or a note about this.
Do you have any supporting links, references, or citations
https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariWebContent/HandlingEvents/HandlingEvents.html#//apple_ref/doc/uid/TP40006511-SW5
Do you have anything more you want to share
No response
MDN metadata
Page report details
zh-cn/web/api/window/beforeunload_event
The text was updated successfully, but these errors were encountered: