Switching back to last tab on Firefox

Solution 1:

Switching back to last tab on Firefox:

  1. browse about:config
  2. find browser.ctrlTab.sortByRecentlyUsed
  3. set true

Done! :)

You can switch back to the last tab via Ctrl + Tab.

Solution 2:

I am not fully sure whether I've got the question right. Also on Windows you can use CTRL+Tab to cycle through tabs or CTRL+Shift+Tab to cycle reverse.

If you're looking for an option to select what happens when you close a tab I recommend to have a look at the Tab Mix Plus extension. In Events -> Tab closing you will find an option to define what happens when you close a tab. There you can select options like selecting the tab right or left to the closed one as well as going back to the previously active tab.

Solution 3:

This is default behavior in Firefox 64.0, but the toggle for this control is now stored under the browser.ctrlTab.recentlyUsedOrder in about:config (enter about:config in your address bar to access this control and set it to "true").

Solution 4:

In addition to @kb44's answer: you can do it via the Options panel too. Open Options panel, go to General tab the tick the "Ctrl+Tab cycles through tabs in recently used order".