servo/components
bors-servo 2fb4dd9ec3 Auto merge of #12703 - sjmelia:12343_test_activation, r=Manishearth
Fix Issue 12343: Add pref-gated methods and test for activatable element

<!-- Please describe your changes on the following line: -->
Add methods to activatable elements; gated by a preference, for use in servo-specific WPT tests.

I cargo-culted over the "redundant check" from #12322, I don't really understand the possible exploit.

Obvious flaw is the copypasta for each element. I understand that the webidl codegen will produce a trait for ActivatableElement, but I can't see how I can provide a default implementation for this? I guess otherwise could be an improvement to have each element just delegate to an Enter.../Exit... method on the Activatable trait?

---
<!-- 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 fix #12343 (github issue number if applicable).

<!-- Either: -->
- [X] 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. -->

…states

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12703)
<!-- Reviewable:end -->
2016-09-16 20:34:25 -05:00
..
canvas Reorder use statements 2016-09-09 04:55:19 +02:00
canvas_traits Update cssparser 2016-09-07 14:13:56 +08:00
compositing Reorder use statements 2016-09-09 04:55:19 +02:00
constellation Auto merge of #12910 - creativcoder:swsender, r=jdm 2016-09-15 08:34:22 -05:00
debugger Implement a WebSocket server for debugging. 2016-09-12 11:02:09 +02:00
devtools Reorder use statements 2016-09-09 04:55:19 +02:00
devtools_traits dom::Response implementation 2016-09-06 19:58:32 -07:00
gfx Reorder use statements 2016-09-09 04:55:19 +02:00
gfx_traits Update euclid to 0.10.1 2016-08-21 03:03:45 +02:00
layout Auto merge of #13214 - shinglyu:gen_trace, r=SimonSapin 2016-09-09 21:13:42 -05:00
layout_thread Auto merge of #13214 - shinglyu:gen_trace, r=SimonSapin 2016-09-09 21:13:42 -05:00
layout_traits Reorder use statements 2016-09-09 04:55:19 +02:00
msg Excise SubpageId and use only PipelineIds 2016-09-13 15:37:38 -04:00
net Auto merge of #13294 - 6112:referrer-typo-fix, r=jdm 2016-09-16 15:43:54 -05:00
net_traits Fix most typoes for: "referer" -> "referrer" 2016-09-16 12:40:17 -04:00
plugins Update Rust to 1.13.0-nightly (6ffdda1ba 2016-09-14) 2016-09-15 17:00:56 +02:00
profile Reorder use statements 2016-09-09 04:55:19 +02:00
profile_traits Update serde to 0.8 (fixes #12659) 2016-08-12 18:37:27 +02:00
range Update serde to 0.8 (fixes #12659) 2016-08-12 18:37:27 +02:00
script Auto merge of #12703 - sjmelia:12343_test_activation, r=Manishearth 2016-09-16 20:34:25 -05:00
script_layout_interface Reorder use statements 2016-09-09 04:55:19 +02:00
script_traits Auto merge of #13278 - servo:rustup, r=jdm 2016-09-15 12:37:47 -05:00
servo Update webrender + shaders. 2016-09-16 11:01:24 +10:00
style Auto merge of #13188 - canaltinova:matrix, r=Manishearth 2016-09-16 05:01:23 -05:00
style_traits Reorder use statements 2016-09-09 04:55:19 +02:00
util Update webrender + shaders. 2016-09-16 11:01:24 +10:00
webdriver_server Use fn pipeline_id consistently, not fn pipeline 2016-09-13 15:17:40 -04:00