Bug 839885 - Update the selected tab style before calling setSelection. r=lucasr