Alert, then popup is closed

My popup on toolbar is closed when show a alert.
I guess it was not closed before.

Something was changed about this?

I got not to be able to change chrome.strage after showing alert.

Were you using window.alert in a popup? If that’s the case, I wouldn’t be surprised if that can break the popup focus. It’s best not to use window.alert and friends.

If the popup closes, the scripts inside the popup no longer run.

Thank you for your answer.
I give up to show a alert and take other way.