adaptlearning / adapt_framework

A toolkit for creating responsive, accessible, multilanguage HTML5 e-learning courses.
https://www.adaptlearning.org/
GNU General Public License v3.0
578 stars 248 forks source link

Deprecation of unload event in google chrome #3481

Closed oliverfoster closed 12 months ago

oliverfoster commented 1 year ago

Subject of the issue

Lars Halkjær from the community forum brings this up on thread https://community.adaptlearning.org/mod/forum/discuss.php?d=4203#p15459

Reference article: https://developer.chrome.com/blog/deprecating-unload/

oliverfoster commented 1 year ago

Places where this may be an impact.

Locations

Resources

oliverfoster commented 1 year ago

All of the above event listeners are for both beforeunload and unload, it may be wise to add pagehide as well.

SCORM is a non-restorable connection, such that if a user sends LMS_Finish when leaving the page, re-entering the page through browser navigate cannot alone reinitialise the SCORM session. I don't think we need to worry about the bfcache (back/forward browser history cache) as a result.