Merge pull request #9819 from benfrancis/829400

Bug 829400 - Browser tabs close buttons are misplaced if the user touches the tab. r=daleharvey(cherry picked from commit 9374d2904a57a19b58ed67e0fc92ee80cb45659b)