Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upUses of panic! in script_thread #11685
Closed
Labels
Comments
This was referenced Jun 9, 2016
bors-servo
added a commit
that referenced
this issue
Jun 24, 2016
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 -->
bors-servo
added a commit
that referenced
this issue
Jun 24, 2016
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 -->
bors-servo
added a commit
that referenced
this issue
Jun 24, 2016
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 -->
|
Fixed by #11695? |
|
@timvandermeij not yet, there still some uses of |
|
The one remaining
which should be fixed by #14885. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There are uses of panic! in script_thread.rs which have race conditions:
the pipeline might have been torn down before the message was sent. These should probably all be warn!
cc @Ms2ger