servo/components
bors-servo 33bda9c207 Auto merge of #11757 - izgzhen:file-acccept-mime-filter, r=Manishearth
Implement filter for file-type input's accept attribute

Now the two sides are pasted together with the new version of `mime_guess` landed.

I tested this thing locally with stuff like this:

```html
<input id="input_file" type="file" accept=".doc,.docx,.xml,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document"></input>
<a onclick="open_file();">Click</a>

<script type="text/javascript">
    function open_file() {
        console.log("Open file");
        document.getElementById("input_file").click();
    }
</script>
```

Will WPT be able to handle this automatically?

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes is related to #11131

<!-- Either: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- 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/11757)
<!-- Reviewable:end -->
2016-06-20 12:06:52 -05:00
..
canvas Make canvas send their data themselves to other canvas 2016-06-16 18:24:04 +01:00
canvas_traits Make canvas send their data themselves to other canvas 2016-06-16 18:24:04 +01:00
compositing Auto merge of #10225 - jmr0:visibility_api, r=jdm 2016-06-16 08:53:56 -05:00
constellation Auto merge of #10225 - jmr0:visibility_api, r=jdm 2016-06-16 08:53:56 -05:00
devtools Make the net monitor panel in FF's devtools show meaningful output. 2016-06-06 00:51:36 +01:00
devtools_traits Make the net monitor panel in FF's devtools show meaningful output. 2016-06-06 00:51:36 +01:00
gfx Update string_cache to v0.2.20 2016-06-20 12:17:28 +08:00
gfx_traits script: When using WebRender, keep the DOM-side scroll positions for 2016-06-10 18:43:04 -07:00
layout Auto merge of #11800 - Ms2ger:place_float_if_applicable, r=nox 2016-06-20 08:17:13 -05:00
layout_traits Remove the layout shutdown channel. 2016-06-04 13:24:32 +02:00
msg Added support for navigating by a delta 2016-06-04 18:47:38 -06:00
net Implement filter for file-type input's accept attribute 2016-06-20 20:58:53 +08:00
net_traits Implement filter for file-type input's accept attribute 2016-06-20 20:58:53 +08:00
plugins Update Rust to 1.11.0-nightly (ec872dc8a 2016-06-07) 2016-06-08 14:03:57 +02:00
profile implement related sw interface and register method 2016-06-02 04:09:39 +05:30
profile_traits implement related sw interface and register method 2016-06-02 04:09:39 +05:30
range Use num-traits in range. 2016-04-20 14:59:05 +02:00
script Implement filter for file-type input's accept attribute 2016-06-20 20:58:53 +08:00
script_traits Auto merge of #10225 - jmr0:visibility_api, r=jdm 2016-06-16 08:53:56 -05:00
servo Implement filter for file-type input's accept attribute 2016-06-20 20:58:53 +08:00
style Update string_cache to v0.2.20 2016-06-20 12:17:28 +08:00
style_traits use less repetitive name 2016-06-12 12:28:07 +08:00
util Use *const AtomicUsize rather than *mut AtomicUsize in WorkQueue. 2016-06-19 15:46:04 +02:00
webdriver_server Added support for navigating by a delta 2016-06-04 18:47:38 -06:00