Repository navigation
Remove expect calls in service worker manager thread - #12518
Conversation
|
Heads up! This PR modifies the following files:
|
|
Thanks for the contribution. I want a couple of changes but that's all. -S-awaiting-review +S-needs-code-changes Reviewed 1 of 1 files at r1. a discussion (no related file): Could you reword the commit message to make that crystal clear? components/script/serviceworker_manager.rs, line 107 [r1] (raw file):
Please restore the two additional fn handle_message(&mut self) {
while let Ok(message) = self.receive_message() {
let should_continue = match message {
Message::FromConstellation(msg) => {
self.handle_message_from_constellation(msg)
},
Message::FromResource(msg) => {
self.handle_message_from_resource(msg)
}
};
if !should_continue {
break;
}
}
}components/script/serviceworker_manager.rs, line 160 [r1] (raw file):
I'm pretty sure you can continue to use Comments from Reviewable |
|
Review status: 0 of 1 files reviewed at latest revision, 3 unresolved discussions. a discussion (no related file):
|
|
-S-awaiting-review +S-needs-code-changes One last nit and I'll r+ it. Thanks again! Reviewed 1 of 1 files at r2. components/script/serviceworker_manager.rs, line 163 [r2] (raw file):
Nit: for these you can write Comments from Reviewable |
|
bors-servo r+ Reviewed 1 of 1 files at r3. Comments from Reviewable |
|
... @bors-servo r+ |
|
📌 Commit 66c04a0 has been approved by |
Remove expect calls in service worker manager thread <!-- Please describe your changes on the following line: --> An intermittent timeout was seen in #12516 , caused by panic of ServiceWorkerManager thread on reception of messages from resource thread. This PR amends things to not have the ServiceWorkerManager thread panic in such situation. cc @jdm --- <!-- 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 ##12516 (github issue number if applicable). <!-- Either: --> - [X] These changes do not require tests because its an "intermittent fix" <!-- 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/12518) <!-- Reviewable:end -->
|
☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt, windows-dev |
An intermittent timeout was seen in #12516 , caused by panic of ServiceWorkerManager thread on reception of messages from resource thread. This PR amends things to not have the ServiceWorkerManager thread panic in such situation.
cc @jdm
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is