Bug 830674 Closing the last tab of the browser, enabling close button for all tabs


Re committing based on review comments.

Bugzilla url https://bugzilla.mozilla.org/show_bug.cgi?id=830674