revert cf9c9762f58a9f0ebfe25d6babd0c4e2e641d21b
Notify the server side about visibility changes only if the visibility was changed on the client side. This prevents an infinite open/close loop for short lived popups when using push.