diff options
author | Bastien Orivel <eijebong@bananium.fr> | 2019-05-24 22:24:41 +0200 |
---|---|---|
committer | Bastien Orivel <eijebong@bananium.fr> | 2019-05-24 23:02:38 +0200 |
commit | 7dbff6efb7ce93ecfb04883cd1dffa24a03ed0ad (patch) | |
tree | 6cecd1c857227a6d61188689c143d7bf99a50d0b /components/script/fetch.rs | |
parent | 2181872973ce49b50ed2dd077c4fdde6f4c5d019 (diff) | |
download | servo-7dbff6efb7ce93ecfb04883cd1dffa24a03ed0ad.tar.gz servo-7dbff6efb7ce93ecfb04883cd1dffa24a03ed0ad.zip |
Add an inCompartments config for bindings
Diffstat (limited to 'components/script/fetch.rs')
-rw-r--r-- | components/script/fetch.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/fetch.rs b/components/script/fetch.rs index e7011707227..a8f11b1b251 100644 --- a/components/script/fetch.rs +++ b/components/script/fetch.rs @@ -2,7 +2,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ -use crate::compartments::{AlreadyInCompartment, InCompartment}; +use crate::compartments::InCompartment; use crate::dom::bindings::codegen::Bindings::RequestBinding::RequestInfo; use crate::dom::bindings::codegen::Bindings::RequestBinding::RequestInit; use crate::dom::bindings::codegen::Bindings::ResponseBinding::ResponseBinding::ResponseMethods; @@ -134,12 +134,12 @@ pub fn Fetch( global: &GlobalScope, input: RequestInfo, init: RootedTraceableBox<RequestInit>, + comp: InCompartment, ) -> Rc<Promise> { let core_resource_thread = global.core_resource_thread(); // Step 1 - let aic = AlreadyInCompartment::assert(global); - let promise = Promise::new_in_current_compartment(global, InCompartment::Already(&aic)); + let promise = Promise::new_in_current_compartment(global, comp); let response = Response::new(global); // Step 2 |