I’m currently trying to port a browser extension from Chrome to Firefox that adds an iframe on top of some websites. Inside of the iframe, there are some links that should open up in a new tab. However, in Firefox, they just open an empty new tab. What’s particularly strange is that CMD+click works correctly and open in new tab/window from left mouse click works correctly as well!
I’m using angular2 inside the iframe, but that does not seem to be the root of the issue. I suspect it’s some protection system in Firefox preventing opening links to external websites, but I am not getting any error messages and the link displays itself correctly when hovering over it in the left bottom corner of the browser.
<a href="www.google.com" target="_blank">A1</a>
- opens new tab correctly, but with moz-extension://…/www.google.com
<a href="https://www.google.com" target="_blank">A1</a>
- after a single mouse click opens a new blank tab in Firefox
I’ve created a very small extension that adds an iframe to any page with a link to google, you can see that this link opens an empty tab in Firefox, but works correctly in chrome. Link to extension
I would really appreciate any help. Thank you!