Closed Bug 2036153 Opened 6 months ago Closed 2 months ago

WebSerial requestPort() does not correctly filter on bluetoothServiceClassId

Categories

(Core :: DOM: Web Serial, defect, P2)

defect

Tracking

()

RESOLVED FIXED
156 Branch
Tracking Status
firefox156 --- fixed

People

(Reporter: gstoll, Assigned: gstoll)

References

(Blocks 1 open bug)

Details

Attachments

(4 external files)

ApplyPortFilters() does the correct thing, but we never set the bluetoothServiceClassId on the IPCSerialPortInfo that the SerialPlatformService's return.

The severity field is not set for this bug.
:cmartin, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(cmartin)
Severity: -- → S3
Flags: needinfo?(cmartin)
Priority: -- → P2

This is the non-platform-specific parts of this change to allow filtering
based on bluetooth service class ID.

Assignee: nobody → gstoll
Status: NEW → ASSIGNED

Verified on my machine that ExtractBluetoothServiceClassId() works with
real hardware.

Verified on my Mac that LookupMacBluetoothServiceClassId() works with
real hardware. Supporting this on Linux would require (I think) adding
the bluez library, which I don't think is worth it right now.

There are some r+ patches which didn't land and no activity in this bug for 1 week.
:gstoll, could you have a look please?
If you still have some work to do, you can add an action "Plan Changes" in Phabricator.
For more information, please visit BugBot documentation.

Flags: needinfo?(spohl.mozilla.bugs)
Flags: needinfo?(gstoll)
Component: DOM: Device Interfaces → Dom: Web Serial

I was hoping :haik could take a look at some of the comments on D303427 since he's set up to debug on Mac - ni? to him for that. (:haik - if that's not convenient, let me know and I can bug someone else :-) )

Flags: needinfo?(gstoll) → needinfo?(haftandilian)
Flags: needinfo?(spohl.mozilla.bugs)

(In reply to Greg Stoll :gstoll from comment #7)

I was hoping :haik could take a look at some of the comments on D303427 since he's set up to debug on Mac - ni? to him for that. (:haik - if that's not convenient, let me know and I can bug someone else :-) )

Responded on phabricator.

Flags: needinfo?(haftandilian)
Pushed by gstoll@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/d6c462e584c3 https://hg.mozilla.org/integration/autoland/rev/46418477a125 part 1 - add bluetooth service class ID information to WebSerial interfaces r=cmartin,webidl,smaug https://github.com/mozilla-firefox/firefox/commit/0db5ae3bf9be https://hg.mozilla.org/integration/autoland/rev/630b9cc5c4da part 2 - Windows bluetooth service class ID implementation for WebSerial r=win-reviewers,handyman https://github.com/mozilla-firefox/firefox/commit/f6bb09e99a3c https://hg.mozilla.org/integration/autoland/rev/7d2569d20777 part 3 - Mac/Linux bluetooth service class ID implementation for WebSerial r=mac-reviewers,spohl https://github.com/mozilla-firefox/firefox/commit/7ec54bd2dd1f https://hg.mozilla.org/integration/autoland/rev/04f886ce6b1c part 4 - Bluetooth WebSerial tests r=cmartin
QA Whiteboard: [qa-triage-done-c157/b156]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: