Now u see the notification from facebook while facebook site isn't open. HOW?
Facebook uses the Push Notifications API: https://www.w3.org/TR/push-api/
More information: