Closed Bug 1856722 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 42227 - gamepad: Check that the DocumentLoader is not null

Categories

(Core :: DOM: Editor, task, P4)

task

Tracking

()

RESOLVED FIXED
120 Branch
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}

Component: web-platform-tests → DOM: Editor
Product: Testing → Core

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

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/cac8106701fe [wpt PR 42227] - gamepad: Check that the DocumentLoader is not null, a=testonly https://hg.mozilla.org/integration/autoland/rev/c69d0eea70e8 [wpt PR 42227] - Update wpt metadata, a=testonly
Pushed by archaeopteryx@coole-files.de: https://hg.mozilla.org/integration/autoland/rev/bd7b3f9a7398 [wpt PR 42227] - gamepad: Check that the DocumentLoader is not null, a=testonly https://hg.mozilla.org/integration/autoland/rev/117a37d436ce [wpt PR 42227] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 120 Branch
You need to log in before you can comment on or make changes to this bug.