[wpt-sync] Sync PR 42227 - gamepad: Check that the DocumentLoader is not null
Categories
(Core :: DOM: Editor, task, P4)
Tracking
()
Tracking | Status | |
---|---|---|
firefox120 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
(Blocks 1 open bug, )
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 42227 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/42227
Details from upstream follow.
Matt Reynolds <mattreynolds@google.com> wrote:
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}
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 1•2 years ago
|
||
Assignee | ||
Comment 2•2 years ago
|
||
CI Results
Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 1 tests
Status Summary
Firefox
TIMEOUT
: 1
Chrome
CRASH
: 1
Safari
PASS
: 1
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /editing/crashtests/insertAdjacentElement-with-DOMSubtreeModified.html [wpt.fyi]:
TIMEOUT
(Chrome:CRASH
, Safari:PASS
)
Comment 5•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/bd7b3f9a7398
https://hg.mozilla.org/mozilla-central/rev/117a37d436ce
Description
•