https://bugs.winehq.org/show_bug.cgi?id=39135
--- Comment #5 from Alex Henrie alexhenrie24@gmail.com --- Created attachment 72715 --> https://bugs.winehq.org/attachment.cgi?id=72715 Hack to avoid the crash
The X is actually a link to the URI "javascript:window.external.Quit();". navigate_javascript_proc calls window.external.Quit and window.external.Quit calls some other function that deletes window->browser and window->browser->doc, which navigate_javascript_proc expects to still be available.
I'm attaching a hack that prevents the crash by incrementing the reference count of window->browser->doc, but I still don't know what the correct solution is.