mirror of
https://github.com/servo/servo.git
synced 2025-08-13 09:25:32 +01:00
Patches of File API
This commit is contained in:
parent
ca9bc23b39
commit
f598b5f7fd
3 changed files with 8 additions and 9 deletions
|
@ -73,7 +73,10 @@ impl File {
|
|||
let ref typeString = blobPropertyBag.type_;
|
||||
|
||||
let modified = filePropertyBag.lastModified;
|
||||
Ok(File::new(global, BlobImpl::new_from_bytes(bytes), filename, modified, typeString))
|
||||
// NOTE: Following behaviour might be removed in future,
|
||||
// see https://github.com/w3c/FileAPI/issues/41
|
||||
let replaced_filename = DOMString::from_string(filename.replace("/", ":"));
|
||||
Ok(File::new(global, BlobImpl::new_from_bytes(bytes), replaced_filename, modified, typeString))
|
||||
}
|
||||
|
||||
pub fn name(&self) -> &DOMString {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue