Skip to main content

refresh_for_replay

Function refresh_for_replay 

Source
pub(crate) fn refresh_for_replay(
    meta: &mut Value,
    fresh: &mut HashMap<String, String>,
    available: usize,
    profiles: Option<&HashSet<String>>,
) -> bool
Expand description

For a layout being replayed: each Incognito identity becomes a fresh one, so the replay doesn’t share a jar with a tab still open. Tabs that shared a jar keep sharing one. fresh maps old to new across the replay; at most available fresh jars are made. Returns false for a tab that would need one more: it is left out of the replay, not opened as a blank pane or in the shared jar.