New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Patches of File API #12544
Patches of File API #12544
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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("/", ":")); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Link to the spec bug here There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What do you mean by "spec bug"? Regarding link, this tiny replace operation is specified in the url above this function There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh sorry, I was talking about w3c/FileAPI#41 (the bug that wishes to remove this behavior) |
||
Ok(File::new(global, BlobImpl::new_from_bytes(bytes), replaced_filename, modified, typeString)) | ||
} | ||
|
||
pub fn name(&self) -> &DOMString { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Manishearth added