Move the click listener to the xul window to correctly get the click event to filter for site-related clicks.