drmikecrowe / mbfcext

Media Bias Fact Check extension
https://drmikecrowe.github.io/mbfcext/
MIT License
36 stars 7 forks source link

Icon turns into default microphone when clicking on hyperlink #29

Open nerivera opened 2 years ago

nerivera commented 2 years ago

Note: this issue is unrelated to #28. This one happens on regular, non-private windows.

Summary

On some websites, when clicking on a hyperlink, the rating icon turns into the default red microphone icon. However, when clicking on the extension, the popup box shows the correct rating. This happens whether the link opens in a current tab or in a new tab. It seems to only happen for some websites some of the time, even on the same exact hyperlink. I've found that it always happens on https://www.thesun.co.uk/, sometimes happens on https://www.reuters.com/, and never happens on https://www.wikipedia.org/ unless you spam click the Wikipedia globe at the top left and stop at the right time. In all cases, the icon briefly turns into the default red microphone before turning back into the correct rating, but sometimes, it doesn't go back.

Steps to reproduce

  1. Go to a rated website, like https://www.thesun.co.uk/
  2. Note that the icon shows the initials of the site's rating
  3. Click on the extension icon
  4. Note that the popup box shows the correct information
  5. Click on a hyperlink on the page, such as the big "THE Sun" logo at the top left of The Sun's website
  6. Note that the icon now shows the default red microphone
  7. Click on the extension icon
  8. Note that the popup box shows the correct information
  9. Open or switch to a different tab
  10. Switch back to the previous tab
  11. Note that the icon now correctly shows the initials of the site's rating

Expected behavior

The icon should show the initials of the site's rating after clicking on hyperlinks.

Workarounds

Switching to a different tab and then switching back to the tab with the issue will fix the issue until another hyperlink is clicked. Reloading the page does not fix the issue.

Device info

macOS Monterey 12.2 Firefox 96.0.3 (64-bit) Media Bias/Fact Check Extension 3.3.0

I have not attempted to reproduce this issue on other browsers or operating systems