foo_spider_monkey_panel
foo_spider_monkey_panel copied to clipboard
Script reloading during package manager usage and popups bugs
WshShell.Popup instances keep running after closing package manager and SMP panel, which turns into weird bugs since the panel gets reloaded after closing the later.
For ex. this popup fires as soon as the package manager is closed:
But then the script is reloaded when the SMP panel window is closed again. That behavior is totally prone to errors when using packages, since the script is loaded multiple times while the window is opened.
The problem comes when popups are present. They are spanned multiple times (since the script keeps reloading everytime you click ok). And the window doesn't close while there is a popup box asking for user input.
When you close one of the popups, since it's trying to reference a script variable no longer present (due to reloading), it crashes.
In other words, if the user keeps trying to close the SMP window before closing the popups.... it may well get 10 copies of the same popup and 10 crashes of the same panel in a row.