[webkitNotifications] abstract out the Util.pageIsVisible method