Merge pull request #24524 from nullaus/bug1074043

bug 1074043 - Listen for new activities and adjust titlebar styling as e...
(cherry picked from commit 22b1698a71db620b1dd04867aba55efbfd9f23d7)