commit | 60e39e7dbe956ab78ef3745981cc05e16683d934 | [log] [tgz] |
---|---|---|
author | Matt Reynolds <mattreynolds@google.com> | Tue Oct 03 20:02:58 2023 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Oct 03 20:02:58 2023 |
tree | 3ed616ae73b7fd6b360383ee12d22ef787162bc2 | |
parent | 5bccf363d1f5239d7135558e19d423f3cbdeffa2 [diff] |
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 <alvinji@chromium.org> Commit-Queue: Matt Reynolds <mattreynolds@chromium.org> Cr-Commit-Position: refs/heads/main@{#1204813}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.