In Safari if you just opened a new tab (for example to view a picture from Reddit) and then hit the back button it would close the new tab and show the previously viewed tab. Example: https://gyazo.com/7c76267eddbb9af9c4ac8997d2d8ea0b
In Firefox the back button does nothing if there is nothing to go back to. I really wish this function was in Firefox.