| Summary: | window that closes by document.onmousedown and right-clicking into that window causes crash | ||
|---|---|---|---|
| Product: | [Applications] konqueror | Reporter: | Florian Reinhard <florian.reinhard> |
| Component: | khtml | Assignee: | David Faure <faure> |
| Status: | RESOLVED FIXED | ||
| Severity: | crash | ||
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Ubuntu | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: |
html to reproduce the crash
html to reproduce the crash using a popup stacktrace from kde-crashmanager stacktrace from kde-crashmanager valgrind trace (for future reference) |
||
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. |
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.