diff options
author | Martin Robinson <mrobinson@igalia.com> | 2025-02-24 14:57:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-24 13:57:28 +0000 |
commit | 606299563668b44f0a0b4593790324d776ffb2a5 (patch) | |
tree | 6eaaa9f112b3a7f758f79d48fd816bb3451d174d /components/shared/embedder/lib.rs | |
parent | 41c2422a662926ea4b4ccc3ba6c3fd7e071586f5 (diff) | |
download | servo-606299563668b44f0a0b4593790324d776ffb2a5.tar.gz servo-606299563668b44f0a0b4593790324d776ffb2a5.zip |
libservo: Move WebDriver messages to the `embedder` crate (#35602)
This is the first step toward moving the WebDriver implementation to
servoshell. This move will make it possible to start testing the
embedding API with WebDriver. See [this zulip thread][a] for more details.
While WebDriver will be able to use a lot of API commands to do what it
is doing now, there will still need to be some "cheat codes" for more
gnarly access to `ScriptThread` details. That's why we likely won't be
able to remove all WebDriver-specific messages from the API -- but maybe
they will be useful for embedders somehow.
A couple messages have to change as they depended on `script_traits`
types, particularly those that used `WindowSizeData` and `LoadData`. I
think this helps to encapsulate the WebDriver commands a bit more
though.
[a]: https://servo.zulipchat.com/#narrow/channel/437943-embedding/topic/webdriver.20as.20embedding.20api.20playgound
Signed-off-by: Martin Robinson <mrobinson@igalia.com>
Diffstat (limited to 'components/shared/embedder/lib.rs')
-rw-r--r-- | components/shared/embedder/lib.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/components/shared/embedder/lib.rs b/components/shared/embedder/lib.rs index 071ad16be71..080853d4d9d 100644 --- a/components/shared/embedder/lib.rs +++ b/components/shared/embedder/lib.rs @@ -4,6 +4,7 @@ pub mod input_events; pub mod resources; +mod webdriver; use std::fmt::{Debug, Error, Formatter}; use std::path::PathBuf; @@ -22,6 +23,7 @@ use url::Url; use webrender_api::units::{DeviceIntPoint, DeviceIntRect, DeviceIntSize}; pub use crate::input_events::*; +pub use crate::webdriver::*; /// Tracks whether Servo isn't shutting down, is in the process of shutting down, /// or has finished shutting down. |