Skip to main content

Module popups

Module popups 

Source
Expand description

Who owns the pages of the browser. The browser tells everyone about every new page and every page that ends. Each pane claims the pages it shows, so a window opened by one of a pane’s pages is told to that pane (which shows it). The rule is that no page exists in the browser that no pane lists: a new page nobody claims is closed as it appears, whether or not it has an opener. The pages srv makes for itself are known because srv made them, not because they lack an opener: a pane marks that it is making a page before it asks for it, and claims the page the moment it has its id; the browser’s own first (blank) page is marked when the browser starts.

Structs§

Claims
The pages one pane has claimed, owned by the pane: they are all released when it is dropped, whether it ended through Pane::finish, by a panic or because its task was dropped before finish ran.
Making
A pane is about to ask the browser for a page. Until it says it is done (Making::done), a new page that has no opener is held as maybe-the-one-being-made instead of being closed.
Registry 🔒

Enums§

Owner 🔒
TargetEvent
What a pane is told about its windows.

Functions§

claim
This pane shows target_id: windows it opens, and its end, are told to tx.
claim_for_srv
srv made target_id for itself and no pane lists it (the browser’s first page): it is not closed as unowned.
lock 🔒
making_a_page
registry 🔒
release
route
What to do with a browser-level event: the pages to close. A pane that owns a page is told what happened to it.