aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/blob.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/blob.rs')
-rw-r--r--components/script/dom/blob.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/blob.rs b/components/script/dom/blob.rs
index 9845133c42c..451ced6efc3 100644
--- a/components/script/dom/blob.rs
+++ b/components/script/dom/blob.rs
@@ -239,7 +239,7 @@ impl BlobMethods for Blob {
fn Text(&self) -> Rc<Promise> {
let global = self.global();
let in_realm_proof = AlreadyInRealm::assert(&global);
- let p = Promise::new_in_current_realm(&global, InRealm::Already(&in_realm_proof));
+ let p = Promise::new_in_current_realm(InRealm::Already(&in_realm_proof));
let id = self.get_blob_url_id();
global.read_file_async(
id,
@@ -262,7 +262,7 @@ impl BlobMethods for Blob {
fn ArrayBuffer(&self) -> Rc<Promise> {
let global = self.global();
let in_realm_proof = AlreadyInRealm::assert(&global);
- let p = Promise::new_in_current_realm(&global, InRealm::Already(&in_realm_proof));
+ let p = Promise::new_in_current_realm(InRealm::Already(&in_realm_proof));
let id = self.get_blob_url_id();