Firefox Add-On: Browser Button Quits Working In Tab after Pop-Up Window Is Dismissed
Steps to reproduce:
- Install the Test Add-On (download, rename .xpi to .zip, unzip, and inspect first if you don't trust me).
- Note the addition of a square blue button in your browser chrome.
- Click the button and note the JavaScript alert.
- Click this link to open a pop-up window to about:blank.
- Note the about:blank pop-up. Don't close it.
- Come back to this window and click the browser button again to see the same JavaScript alert.
- Close the pop-up.
- Click the browser button again and note that the JavaScript alert does not appear.
- Reload the page, try the browser button again, and note that the alert does not appear.
- Click this link to load MDN in your active tab and try the browser button again. Note that the alert does not appear.
- Open a new browser tab (or change to an existing tab) and return to this one.
- Click the browser button again and note that the JavaScript alert appears.