Bug #1820, add the optional "type" parameter to Blob

This commit is contained in:
Shing Lyu 2014-12-22 23:45:00 +08:00
parent 37a97f3273
commit 6df9b7fd3a
6 changed files with 66 additions and 51 deletions

View file

@ -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