aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/body.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/body.rs')
-rw-r--r--components/script/body.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/components/script/body.rs b/components/script/body.rs
index 4a028084bb8..2d8bdc0687e 100644
--- a/components/script/body.rs
+++ b/components/script/body.rs
@@ -718,8 +718,7 @@ impl Callback for ConsumeBodyPromiseHandler {
// https://fetch.spec.whatwg.org/#concept-body-consume-body
#[allow(unrooted_must_root)]
pub fn consume_body<T: BodyMixin + DomObject>(object: &T, body_type: BodyType) -> Rc<Promise> {
- let global = object.global();
- let in_realm_proof = AlreadyInRealm::assert(&global);
+ let in_realm_proof = AlreadyInRealm::assert();
let promise =
Promise::new_in_current_realm(InRealm::Already(&in_realm_proof));