Make popup_visible callable from JS and support hiding
Force popup close when new foreground tab is opened
Merge branch 'ie-popup-close' into makern