servo/components
bors-servo a59bcd6749
Auto merge of #21942 - codehag:devtools-add-device-actor, r=jdm
DevTools - add DeviceActor and update Root to own global actors

This is one of three pull requests that allows the DevTools Debugger to render. This pr also introduces global actors to the root actor, the same as exists in FF devtools. At a later point I would like to reorganize this.

The two related prs are #21943 and #21944

This is the most significant change of the three. It introduces both Device and Performance as global actors, and leaves the Performance actor also as a target actor. It also introduces the concept of ownership to the root actor, with regards to the two Global Actors.

The Device actor as added to allow the JS Debugger to start up. This required the DeviceActor's `getDescription` method. `getDescription`, in the case of servo, returns a couple of basic fields that the debugger is interested in but doesn't use, specifically `apptype` -- which is returning a fake value of `servo`, and the version number `63.0`.

The version number is interesting because devtools has [dropped support for any versions below 2 version numbers from the current firefox](https://searchfox.org/mozilla-central/rev/3a54520d8d2319a4116866371ed3d9ed2ec0cc2b/devtools/client/debugger/new/src/client/firefox/commands.js#398).

This means that if we want the servo server to be supported, we will need to keep this number synced with FF's versioning. It isn't great, but hopefully we can introduce a different approach later on.

---
<!-- 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
- [ ] These changes fix #__ (github issue number if applicable).

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

<!-- 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. -->

<!-- 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/21942)
<!-- Reviewable:end -->
2018-10-14 14:17:51 -04:00
..
allocator Format component allocator #21373 2018-08-16 15:44:54 +08:00
atoms Media element duration param 2018-10-08 16:12:03 +02:00
bluetooth Make mach test-unit not recompile components after mach build 2018-10-07 13:27:23 +02:00
bluetooth_traits Make mach test-unit not recompile components after mach build 2018-10-07 13:27:23 +02:00
canvas Auto merge of #21725 - pyfisch:update-wr, r=jdm 2018-10-12 12:49:23 -04:00
canvas_traits Share some code between 2D canvas and WebGL 2018-10-09 14:57:02 +02:00
channel add servo_channel crate 2018-09-12 11:25:45 +08:00
compositing Make mach test-unit not recompile components after mach build 2018-10-07 13:27:23 +02:00
config Make mach test-unit not recompile components after mach build 2018-10-07 13:27:23 +02:00
constellation Provide webrender_api::RenderApiSender to ScriptThread and DOM Window 2018-10-08 16:11:59 +02:00
debugger Replace mpsc with crossbeam/servo channel, update ipc-channel 2018-09-12 13:33:32 +08:00
deny_public_fields Format components debugger and deny_public_fields #21373 2018-09-01 09:44:53 +08:00
devtools Auto merge of #21942 - codehag:devtools-add-device-actor, r=jdm 2018-10-14 14:17:51 -04:00
devtools_traits Replace mpsc with crossbeam/servo channel, update ipc-channel 2018-09-12 13:33:32 +08:00
dom_struct Format components dom_struct, domobject_derive and embedder_traits #21373 2018-09-03 08:19:25 +08:00
domobject_derive Format components dom_struct, domobject_derive and embedder_traits #21373 2018-09-03 08:19:25 +08:00
embedder_traits Make mach test-unit not recompile components after mach build 2018-10-07 13:27:23 +02:00
fallible Partially revert #21746. 2018-09-22 18:51:42 +02:00
geometry Move malloc_size_of_derive to proper position 2018-09-04 11:29:38 +08:00
gfx Fix windows build errors. 2018-10-11 22:34:33 -04:00
gfx_traits Format gfx_traits #21373 2018-09-09 10:11:08 +08:00
hashglobe Format hashglobe #21373 2018-09-09 10:14:36 +08:00
jstraceable_derive Format jstraceable_derive #21373 2018-09-10 11:03:38 +08:00
layout Auto merge of #21931 - jdm:reload-images, r=emilio 2018-10-13 07:56:11 -04:00
layout_thread Make layout use available image data before querying the image cache. 2018-10-12 21:55:09 -04:00
layout_traits Replace mpsc with crossbeam/servo channel, update ipc-channel 2018-09-12 13:33:32 +08:00
malloc_size_of Update webrender to 923ee495bd9b0fda8a4a94c5a6cf42e2f0548731. 2018-10-09 18:23:19 -04:00
malloc_size_of_derive Rustfmt malloc_size_of & derive 2018-09-05 10:32:44 +02:00
metrics Auto merge of #21325 - gterzian:crossbeam_integration, r=SimonSapin,jdm 2018-09-12 13:33:45 -04:00
msg Format msg #21373 2018-09-11 15:04:55 +08:00
net Auto merge of #21877 - servo:webgl, r=jdm 2018-10-09 20:15:40 -04:00
net_traits Remove Origin::unicode_serialization 2018-10-12 10:25:03 +02:00
pixels Share some code between 2D canvas and WebGL 2018-10-09 14:57:02 +02:00
profile Add support for IpcBytesReceiver in profile_traits::ipc - #21704 2018-09-20 21:36:34 -04:00
profile_traits Add support for IpcBytesReceiver in profile_traits::ipc - #21704 2018-09-20 21:36:34 -04:00
rand Bump env_logger to 0.5 and log to 0.4 in every servo crate 2018-03-28 19:50:58 +02:00
range format components/range using rustfmt 2018-09-12 12:32:31 +05:30
remutex format components/remutex 2018-09-12 12:37:11 +05:30
script Auto merge of #21931 - jdm:reload-images, r=emilio 2018-10-13 07:56:11 -04:00
script_layout_interface Make layout use available image data before querying the image cache. 2018-10-12 21:55:09 -04:00
script_plugins Format components/script_plugins 2018-09-13 01:01:35 +09:00
script_traits Rustfmt and make tidy happy 2018-10-08 16:12:03 +02:00
selectors Partially revert #21746. 2018-09-22 18:51:42 +02:00
servo Update webrender to 923ee495bd9b0fda8a4a94c5a6cf42e2f0548731. 2018-10-09 18:23:19 -04:00
servo_arc Fix tidy issues. 2018-09-18 11:46:01 +02:00
size_of_test Format component size_of_test 2018-09-10 21:31:38 +09:00
std_test_override Make mach test-unit not recompile components after mach build 2018-10-07 13:27:23 +02:00
style style: fix tidy issues and update test expectations. 2018-10-09 22:01:38 +02:00
style_derive style: Teach ComputeSquaredDistance derive about #[animation(constant)]. 2018-09-15 17:56:41 +02:00
style_traits Format component of style_traits 2018-09-08 13:28:13 +09:00
url Remove Origin::unicode_serialization 2018-10-12 10:25:03 +02:00
webdriver_server Replace mpsc with crossbeam/servo channel, update ipc-channel 2018-09-12 13:33:32 +08:00
webvr Replace mpsc with crossbeam/servo channel, update ipc-channel 2018-09-12 13:33:32 +08:00
webvr_traits Replace mpsc with crossbeam/servo channel, update ipc-channel 2018-09-12 13:33:32 +08:00