servo/components/shared/embedder
Narfinger 991be359a3
libservo: Allow embedders to execute JavaScript scripts via the API (#35720)
This change adds a new `WebView` API `evaluate_javascript()`, which
allows embedders to
execute JavaScript code and wait for a reply asynchronously. Ongoing
script execution is
tracked by a libservo `JavaScriptEvaluator` struct, which maps an id to
the callback passed
to the `evaluate_javascript()` method. The id is used to track the
script and its execution
through the other parts of Servo.

Testing: This changes includes `WebView` unit tests.

---------

Signed-off-by: Narfinger <Narfinger@users.noreply.github.com>
Signed-off-by: Martin Robinson <mrobinson@igalia.com>
Co-authored-by: Martin Robinson <mrobinson@igalia.com>
2025-05-13 12:54:18 +00:00
..
build.rs Set the cfg properly for the production-stripped profile (#32991) 2024-08-09 09:16:51 +00:00
Cargo.toml resources: Remove baked in resources (#36042) 2025-04-17 05:12:44 +00:00
input_events.rs Set proper button value in WebDriver - ElementClick command (#36871) 2025-05-07 08:58:01 +00:00
lib.rs libservo: Allow embedders to execute JavaScript scripts via the API (#35720) 2025-05-13 12:54:18 +00:00
resources.rs Embed user agent stylesheets and media control resouces in libservo (#36803) 2025-05-04 18:48:09 +00:00
user_content_manager.rs Allow setting userscripts directly without the need of files (#35388) 2025-03-27 03:00:08 +00:00
webdriver.rs Implement wheel action in webdriver (#36744) 2025-05-07 08:41:34 +00:00