aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/file.rs
diff options
context:
space:
mode:
authorShing Lyu <shing.lyu@gmail.com>2014-12-22 23:45:00 +0800
committerShing Lyu <shing.lyu@gmail.com>2015-01-01 16:23:21 +0800
commit6df9b7fd3a68fb4a020641192c8ee59a98ae08dd (patch)
tree91104c0bcbb9b42a27347ed46049256503efcb85 /components/script/dom/file.rs
parent37a97f3273c442fa59a3f65e8300a2527b004036 (diff)
downloadservo-6df9b7fd3a68fb4a020641192c8ee59a98ae08dd.tar.gz
servo-6df9b7fd3a68fb4a020641192c8ee59a98ae08dd.zip
Bug #1820, add the optional "type" parameter to Blob
Diffstat (limited to 'components/script/dom/file.rs')
-rw-r--r--components/script/dom/file.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/components/script/dom/file.rs b/components/script/dom/file.rs
index 5ac612e8ecd..ce0a4b766b1 100644
--- a/components/script/dom/file.rs
+++ b/components/script/dom/file.rs
@@ -20,7 +20,8 @@ impl File {
fn new_inherited(global: &GlobalRef, type_: BlobTypeId,
_file_bits: JSRef<Blob>, name: DOMString) -> File {
File {
- blob: Blob::new_inherited(global, type_, None),
+ //TODO: get type from the underlying filesystem instead of "".to_string()
+ blob: Blob::new_inherited(global, type_, None, ""),
name: name,
}
// XXXManishearth Once Blob is able to store data