Version: (using KDE KDE 3.5.7) Installed from: Ubuntu Packages OS: Linux <script type="text/javascript"> function closeMe(){ window.close(); } document.onmousedown = closeMe; </script> These few lines of javascript make konqueror crash when trying to get a contextmenue in that window.
Created attachment 21595 [details] html to reproduce the crash
Created attachment 21596 [details] html to reproduce the crash using a popup
Created attachment 21597 [details] stacktrace from kde-crashmanager
Created attachment 21598 [details] stacktrace from kde-crashmanager
*** Bug 132265 has been marked as a duplicate of this bug. ***
I see, mainwindow gets deleted while popup is shown; khtml has crash-prevention for this but not konqueror.
Created attachment 21750 [details] valgrind trace (for future reference)
SVN commit 721013 by dfaure: Fix crash when the window is deleted from onmousedown, which takes effect inside the RMB popupmenu event loop. BUG: 149736 M +15 -10 konq_mainwindow.cc WebSVN link: http://websvn.kde.org/?view=rev&revision=721013
Bug reappared in KDE-4.0.1 due to nested event loop in KDesktopFileActions. Fixed, and added unit test (KonqHtmlTest::rightClickClose) so that this bug doesn't re-appear again.