Summary: | navigator.sendBeacon does not work on visibilitychange callback for document unload | ||
---|---|---|---|
Product: | WebKit | Reporter: | Bastien Caudan <bastien.caudan> |
Component: | WebCore Misc. | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Normal | CC: | cdumez, code, mike, webkit-bug-importer, webkit |
Priority: | P2 | Keywords: | InRadar |
Version: | Safari Technology Preview | ||
Hardware: | Mac | ||
OS: | macOS 10.14 | ||
See Also: |
https://bugs.webkit.org/show_bug.cgi?id=116769 https://bugs.webkit.org/show_bug.cgi?id=151234 https://bugs.webkit.org/show_bug.cgi?id=151610 |
Description
Bastien Caudan
2019-02-21 06:22:40 PST
The visibilitychange event don’t fire at all during unload. This is a duplicate of issue #116769. See the https://volument.com/blog/sendbeacon-is-broken#comments comments discussion for some real-world pain points developers are hitting due to this. (So that not only do we need to make developers aware that they shouldn’t be trying to use unload/onunload with sendBeacon(), and that they instead need to visibilitychange — but *also* need to check pagehide (because we don’t yet have visibilitychange working interoperably for them across the web platform). *** This bug has been marked as a duplicate of bug 151234 *** |