Removed some sources of panic from script thread.#11695
Removed some sources of panic from script thread.#11695bors-servo merged 1 commit intoservo:masterfrom
Conversation
|
Heads up! This PR modifies the following files:
|
|
cc @Ms2ger, @Manishearth and @mbrubeck |
|
☔ The latest upstream changes (presumably #11680) made this pull request unmergeable. Please resolve the merge conflicts. |
ae665c8 to
3c75ac9
Compare
|
Rebased. |
|
I feel like this is too ad-hoc in places. I think in general when we get a message with a pipeline id, we should immediately get the browsing context and return, before doing anything else. Also, why don't we use Reviewed 1 of 1 files at r2. components/script/script_thread.rs, line 1089 [r2] (raw file):
This is the same as Comments from Reviewable |
|
I'm not sure why this is more ad hoc than what we had before: I just replaced all uses of OK, I see what you mean about using Review status: all files reviewed at latest revision, 1 unresolved discussion. components/script/script_thread.rs, line 1089 [r2] (raw file):
|
|
r+ after squash, I guess. |
b54a37c to
9da00e2
Compare
|
@Ms2ger you don't need to sound so excited :) |
|
📌 Commit 9da00e2 has been approved by |
Removed some sources of panic from script thread. <!-- Please describe your changes on the following line: --> **This PR needs some thought!** It removes some sources of panic from script_thread.rs, caused by pipeline lookup failure. It's incomplete, as there are some uses of `get_browsing_context` elsewhere in the code. --- <!-- 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 #11693 and #11685 (and probably some other intermittents) - [X] These changes do not require tests because it is fixing intermittent panic <!-- 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="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11695) <!-- Reviewable:end -->
|
💔 Test failed - linux-dev |
|
@bors-servo retry
|
|
@bors-servo retry |
|
⚡ Previous build results for android, arm32, mac-dev-unit, mac-rel-css, mac-rel-wpt, windows are reusable. Rebuilding only arm64, linux-dev, linux-rel... |
|
💔 Test failed - arm64 |
|
@bors-servo retry
|
|
⌛ Testing commit 9da00e2 with merge 66d508d... |
Removed some sources of panic from script thread. <!-- Please describe your changes on the following line: --> **This PR needs some thought!** It removes some sources of panic from script_thread.rs, caused by pipeline lookup failure. It's incomplete, as there are some uses of `get_browsing_context` elsewhere in the code. --- <!-- 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 #11693 and #11685 (and probably some other intermittents) - [X] These changes do not require tests because it is fixing intermittent panic <!-- 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="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11695) <!-- Reviewable:end -->
|
💔 Test failed - mac-rel-wpt |
Removed some sources of panic from script thread. <!-- Please describe your changes on the following line: --> **This PR needs some thought!** It removes some sources of panic from script_thread.rs, caused by pipeline lookup failure. It's incomplete, as there are some uses of `get_browsing_context` elsewhere in the code. --- <!-- 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 #11693 and #11685 (and probably some other intermittents) - [X] These changes do not require tests because it is fixing intermittent panic <!-- 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="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11695) <!-- Reviewable:end -->
|
💔 Test failed - android |
|
@bors-servo retry (Finally got rout to submitting an issue for that one.) |
|
⚡ Previous build results for arm64, linux-dev, mac-dev-unit, windows are reusable. Rebuilding only android, arm32, linux-rel, mac-rel-css, mac-rel-wpt... |
|
💔 Test failed - linux-rel |
|
⚡ Previous build results for android, arm32, arm64, linux-dev, mac-dev-unit, mac-rel-wpt, windows are reusable. Rebuilding only linux-rel, mac-rel-css... |
|
☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt, windows |
This PR needs some thought!
It removes some sources of panic from script_thread.rs, caused by pipeline lookup failure. It's incomplete, as there are some uses of
get_browsing_contextelsewhere in the code../mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is