Skip to main content

Module web_api

Module web_api 

Source

Functions§

install_atob_btoa
install_crypto_subtle
Define the full WebCrypto method set on globalThis.crypto.subtle.
install_event_source
install_local_storage
Install localStorage on the global (CLI surface; browser pages keep servo’s own implementation, so installation only fills a missing slot).
install_performance
install_queue_microtask
install_web_encodings
install_websocket_constructor
ws_has_pending
True while any WebSocket on this thread is connecting or open. Wired into the event-loop liveness checks (timers::drain_and_check return value) so the eval loop keeps draining while WS traffic is in flight.
ws_pump_all
Pump all WebSockets on this thread. Called from timers::drain_and_check, timers::drain_one_pass, and the servo node-realm evaluate entry.