Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1856722 [wpt PR 42227] - gamepad: Check that the DocumentLoader i…
…s not null, a=testonly Automatic update from web-platform-tests gamepad: Check that the DocumentLoader is not null Gamepad timestamps are reported relative to the navigationStart timestamp, accessed from the DocumentLoader's DocumentLoadTiming. In some scenarios the document may have been detached before the NavigatorGamepad is initialized, causing the DocumentLoader to be nullptr. This CL checks that the DocumentLoader is non-null, and uses the current time in place of navigationStart if it is null. Bug: 1483777 Change-Id: Ib3efcf3a612cd4c1c543218fa5fb8568c7129dcf Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4899018 Reviewed-by: Alvin Ji <alvinjichromium.org> Commit-Queue: Matt Reynolds <mattreynoldschromium.org> Cr-Commit-Position: refs/heads/main{#1204813} -- wpt-commits: 3ae2cb8c5b5ba61809da15318821a6c1fe54829f wpt-pr: 42227 UltraBlame original commit: bd7b3f9a73985da44f9bc6702a32ec864a47b024
- Loading branch information