Best headless browser for AI agents. Lite, Fast, High-Compatibility. Built in Rust
Rust ai-agentsai-toolsbrowserbrowser-automationcloud-browserheadlessheadless-browserkitesurfplaywrightpuppeteerrustservoweb-crawlerweb-crawlingweb-scraperweb-scraping
refactor(webmcp): prepare form registration tasks once
ldm07c0f2b78a2d9
diff --git a/moli-renderer-v8/src/context_bootstrap/web_mcp/declarative.rs b/moli-renderer-v8/src/context_bootstrap/web_mcp/declarative.rsindex 9a6292c02..5c0d9be9f 100644--- a/moli-renderer-v8/src/context_bootstrap/web_mcp/declarative.rs+++ b/moli-renderer-v8/src/context_bootstrap/web_mcp/declarative.rs@@ -327,13 +327,11 @@ pub(crate) fn prepare_registration_task(host: &mut JsContextHost) -> bool {!store.form_registration_task_queued && !store.dirty_forms.is_empty()}+/// Queue the task after `prepare_registration_task` returned true.pub(crate) fn queue_registration_task(scope: &mut v8::PinScope<'_, '_>,host_ptr: *mut JsContextHost,) {- if !prepare_registration_task(unsafe { &mut *host_ptr }) {- return;- }unsafe { &mut *host_ptr }.native_bridge_mut().web_mcp