-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't dispatch unload if we've dispatched pagehide with persisted == …
…true If we've dispatched the 'pagehide' event with the 'persisted' property set to true, we should not dispatch the unload event after that. This is because the 'persisted' property is set to the 'salvageable' status of the page, which also determines whether the unload event is fired. If 'salvageable' is true, 'persisted' will be true and 'unload' won't be dispatched. If 'salvageable' is false, 'persisted' will be false and 'unload' should be dispatched. Relevant spec PR: whatwg/html#5889 More context: https://groups.google.com/a/google.com/g/chrome-bfcache/c/L-ZreZDY4n0/m/jna_jQJkCQAJ Bug: 1110744 Change-Id: I54b44cfdcb6c2922ca57071d695df6c4c2d77d77 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2455510 Commit-Queue: Rakina Zata Amni <rakina@chromium.org> Reviewed-by: Kentaro Hara <haraken@chromium.org> Reviewed-by: Alexander Timin <altimin@chromium.org> Cr-Commit-Position: refs/heads/master@{#815898} GitOrigin-RevId: 67d49f2adf8c7b9dbe6166b152a7901addb02d5c
- Loading branch information
1 parent
7ec753d
commit 0a6a98d
Showing
3 changed files
with
94 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters