Search code examples
javascriptgoogle-chrome-extension

Prevent closing Chrome extension popup after closing Javascript alert


Up until testing today, the default behaviour when closing a Javascript alert originated from a Chrome Extension popup was the alert closing but the Chrome popup staying open. Just now when testing, I found both the alert and the extension popup close when I clear the Javascript alert. What changed? Is there a way to revert to the previous behaviour?

Really inconvenient to have to re-click on the popup after interacting with the Javascript alert.


Solution

  • Looks like this was a bug that was introduced and resolved here: bugs.chromium.org/p/chromium/issues/detail?id=1201295

    Should be fixed in following MacOS Chrome versions