diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2019-07-01 10:01:46 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-01 10:01:46 -0400 |
commit | 18477d1e1e16bf96da7155e98da4be6663320897 (patch) | |
tree | 31f206e242f88541270a44643d2d04fb088d3daf /python/servo/util.py | |
parent | da168de29678c49959909ada6b189d1654ce7bd7 (diff) | |
parent | f2a64db15113d0b531fd4fcfc389d96790817cf9 (diff) | |
download | servo-18477d1e1e16bf96da7155e98da4be6663320897.tar.gz servo-18477d1e1e16bf96da7155e98da4be6663320897.zip |
Auto merge of #23574 - asajeffrey:glutin-reduce-borrow-duration, r=paulrouget
Don't process events while borrowing the event loop
<!-- Please describe your changes on the following line: -->
At the moment, the glutin embedder holds onto a borrow of the events loop while processing events, which is dangerous if any of the event handlers end up using the events loop reentrantly. (This caused a panic while integrating https://github.com/servo/rust-webvr/pull/84.)
---
<!-- 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 do not require tests because this is low-level embedding code
<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->
<!-- 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/23574)
<!-- Reviewable:end -->
Diffstat (limited to 'python/servo/util.py')
0 files changed, 0 insertions, 0 deletions