[GTK] Showing the context menu in the Web Inspector can crash the browser
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 6 Jul 2012 06:27:30 +0000 (06:27 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 6 Jul 2012 06:27:30 +0000 (06:27 +0000)
commit0b4fe21af586cc32fcee0976e8f9a15ddd11ca8c
tree7ddbfd73296026a4773100c85d0df4f6afd23118
parent7f135e52ae4b01e9837189fb123681e210d9c171
[GTK] Showing the context menu in the Web Inspector can crash the browser
https://bugs.webkit.org/show_bug.cgi?id=88800

Patch by Arnaud Renevier <arno@renevier.net> on 2012-07-05
Reviewed by Carlos Garcia Campos.

Remove ContextMenuItem from its parent before appending it again to a
new parent

No new tests, behavior is unchanged.

* platform/gtk/ContextMenuGtk.cpp:
(WebCore::ContextMenu::appendItem):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@121945 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/platform/gtk/ContextMenuGtk.cpp