servo/components/script
bors-servo e697e6cca7
Auto merge of #25488 - pshaughn:clickactivate, r=jdm
Event dispatch rewritten to align to spec, activate on clicks better

I went over the changes to the event dispatch spec that had accumulated over the past few years, rewriting dispatch/invoke/inner-invoke almost completely and modifying other code where it was relevant. Most of the remaining obvious deviations from spec are things that will only come up when we start handling events in shadow DOM.

I am pushing now because I want to see CI test results, but please do not approve this PR just if automated test improvements look good. I may have broken some actual UI interactions in the course of fixing synthetic events, and some manual testing is needed, including checking that manual interactions with interactive content continue to fire the events they're supposed to.

---
<!-- 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 #25384 and fix #22783 and fix #25199

<!-- Either: -->
- [ ] There are automated tests for the synthetic-click parts of these changes, BUT the effects on real UI events need some manual testing before merging

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
2020-02-13 17:37:12 -05:00
..
docs
dom Auto merge of #25488 - pshaughn:clickactivate, r=jdm 2020-02-13 17:37:12 -05:00
task_source remove unnecessary thread in filereader, add stream TODO 2019-12-10 14:55:22 +08:00
body.rs Implement Blob methods (text/arraybuffer) and async file read method 2020-01-28 14:38:32 +05:30
build.rs Update rand to 0.7 (fixes #24448) 2019-10-23 15:34:48 +02:00
canvas_state.rs Implement CanvasRenderingContext2D.getTransform() 2020-02-12 08:49:18 +01:00
Cargo.toml Add accountable-refcell as optional build time feature 2020-01-08 09:44:41 +05:30
clipboard_provider.rs
devtools.rs rename compartment to realm 2020-01-24 20:52:36 +05:30
document_loader.rs Use #![register_tool] instead of #![register_attr] 2019-11-15 17:24:42 +01:00
euclidext.rs Addresses issues raised in #24465; removes redundancy in set_bitmap_dimensions 2019-11-10 18:37:14 -05:00
fetch.rs let integrity_metadata survive IPC sending 2020-01-30 10:34:29 -05:00
image_listener.rs
init.rs script: Ensure JS engine is initialized and deinitialized on the same thread. 2019-11-26 21:54:33 -05:00
layout_image.rs
lib.rs rename compartment to realm 2020-01-24 20:52:36 +05:30
mem.rs
microtask.rs Add microtask checkpoints on </script> and CE construct 2020-01-15 11:49:52 -05:00
network_listener.rs #24468 Performance::queue_entries return the index of the added performance entry 2019-12-13 13:41:47 -05:00
realms.rs rename compartment to realm 2020-01-24 20:52:36 +05:30
script_module.rs rename compartment to realm 2020-01-24 20:52:36 +05:30
script_runtime.rs Modify script to prevent further violations of snake_case 2020-01-18 14:22:15 +05:30
script_thread.rs rename compartment to realm 2020-01-24 20:52:36 +05:30
serviceworker_manager.rs Undo changes done to change worker_id type to string 2019-12-10 13:12:54 +05:30
serviceworkerjob.rs Use #![register_tool] instead of #![register_attr] 2019-11-15 17:24:42 +01:00
stylesheet_loader.rs Modify script to prevent further violations of snake_case 2020-01-18 14:22:15 +05:30
stylesheet_set.rs
task.rs
task_manager.rs impl timer-task-source, dedicated time-out mechanism for service-worker 2019-11-19 14:32:21 +08:00
task_queue.rs
test.rs Modify script to prevent further violations of snake_case 2020-01-18 14:22:15 +05:30
textinput.rs Allow deletion from overflowed textinput 2020-01-10 19:02:41 +01:00
timers.rs impl timer-task-source, dedicated time-out mechanism for service-worker 2019-11-19 14:32:21 +08:00
unpremultiplytable.rs
webdriver_handlers.rs Modify script to prevent further violations of snake_case 2020-01-18 14:22:15 +05:30