Skip to content

export reopen last tab of current window as keyboard shortcut - #412

Closed
calestyo wants to merge 1 commit into
mozilla-firefox:mainfrom
calestyo:export-reopen-last-tab-of-current-window-as-keyboard-shortcut
Closed

calestyo wants to merge 1 commit into
mozilla-firefox:mainfrom
calestyo:export-reopen-last-tab-of-current-window-as-keyboard-shortcut

Conversation

@calestyo

@calestyo calestyo commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Hey.

Recently I often saw Mozilla ads on Facebook on how good FF was and how much the needs of users are now taken care of. 😉️

Well, one of the IMO biggest showstoppers every introduced was breaking the long standing re-open closed tab behaviour with bug #1833416 for IMO no good reason.

I saw considerable number of blog posts and the likes dealing with that question, and because of the above ads and because Mozilla actually implementing bug #1844959, which really added quite some usability effort, I figured, maybe you'd accept a patch which at least allows people to get back the old behaviour (while keeping the current one as default[0]).

I applied my patch to the Debian unstable Firefox package (version 158.0.1), built it and it seems to work[1] as it should.

I also looked through https://firefox-source-docs.mozilla.org/ and in particular How to submit a patch, but TBH, was a bit overwhelmed by the length of it (and when I access https://phabricator.services.mozilla.com/ I get an error).

So I'm trying now via a PR... and would be most thankful if someone could help me getting this reviewed and merged. 🤗️

Best wishes,
Chris.

[0] I still think the current one is plain useless for most people, so if you wanna change defaults, I wouldn't complain. 😇️
[1] There is one issue, but I'm pretty confident it’s just another bug,... will report that after this PR and then reference it here.


Lando: link

⚠️ This pull request has 3 warnings.
🚫 This pull request has 2 blockers.

…ble keyboard shortcut

Firefox 116.0 changed the long standing behaviour of how closed tabs were re-
opened using (per default Ctrl-Shift-T) from re-opening the last closed tab of
the current window, to re-opening the last closed tab of all windows.
See [0].

This needlessly broke the work flow for many people sorting their tabs in
multiple windows, where re-opening the last tab in an unrelated window typically
makes no sense, and also prevented easy re-opening of such tabs, because only
the last overall closed tab could be re-opened.

A considerable number of blog posts, stack overflow questions and the likes
dealing with whether and how the older behaviour can be reverted.

This commit exports the previous behaviour as a configurable keyboard shortcut
via `about:keyboard`, leaving the post-116.0 behaviour, albeit questionable, as
default while allow people to easily revert.

AI assistance was used, mostly for even finding the relevant code sections.

[0] Commit a0b6ef9 (“Bug 1833416 - modify
    undoClosedTab keyboard shortcut
    r=mconley,sfoster,sessionstore-reviewers,dao”)

Signed-off-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name>
Fixes: https://bugzilla.mozilla.org/show_bug.cgi?id=2025220
Assisted-by: Claude Sonnet 5.5 Medium
@firefoxci-taskcluster

Copy link
Copy Markdown
No Taskcluster jobs started for this pull request

The allowPullRequests configuration for this repository (in .taskcluster.yml on the default branch) does not allow starting tasks for this pull request.

@github-actions

Copy link
Copy Markdown
Contributor

(Automated Close) Please do not file pull requests here, see https://firefox-source-docs.mozilla.org/contributing/how_to_submit_a_patch.html

@github-actions github-actions Bot closed this Oct 25, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 25, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant