Bug 835022 - Switch to correct tab when a tab is closed. r=mfinkle

--HG--
extra : rebase_source : 9a73a8be6d9b7ce6e3779bf27a73811eb17a539a