-
commit-queue@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=96313 Patch by Kevin Ellis <kevers@chromium.org> on 2012-09-11 Reviewed by Antonio Gomes. Source/WebCore: Fix to ensure that a long-press on a shadow-DOM element does not trigger a crash in TouchAdjustment::providesContextMenuItems. Prior to the patch, a null-pointer exception was trigger because of a null renderer in the check. Test: touchadjustment/context-menu-shadow-node.html * page/TouchAdjustment.cpp: (WebCore::TouchAdjustment::providesContextMenuItems): LayoutTests: Add test to ensure that a long-press on a shadow DOM element does not trigger a crash when determining if an element provides a context menu. * touchadjustment/context-menu-shadow-node-expected.txt: Added. * touchadjustment/context-menu-shadow-node.html: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128222 268f45cc-cd09-0410-ab3c-d52691b4dbfc
7d426d8e