-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1926581 [wpt PR 48773] - bluetooth: Use [PassAsSpan] to handle Bu…
…fferSource arguments, a=testonly Automatic update from web-platform-tests bluetooth: Use [PassAsSpan] to handle BufferSource arguments This change simplifies the implementation of Web Bluetooth methods which accept a BufferSource argument by using the [PassAsSpan] WebIDL attribute. Using this requires a behavior change: Passing a detached buffer is now no longer fatal (except when it causes other argument validation errors) because a detached buffer turns into an empty span. I think this is a safe change to make because it matches the WebIDL rules for handling detached buffers (throwing a specific error was unspecified behavior) and this case is developer error, so sites shouldn't be depending on it. Change-Id: I1e47d8e3a219f65bd69f78018a434ab6f8a3cd62 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5952456 Auto-Submit: Reilly Grant <reillyg@chromium.org> Commit-Queue: Reilly Grant <reillyg@chromium.org> Reviewed-by: Matt Reynolds <mattreynolds@chromium.org> Cr-Commit-Position: refs/heads/main@{#1372813} -- wpt-commits: 94d12028e9fa7cf3edd63fe1d7921c23baa5a047 wpt-pr: 48773
- Loading branch information
1 parent
0093d1d
commit 960250d
Showing
6 changed files
with
91 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters