Firefox opens an empty tab when clicking on a link inside iframe

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!

Might be a security restriction. @rpl, do you know?

Sounds like a bug (especially given the “moz-extension://…/www.google.com” and the “blank tab” behaviors).

I’m going to take a deeper look into it.

Hi both @jorgev and @rpl
thanks for looking into that! I have actually already reported it as a bug https://bugzilla.mozilla.org/show_bug.cgi?id=1385732, but am not 100% sure whether that’s the case.