aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/blob.rs
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2017-03-21 21:17:25 -0700
committerGitHub <noreply@github.com>2017-03-21 21:17:25 -0700
commit7be9f0e7c4f16c5626180c3a6b07abdecea408fe (patch)
tree41f1a458c8e5fb1d24f251e7947dff43a7c363e1 /components/script/dom/blob.rs
parent82b88aad453f376a97adcca7b45d0b0ee390c817 (diff)
parent5c4f0be04872f5f2e8736b15a2169f9479509a0e (diff)
downloadservo-7be9f0e7c4f16c5626180c3a6b07abdecea408fe.tar.gz
servo-7be9f0e7c4f16c5626180c3a6b07abdecea408fe.zip
Auto merge of #15519 - gterzian:implement_structuredclone_callbacks, r=jdm
implement structured clone callbacks - support Blob cloning <!-- Please describe your changes on the following line: --> 1. Implement stubs for structured clone callbacks. 2. Support Blob cloning. Partial implementation of https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Structured_clone_algorithm --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [ ] These changes fix #15021 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/15519) <!-- Reviewable:end -->
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 036dcfab483..d8ed5fa1b64 100644
--- a/components/script/dom/blob.rs
+++ b/components/script/dom/blob.rs
@@ -163,6 +163,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 {