Name Description Size Coverage
manifest.toml 2128 -
session_store_test_case.py <div">Lorem</div> 25390 -
test_automatic_startup_window_features_mismatch.py Bug 2070404: Automatic session restore on startup (entry_point == "automatic_startup") restores into whatever window Firefox happens to open at startup, regardless of whether that window's chrome matches the saved session's first window. If the oldest window in the session is a popup, we should record telemetry that this was attempted. 3116 -
test_automatic_with_taskbar_tab_window_features_mismatch.py Bug 2070404: When the last regular Firefox window closes while a taskbar tab window remains open, SessionStore saves the current state so it can be restored automatically (entry_point == "automatic_with_taskbar_tab") the next time a regular window opens. Taskbar tab windows are excluded from that saved state, but popup windows are not. If the closing "last regular window" was a popup, it ends up as `windows[0]` of the saved state, and a later regular window can't be turned into a popup to match it. If the oldest window in the session is a popup, we should record telemetry that this was attempted. 3890 -
test_close_last_nonpopup_window.py Bug 597071 - When closing the last normal window while popup window(s) remain open, the session should stay alive and the normal window should be tracked as a closed window. 2153 -
test_deferred_initial_state_window_features_mismatch.py Bug 2070404: A deferred initial-state restore (entry_point == "deferred_initial_state") happens when Firefox starts up with a private or taskbar tab window first, so the automatic restore of the saved session is deferred until a regular window opens. That regular window is guaranteed to be non-private, non-taskbar-tab, and non-popup, but the saved session's `windows[0]` (the oldest surviving window from that session) could be a popup. If the oldest window in the session is a popup, we should record telemetry that this was attempted. 4373 -
test_deferred_nothing_to_restore.py Restart the browser with a session we were not asked to restore, and check whether startup took the restore path for it. 5491 -
test_log_files.py <div">ipsum</div> 6810 -
test_new_tab_on_restore.py let win = BrowserWindowTracker.getTopWindow(); return win.gBrowser.tabs.length; 13452 -
test_persist_closed_tabs_restore_manually.py Test that closed tabs persist between sessions and that any previously open tabs are added to the recently closed tab list. When a previous session is restored, an open tab is restored and removed from the closed tabs list. If additional tabs are opened (and closed) before a previous session is restored, those should be merged with the restored open and closed tabs, preserving their state. 7888 -
test_restore_aiwindow.py Services.prefs.setBoolPref("browser.smartwindow.enabled", true); 15668 -
test_restore_last_session_window_mismatch.py Bug 2065228: restoreLastSession() reuses the current top window for the first window of the saved session whenever that window isn't tied to a window ID from the last session. A window's popup-ness is fixed by the `toolbar` native chrome flag at creation time and can't be changed afterwards, so reusing a mismatched window can never actually make it look like the restored session's window. Restoring the last session with a saved window whose popup-ness doesn't match the current top window should therefore open a new window instead of reusing it, leaving the top window untouched. 19678 -
test_restore_loading_tab.py <a id='link'>click</a> <script> document.getElementById("link").addEventListener( "click", () => window.open("{}", "_blank"); ) </script> 2116 -
test_restore_manually.py Test that window attributes for each window are restored correctly (with manual session restore) in a new session. 4806 -
test_restore_manually_with_pinned_tabs.py <div">ipsum</div> 3437 -
test_restore_manually_with_tab_groups.py <div">lorem</div> 11304 -
test_restore_sidebar.py Test that the sidebar and its attributes are restored on reopening of window. 10214 -
test_restore_sidebar_automatic.py Test that the sidebar and its attributes are restored on reopening of window. 3312 -
test_restore_windows_after_close_last_tabs.py Setup for the test, enabling session restore. :param include_private: Whether to open private windows. 1916 -
test_restore_windows_after_restart_and_quit.py Setup for the test, enabling session restore. :param include_private: Whether to open private windows. 2712 -
test_restore_windows_after_windows_shutdown.py Test session restore selected by user. 2271 -
test_restore_with_encryption.py const AVAILABLE = "browser.sessionstore.encryption.available"; Services.prefs.unlockPref(AVAILABLE); Services.prefs.setBoolPref(AVAILABLE, true); Services.prefs.setBoolPref( "browser.sessionstore.encryption.enabled", true ); 2162 -
test_session_availability.py return Services.fog.initialized; 7278 -
test_session_decision.py return Services.fog.initialized; 6313 -
test_set_browser_state_window_features_mismatch.py Bug 2070404: SessionStore.setBrowserState() (entry_point == "set_browser_state") restores into the current top window, closing every other window first. That top window's chrome can't be changed, so if the state's `windows[0]` is a popup, the mismatch is recorded and only the popup's tabs get restored into the existing window. 3051 -
test_shutdown_flush_timeout.py Shutdown races the window flushes against a loose timer, so that an unresponsive content process cannot stall quitting. This covers the timer winning that race, which only happens when its callback can reach the logger. 3342 -
test_splitview_hidden.py <div">Lorem</div> 6891 -
test_splitview_restore.py <div">Lorem</div> 6320 -
test_tabgroups_restore.py <div">Lorem</div> 6240 -
test_tabnotes_canonicalurl_restore.py Test that canonicalUrl and hasTabNote are properly restored on pending tabs after browser restart with session restore enabled. Uses two tabs with restore_on_demand=True: - tabs[0]: pending tab (not selected, stays pending) - tabs[1]: selected tab (the last one opened) 6645 -
test_taskbartab_restore.py Close all regular windows except for a taskbar tab window. The session should be over at this point. Opening another regular Firefox window will open "restore previous session" in the hamburger menu. And clicking it will restore the correct session. 4174 -
test_taskbartab_sessionstate.py Close all Firefox windows with the web app being closed last, the session store state should include the last regular window that's closed, but not the web app 2898 -