Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert to doing unloading steps *after* pagehide
This change reverts 386360c (#3957). Specifically, it reorders two steps in the “unload a document” algorithm such that the spec once again requires UAs to wait to run any “unloading document visibility change steps” from other applicable specifications (in particular, the Page Visibility spec) until *after* firing the pagehide event. In practice, in combination with requirements in the Page Visibility spec, this change has the effect of stating that UAs must wait to fire the visibilitychange event until after the pagehide event has fired. That ordering matches the behavior current implemented in all engines. Otherwise, without this change, the ordering of firing for the events doesn’t match what implementations actually do. See also: * w3c/page-visibility#39 * #5949 (comment)
- Loading branch information