Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unload: reject promise on pagehide instead of unload
This test fails in Chrome because it depends on the promise triggered by unload event. This CL changes it to pagehide handler so it would be triggered as expected even after unload is deprecated in Chrome. In other browsers, pagehide is also triggered for the case that is tested by the test (detecting navigation), and is more reliable than unload. Bug: 1488371 Change-Id: If44b78e5ff89b1d5ba8901be48cb9ad118a67650 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5070653 Reviewed-by: Rakina Zata Amni <[email protected]> Reviewed-by: Kent Tamura <[email protected]> Commit-Queue: Nonoka Muraki <[email protected]> Cr-Commit-Position: refs/heads/main@{#1233805}
- Loading branch information