Add enough Webdriver support to enable Get().

This is incomplete in several ways:

* It assumes that there's only one constellation (i.e. top level browsing context), ever.
* The session support is very basic indeed (no capabilities)
* Passing channels over channels may not sit well with IPC
* The error handling is mostly missing
This commit is contained in:
James Graham 2015-04-03 23:23:52 +01:00
parent 7fddf4aa13
commit 009e2baaf0
10 changed files with 164 additions and 18 deletions

View file

@ -104,10 +104,6 @@ impl Browser {
devtools::start_server(port)
});
if let Some(port) = opts.webdriver_port {
webdriver_server::start_server(port);
}
// Create the constellation, which maintains the engine
// pipelines, including the script and layout threads, as well
// as the navigation context.
@ -118,6 +114,10 @@ impl Browser {
mem_profiler_chan.clone(),
shared_task_pool);
if let Some(port) = opts.webdriver_port {
webdriver_server::start_server(port, constellation_chan.clone());
};
// The compositor coordinates with the client window to create the final
// rendered page and display it somewhere.
let compositor = CompositorTask::create(window,