Closed Bug 1768109 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 33955 - Use mojo_base.mojom.ReadOnlySharedMemoryRegion in device sensors.

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox102 fixed)

RESOLVED FIXED
102 Branch
Tracking Status
firefox102 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 33955 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/33955
Details from upstream follow.

Daniel Cheng <dcheng@chromium.org> wrote:

Use mojo_base.mojom.ReadOnlySharedMemoryRegion in device sensors.

Unfortunately, the CL largely relies on using static_cast\<const T*>
instead of the safer GetMemoryAs\<T> helper, since GetMemoryAs\<T> requires
that device::SensorReadingSharedBuffer is trivially copyable.

Bug: 1306363
Change-Id: I91d048450bf7ba341065e6175c9928be34e45946
Reviewed-on: https://chromium-review.googlesource.com/3621355
WPT-Export-Revision: 9417c4c876ea5277d48dc79266fe9167bdecdc6d

Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/dbaf651fc4c3
[wpt PR 33955] - Use mojo_base.mojom.ReadOnlySharedMemoryRegion in device sensors., a=testonly
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 102 Branch
You need to log in before you can comment on or make changes to this bug.