Bug 1016219 - Call to specific panel function when visibility changes

https://bugzilla.mozilla.org/show_bug.cgi?id=1016219
I think that would be better to keep original `document.hidden` and restore it back when `suiteTeardown`