aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/blob.rs
diff options
context:
space:
mode:
authorGregory Terzian <gterzian@users.noreply.github.com>2017-02-19 17:08:03 +0800
committerGregory Terzian <gterzian@users.noreply.github.com>2017-03-22 09:52:35 +0800
commit5c4f0be04872f5f2e8736b15a2169f9479509a0e (patch)
treefb29ded994dfe0624f3f235fc701c64d13c6fbf0 /components/script/dom/blob.rs
parentec84560e7f87d594df6701563fa3aa2b6e45e826 (diff)
downloadservo-5c4f0be04872f5f2e8736b15a2169f9479509a0e.tar.gz
servo-5c4f0be04872f5f2e8736b15a2169f9479509a0e.zip
support structured cloning for Blob
Diffstat (limited to 'components/script/dom/blob.rs')
-rw-r--r--components/script/dom/blob.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/components/script/dom/blob.rs b/components/script/dom/blob.rs
index e4e623d799d..9d6d14b8b13 100644
--- a/components/script/dom/blob.rs
+++ b/components/script/dom/blob.rs
@@ -166,6 +166,11 @@ impl Blob {
}
}
+ /// Get a copy of the type_string
+ pub fn get_type_string(&self) -> String {
+ self.type_string.clone()
+ }
+
/// Get a FileID representing the Blob content,
/// used by URL.createObjectURL
pub fn get_blob_url_id(&self) -> Uuid {