Bug 1819675 - Include tabs from all windows in all views of recently-closed tabs and re-open them into the current window. r=dao,sclements,fxview-reviewers,fluent-reviewers,flod,robwu,sessionstore-reviewers,tabbrowser-reviewers
* Menu Bar History menu recently-closed tab items includes closed tabs from all currently-open windows * Toolbar/Appmenu history menu recently-closed tabs list includes closed tabs from all currently-open windows * Firefox view recently-closed tab list includes closed tabs from all currently-open windows * All recently-closed tab menu/items re-open in the current window * Re-open all tabs menu item re-opens all tabs into the current window * Ensure we filter out tabs without any useful state in firefox-view * Add a target window argument to undoCloseTab and undoCloseById * undoCloseTab will remove the tab data from the source window collection and re-open the tab into the target window * Add an options argument to SessionStore.getWindows to get all private or non-private windows * Add a getWindowForTabClosedId method on SessionStore, allowing look-up of the window associated with a closed tab * Ensure recently-closed tab lists only include tabs from non-private windows when attached (i.e. opened from) a non-private window. And vice-versa. * Update the sessionstore closed tab tests to assert on the new behavior * Update the browser.sessions.restore implementation to always find and pass the source window when restoring a closed tab * sessions.restore should always restore closed tabs to the source window as there's no implicit top or current window in the API context Differential Revision: https://phabricator.services.mozilla.com/D174501
This commit is contained in:
@@ -62,8 +62,7 @@ add_task(async function tabstrip_context() {
|
||||
});
|
||||
await shownPromise;
|
||||
|
||||
let closedTabsAvailable =
|
||||
SessionStore.getClosedTabCountForWindow(window) == 0;
|
||||
let closedTabsAvailable = SessionStore.getClosedTabCount() == 0;
|
||||
info("Closed tabs: " + closedTabsAvailable);
|
||||
let expectedEntries = [
|
||||
["#toolbar-context-openANewTab", true],
|
||||
|
||||
Reference in New Issue
Block a user