Bug 834696 - Implementing new tab transitions and avoiding disturbing blank flash when disposing settings

There is a big indentation change so please add ?w=1 to the URL to ignore whitespaces when reviewing the PR.