Closed Bug 1699299 Opened 3 years ago Closed 3 years ago

[wpt-sync] Sync PR 28122 - usb: Support devices without interfaces in macOS backend

Categories

(Core :: DOM: Device Interfaces, task, P4)

task

Tracking

()

RESOLVED FIXED
88 Branch
Tracking Status
firefox88 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

b'Reilly Grant <reillyg@chromium.org>' wrote:

usb: Support devices without interfaces in macOS backend

This change fixes support for USB devices that do not have any
interfaces by using the DeviceRequestAsyncTO method instead of
ControlRequestAsyncTO when submitting control transfers as the
latter assumes an IOUsbInterfaceInterface struct can be found.

A new manual tests which exercises the controlTransferIn() method is
added to exercise this codepath.

Bug: 1096743
Change-Id: I4601c7526ad08fe9f3be8cb7983e00c54266ee12
Reviewed-on: https://chromium-review.googlesource.com/2770479
WPT-Export-Revision: ced9c92b164a2160d82bd0bac546a0afc9640b8e

Component: web-platform-tests → DOM: Device Interfaces
Product: Testing → Core
Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d5fb9c71d197
[wpt PR 28122] - usb: Support devices without interfaces in macOS backend, a=testonly
Test result changes from PR not available.
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 88 Branch
You need to log in before you can comment on or make changes to this bug.