diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2019-08-21 10:46:03 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-21 10:46:03 -0400 |
commit | ba1fa0835f438df32cd40bc573cecac55e98e384 (patch) | |
tree | 9c9d2af33523403f7c5a0ec4fffbfc91d58163ee /components/script | |
parent | de76163846d22da0cc2c048dee7fc1dc660f3259 (diff) | |
parent | 34008a317bb6c7ea3a02ea8a761cda6795f409ae (diff) | |
download | servo-ba1fa0835f438df32cd40bc573cecac55e98e384.tar.gz servo-ba1fa0835f438df32cd40bc573cecac55e98e384.zip |
Auto merge of #23934 - gterzian:add_process_name_space, r=jdm
Introduce a namespace installer
<!-- Please describe your changes on the following line: -->
---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [ ] `./mach build -d` does not report any errors
- [ ] `./mach test-tidy` does not report any errors
- [ ] These changes fix #23932 (GitHub issue number if applicable)
<!-- Either: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because ___
<!-- 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/23934)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script')
-rw-r--r-- | components/script/dom/workerglobalscope.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/components/script/dom/workerglobalscope.rs b/components/script/dom/workerglobalscope.rs index 2e5a199a08f..4ca2ad59d74 100644 --- a/components/script/dom/workerglobalscope.rs +++ b/components/script/dom/workerglobalscope.rs @@ -44,7 +44,7 @@ use js::jsapi::JSAutoRealm; use js::jsval::UndefinedValue; use js::panic::maybe_resume_unwind; use js::rust::{HandleValue, ParentRuntime}; -use msg::constellation_msg::PipelineId; +use msg::constellation_msg::{PipelineId, PipelineNamespace}; use net_traits::request::{ CredentialsMode, Destination, ParserMetadata, RequestBuilder as NetRequestInit, }; @@ -123,6 +123,8 @@ impl WorkerGlobalScope { timer_event_chan: IpcSender<TimerEvent>, closing: Option<Arc<AtomicBool>>, ) -> Self { + // Install a pipeline-namespace in the current thread. + PipelineNamespace::auto_install(); Self { globalscope: GlobalScope::new_inherited( init.pipeline_id, |