dvdvdmt / popup-tab-switcher

A browser extension that makes switching between tabs more convenient
85 stars 5 forks source link

Fix the problem with not opening the extension Popup on page with focused iframe and Same-origin policy restrictions #79

Closed dvdvdmt closed 3 months ago

dvdvdmt commented 3 months ago

Here we fix the problem with not opening the extension Popup when an Iframe with Same-origin policy restrictions contains a focused element. The extension was trying to get the focused element in the Iframe to restore the focus after the Popup is closed. However, the Iframe was not accessible due to the Same-origin policy restrictions which caused an error and prevented the Popup from opening.

Changes: