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
Annotations for WebBluetooth webidl functions #57
Conversation
if !self.allowed_services.get(&device_id).map_or(false, |s| s.contains(&uuid)) { | ||
return drop(sender.send(Err(BluetoothError::Security))); | ||
} | ||
|
||
// Step 2.4. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you lost me here :(
The idea is this will fix the bad behavior of the bloom filter in parallel traversal.
Move to Cargo workspaces <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14381) <!-- Reviewable:end -->
Stylo: implement column-rule-style Implemented `column-rule-style` in stylo. - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix servo#13868 - [ ] There are tests for these changes OR - [x] These changes do not require tests because it's a style addition and I added the screenshot. Screenshot: ![screenshot from 2016-11-27 21-59-38](https://cloud.githubusercontent.com/assets/597469/20652731/0a7ccbfc-b4ff-11e6-8e4c-1547897bcf25.png) <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14383) <!-- Reviewable:end -->
@@ -754,6 +782,10 @@ impl BluetoothManager { | |||
None => return drop(sender.send(Err(BluetoothError::NotFound))), | |||
}; | |||
let services = primary_service.get_includes(device).unwrap_or(vec!()); | |||
|
|||
// TODO: Step 7: If its argument is empty, throws a NotFoundError. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm how do we missed this step? we don't have a test for this or what?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this step here is just an early return, if the services vec is empty, the function will return still with a NotFoundError
at the end of the function.
In other functions e.g. in get_primary_service
there is a check here too, I just missed that step here.
@@ -789,6 +823,10 @@ impl BluetoothManager { | |||
None => return drop(sender.send(Err(BluetoothError::NotFound))), | |||
}; | |||
let services = primary_service.get_includes(device).unwrap_or(vec!()); | |||
|
|||
// TODO: Step 7: If its argument is empty, throws a NotFoundError. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above
match result { | ||
Some(v) => match v { | ||
// (Characteristic) Step 7.5.3. | ||
// (Descriptor) Step 7.4.3. | ||
// Note: There is no need to send back the value, because both algorithm returns with undefined. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes we do, because we need to set the new value here.
name_prefix.to_string() | ||
}, | ||
None => String::new(), | ||
}; | ||
|
||
// Step 2.4.6 - 2.4.7 | ||
// Step 6 -7. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing whitespace
// TODO: Step 5: Implement the `connection-checking-wrapper` algorithm for BluetoothRemoteGATTServer. | ||
|
||
// Step 5.1. | ||
// Note: May make this check in the lower level too. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because the properties
link in ReadValue Step 5.1. points here not to the BluetoothCharacteristicProperties
// TODO: Step 5.5.1: Implement activeAlgorithms internal slot for BluetoothRemoteGATTServer. | ||
|
||
// Step 5.5.2. | ||
// TODO(#5014): Replace ByteString with ArrayBuffer when ArrayBuffer is implemented. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replace ByteString with ArrayBuffer when it is implemented.
// TODO: Step 7.5.1: Implement activeAlgorithms internal slot for BluetoothRemoteGATTServer. | ||
|
||
// Step 7.5.2. | ||
// TODO(#5014): Replace ByteString with a DataView wrapping a new ArrayBuffer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needs wording
Fix a typo in components/bluetooth_traits/lib.rs <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14392) <!-- Reviewable:end -->
Fix the bloom filter stuff. <!-- Please describe your changes on the following line: --> I think I got the numbers right, want to do a try run before just in case. r? @SimonSapin <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14353) <!-- Reviewable:end -->
… uploads as an artefact
…ergstrom,jdm Add ./mach filter-intermittents for catching intermittents on CI cc @metajack The plan here is to run this on the error summary of the logs after each WPT/CSS run, as `./mach filter-intermittents wpt-errorsummary.log --output filtered-errorsummary.log --auth /path/to/authfile` The `filtered-errorsummary.log` file will be a buildbot artifact for this run, and can be used for updating test results. We change WPT/CSS runs to not cause test failures on Buildbot; instead; the test failure will be caused by this job. We should at some point add a separate highfive task which ccs the appropriate bugs and tracks consistent failures. (We can change mach filter-intermittents to output a second file of intermittents matched to bug numbers to make this easy) A small issue with this is that this simple task might mask failures of the WPT harness itself. We have a separate test that tests if the test harness works though. (This test will fail if the log files it requires don't exist, perhaps that's enough to solve the problem) r? @larsbergstrom <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14331) <!-- Reviewable:end -->
Add a log of only intermittents r? @KiChjang <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14400) <!-- Reviewable:end -->
…,aneeshusa,jgraham Use Selenium for Gecko performance test <!-- Please describe your changes on the following line: --> We run the `etc/ci/performance` test on Gecko for comparison, but the old add-on approach doesn't work anymore. I'm using selenium to drive Gecko instead. Also did some refactoring and fixed some nits I saw along the way. r? @aneeshusa --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix servo#14148 (github issue number if applicable). <!-- Either: --> - [x] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14194) <!-- Reviewable:end -->
Add event target for bluetooth <!-- Please describe your changes on the following line: --> Add support for event listeners in webbluetooth. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] There are tests for these changes <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14387) <!-- Reviewable:end -->
Step annotations for the WebBluetooth webidl functions, excluding
requestDevice
and unimplmeneted methods../mach build -d
does not report any errors./mach test-tidy
does not report any errors