WICG / document-picture-in-picture

https://wicg.github.io/document-picture-in-picture/
Other
56 stars 9 forks source link

Use pagehide instead of unload in JavaScript #83

Closed beaufortfrancois closed 1 year ago

beaufortfrancois commented 1 year ago

As noted in https://groups.google.com/a/chromium.org/g/blink-dev/c/JTPl7fM64Lc, we should use "pagehide" not "unload" JS event to monitor when PiP window gets closed. This PR updates JS examples.

@steimelchrome Please review