Improved state of issue #122

Added prevention for popups from external websites, and accompanying test.