Bug 901852 - [sms][mms] don't run the time header scheduler if the page is hidden

- call TimeHeaderScheduler at right time
- add related tests
Merge pull request #12736 from EragonJ/bug-901852

Bug 901852 - [sms][mms] don't run the time header scheduler if the page ...