Bug 1016219 - Call to specific panel function when visibility changes r=eragon

https://bugzilla.mozilla.org/show_bug.cgi?id=1016219