Save manifest.json
, content.js
, and iframe.html
into a new directory.
In chrome://extensions
, enable Developer Mode, drag your new directory in until you see Drop to Install, and then drop.
In about:preferences
, be sure Open New Windows in a New Tab Instead is checked.
In a console window, use web-ext thusly:
web-ext run --firefox-profile=default
- Iframe renders, top right, with a link.
- Click the link.
- URL specified in link (currently Mozilla, but could be anything) opens in new tab or window.
- Iframe renders, top right, with a link.
- Click the link.
- A blank page opens in new tab.
- No error messages or other feedback appear anywhere.
- In
about:preferences
, uncheck Open New Windows in a New Tab Instead and try again. - The correct page appears in a new window