Skip to content

armgit / moli

Public Imported from GitHub
0

Best headless browser for AI agents. Lite, Fast, High-Compatibility. Built in Rust

fix(permissions): initialize listeners through the shared event target owner

lanyue-llk09a576b3c837
diff --git a/moli-renderer-v8/src/context_bootstrap/window_runtime/navigator.rs b/moli-renderer-v8/src/context_bootstrap/window_runtime/navigator.rs
index 018ebe419..5dbee055c 100644
--- a/moli-renderer-v8/src/context_bootstrap/window_runtime/navigator.rs
+++ b/moli-renderer-v8/src/context_bootstrap/window_runtime/navigator.rs
@@ -611,7 +611,7 @@ fn build_permission_status_object<'s>(
let status = PermissionStatusObjectDeclaration::new(name.to_owned(), state.to_owned())
.bind(scope)
.expect("PermissionStatus declaration should bind");
- mark_simple_event_target_slot(scope, status, "__moliPermissionStatusListeners");
+ initialize_simple_event_target(scope, status);
status
}