Skip to content

armgit / moli

Public Imported from GitHub
0

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

689 B
Raw Blame
/// Exact renderer browsing-context source of a browser-owner handoff.
///
/// Root frames are identified by the enclosing Page/Document identity carried
/// by the handoff. Child frames and lightweight popups need their own stable
/// LocalWindow/Document identity as well: neither may silently degrade to the
/// opener Page's then-current root frame after the handoff leaves the
/// renderer.
#[derive(Clone, Debug, Eq, Hash, PartialEq)]
pub enum RendererWindowDocumentSource {
    RootFrame,
    ChildFrame {
        frame_id: String,
        local_window_id: u64,
        document_id: u64,
    },
    LightweightPopup {
        popup_id: u64,
        popup_document_id: u64,
    },
}