Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(serial): allow Bluetooth ports to be requested by service class ID #41638

Merged
merged 2 commits into from
Mar 28, 2024

Conversation

codebytere
Copy link
Member

Description of Change

Refs CL:4522192.

In #38465 we added a parameter to ElectronSerialDelegate::RunChooser to account for upstream changes but never actually implemented the feature the parameter was added to support. This PR adds support for Bluetooth ports being requested by service class ID, thereby bringing our WebSerial implementation into alignment with the current state of the web platform api. Now, users can do e.g:

const port = await navigator.serial.requestPort({
     filters: [{bluetoothServiceClassId: 0x1101}]
});

Checklist

Release Notes

Notes: Added support for Bluetooth ports being requested by service class ID in navigator.serial.

@codebytere codebytere added semver/minor backwards-compatible functionality target/29-x-y PR should also be added to the "29-x-y" branch. target/30-x-y PR should also be added to the "30-x-y" branch. labels Mar 20, 2024
@electron-cation electron-cation bot added api-review/requested 🗳 new-pr 🌱 PR opened in the last 24 hours labels Mar 20, 2024
Copy link
Member

@jkleinsc jkleinsc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@codebytere
Copy link
Member Author

@jkleinsc fixed!

Copy link
Member

@jkleinsc jkleinsc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

API LGTM

@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Mar 27, 2024
Copy link
Member

@MarshallOfSound MarshallOfSound left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

API LGTM

@codebytere codebytere merged commit 61457c9 into main Mar 28, 2024
19 checks passed
@codebytere codebytere deleted the allow-port-request-bluetooth branch March 28, 2024 17:23
Copy link

release-clerk bot commented Mar 28, 2024

Release Notes Persisted

Added support for Bluetooth ports being requested by service class ID in navigator.serial.

@trop
Copy link
Contributor

trop bot commented Mar 28, 2024

I have automatically backported this PR to "30-x-y", please check out #41734

@trop trop bot added in-flight/30-x-y and removed target/30-x-y PR should also be added to the "30-x-y" branch. labels Mar 28, 2024
@trop
Copy link
Contributor

trop bot commented Mar 28, 2024

I have automatically backported this PR to "29-x-y", please check out #41735

@trop trop bot added in-flight/29-x-y merged/30-x-y PR was merged to the "30-x-y" branch. merged/29-x-y PR was merged to the "29-x-y" branch. and removed target/29-x-y PR should also be added to the "29-x-y" branch. in-flight/30-x-y in-flight/29-x-y labels Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api-review/approved ✅ merged/29-x-y PR was merged to the "29-x-y" branch. merged/30-x-y PR was merged to the "30-x-y" branch. semver/minor backwards-compatible functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants