Repository navigation
Fixes related to File API - #10873
Conversation
|
Heads up! This PR modifies the following files:
|
|
@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 -->
|
💔 Test failed - linux-dev |
|
@Ms2ger Looks like the changed |
|
It's not the one you changed, it's the ones you didn't change. |
|
☔ The latest upstream changes (presumably #10895) made this pull request unmergeable. Please resolve the merge conflicts. |
|
☔ The latest upstream changes (presumably #10929) made this pull request unmergeable. Please resolve the merge conflicts. |
|
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. |
| 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)); |
There was a problem hiding this comment.
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 |
|
📌 Commit e0f3cda has been approved by |
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 -->
|
☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt, windows |
|
Ping issue #11131 |
Fixing problems I met when trying to resolve #10851, but most of changes here are simple fixes.
This change is