[wpt-sync] Sync PR 23442 - Improve webxr-test-api polyfill logic
Categories
(Testing :: web-platform-tests, task, P4)
Tracking
(firefox78 fixed)
| Tracking | Status | |
|---|---|---|
| firefox78 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Attachments
(1 file)
|
94.95 KB,
text/plain
|
Details |
Sync web-platform-tests PR 23442 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/23442
Details from upstream follow.
Alexander Cooper <alcooper@chromium.org> wrote:
Improve webxr-test-api polyfill logic
Now that Chromium no longer needs the polyfill to be created before the
xr object is utilized, we can convert the loose promises into promise
functions. This helps by allowing us to remove a duplicate check on the
engine types in the relevant promises, and helps to make the loading
behavior a bit more consistent.In addition, now that navigator.xr.test can be queried before creating
the polyfill object, simplify the logic in webxr-test.js; this includes
removing a no-longer-used guard for the old WebVR tests.Fixed:1074452
Change-Id: Ieb52c412a0a4825387ef0b136cc4a85bbdb33191
Reviewed-on: https://chromium-review.googlesource.com/2185398
WPT-Export-Revision: e4817d7e48b5839470f28b412b367465b7896f28
| Assignee | ||
Comment 1•5 years ago
|
||
| Assignee | ||
Comment 2•5 years ago
|
||
Comment 5•5 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/1dbd10db1c10
https://hg.mozilla.org/mozilla-central/rev/e7567a2f9fbc
Description
•