Fix a Firefox bug when opening a new link