diff options
author | Josh Matthews <josh@joshmatthews.net> | 2024-12-11 14:18:44 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-11 19:18:44 +0000 |
commit | 7b160700d0b76d54723a0f93c697225804a808bb (patch) | |
tree | 0d25b46ef1ba3345a7c3dfad4f0e4abd01e95aa7 /components/shared/script/lib.rs | |
parent | 25f242b652458fb91d7c923e48e7e61c8954fb01 (diff) | |
download | servo-7b160700d0b76d54723a0f93c697225804a808bb.tar.gz servo-7b160700d0b76d54723a0f93c697225804a808bb.zip |
Allow running testharness/testdriver/reftests in servodriver (#34550)
* Make servodriver a thin wrapper over the base webdriver browser/executor classes.
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
* Make ServoWebDriverRefTestExecutor a thin shell over the webdriver reftest executor.
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
* Wait for the initial load to complete when opening a new tab via webdriver.
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
* Remove assumption of a single tab from the webdriver server.
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
* Serialize all keys of JS objects when converting to webdriver values.
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
* Formatting.
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
* Cleanup, docs, etc.
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
* Use webview terminology more consistently.
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
* Fix flake8 errors.
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
---------
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
Diffstat (limited to 'components/shared/script/lib.rs')
-rw-r--r-- | components/shared/script/lib.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/components/shared/script/lib.rs b/components/shared/script/lib.rs index 5af22f8282d..74243e0e59f 100644 --- a/components/shared/script/lib.rs +++ b/components/shared/script/lib.rs @@ -808,6 +808,15 @@ pub enum WebDriverCommandMsg { Option<Rect<f32, CSSPixel>>, IpcSender<Option<Image>>, ), + /// Create a new webview that loads about:blank. The constellation will use + /// the provided channels to return the top level browsing context id + /// associated with the new webview, and a notification when the initial + /// load is complete. + NewWebView(IpcSender<TopLevelBrowsingContextId>, IpcSender<LoadStatus>), + /// Close the webview associated with the provided id. + CloseWebView(TopLevelBrowsingContextId), + /// Focus the webview associated with the provided id. + FocusWebView(TopLevelBrowsingContextId), } /// Resources required by workerglobalscopes |