Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upFixes related to File API #10873
Fixes related to File API #10873
Conversation
highfive
commented
Apr 27, 2016
|
Heads up! This PR modifies the following files:
|
highfive
commented
Apr 27, 2016
|
@bors-servo try |
Fixing TODOs related to file input and File API Fixing problems I met when trying to resolve #10851, but most of changes here are simple fixes. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10873) <!-- Reviewable:end -->
|
|
|
@Ms2ger Looks like the changed |
|
It's not the one you changed, it's the ones you didn't change. |
|
|
|
|
|
I simplified the content of this contrib, since my discussion with @Manishearth shows that there are some design decisions to be settled down later. Welcome review. |
| @@ -18,14 +20,15 @@ pub struct File { | |||
| } | |||
|
|
|||
| impl File { | |||
| fn new_inherited(_file_bits: &Blob, name: DOMString) -> File { | |||
| fn new_inherited(file_bits: &Blob, name: DOMString) -> File { | |||
| let mime_type = guess_mime_type(Path::new(&*name)); | |||
This comment has been minimized.
This comment has been minimized.
Manishearth
May 2, 2016
Member
Why are we guessing the type here? The spec doesn't mention this, the type is the empty string unless explicitly provided by the user through the FilePropertyBag/BlobPropertyBag.
|
Review status: 0 of 8 files reviewed at latest revision, 1 unresolved discussion. components/script/dom/file.rs, line 24 [r6] (raw file): This snippet should be used in the internal initial construction when the files are selected by user. Comments from Reviewable |
|
@bors-servo r+ Reviewed 2 of 12 files at r6, 6 of 6 files at r7. components/script/dom/file.rs, line 24 [r6] (raw file): Comments from Reviewable |
|
|
Fixes related to File API Fixing problems I met when trying to resolve #10851, but most of changes here are simple fixes. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10873) <!-- Reviewable:end -->
|
|
|
Ping issue #11131 |
izgzhen commentedApr 27, 2016
•
edited by larsbergstrom
Fixing problems I met when trying to resolve #10851, but most of changes here are simple fixes.
This change is