https://bugs.winehq.org/show_bug.cgi?id=57248
--- Comment #2 from Jacek Caban jacek@codeweavers.com --- Created attachment 77579 --> https://bugs.winehq.org/attachment.cgi?id=77579 possible fix
The attached patch should help. It seems Gecko continues to deliver events even after the target has been detached. While we explicitly detach this event handler, that alone doesn’t seem sufficient. This behavior warrants a closer look to ensure we’re not just masking a deeper bug, but it’s also possible that a solution like this will be necessary.