diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2016-07-08 09:56:31 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-08 09:56:31 -0700 |
commit | 12260b24d0e97ee33116d4b730203e5a2619a499 (patch) | |
tree | 15f0d085dfa1d6745885860f183607d6cb49a330 /components/script/dom/xmlhttprequest.rs | |
parent | d475a277eebaa7d91d1b070b169e205b4c533c4f (diff) | |
parent | 55267560ca20b8e1ae1bb9173050611779673061 (diff) | |
download | servo-12260b24d0e97ee33116d4b730203e5a2619a499.tar.gz servo-12260b24d0e97ee33116d4b730203e5a2619a499.zip |
Auto merge of #12277 - ConnorGBrewster:network_listener_cancellable, r=Manishearth
Make network listener runnable cancellable
<!-- Please describe your changes on the following line: -->
This keeps scripts from executing after its script thread has been shut down.
---
<!-- 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 (maybe) #12048 (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="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12277)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/xmlhttprequest.rs')
-rw-r--r-- | components/script/dom/xmlhttprequest.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/components/script/dom/xmlhttprequest.rs b/components/script/dom/xmlhttprequest.rs index e76bbd0c7b3..148a51c8c6b 100644 --- a/components/script/dom/xmlhttprequest.rs +++ b/components/script/dom/xmlhttprequest.rs @@ -258,6 +258,7 @@ impl XMLHttpRequest { let listener = NetworkListener { context: context, script_chan: script_chan, + wrapper: None, }; ROUTER.add_route(action_receiver.to_opaque(), box move |message| { listener.notify_fetch(message.to().unwrap()); |