diff options
Diffstat (limited to 'components/script/dom/blob.rs')
-rw-r--r-- | components/script/dom/blob.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/blob.rs b/components/script/dom/blob.rs index 451ced6efc3..4cc0149d008 100644 --- a/components/script/dom/blob.rs +++ b/components/script/dom/blob.rs @@ -238,7 +238,7 @@ impl BlobMethods for Blob { // https://w3c.github.io/FileAPI/#text-method-algo fn Text(&self) -> Rc<Promise> { let global = self.global(); - let in_realm_proof = AlreadyInRealm::assert(&global); + let in_realm_proof = AlreadyInRealm::assert(); let p = Promise::new_in_current_realm(InRealm::Already(&in_realm_proof)); let id = self.get_blob_url_id(); global.read_file_async( @@ -261,7 +261,7 @@ impl BlobMethods for Blob { // https://w3c.github.io/FileAPI/#arraybuffer-method-algo fn ArrayBuffer(&self) -> Rc<Promise> { let global = self.global(); - let in_realm_proof = AlreadyInRealm::assert(&global); + let in_realm_proof = AlreadyInRealm::assert(); let p = Promise::new_in_current_realm(InRealm::Already(&in_realm_proof)); let id = self.get_blob_url_id(); |