mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
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:
parent
7fddf4aa13
commit
009e2baaf0
10 changed files with 164 additions and 18 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue