LayoutTests:
Reviewed by john <rdar://problem/4861080> GMail Editor: Crash when dropping content into certain list items * editing/pasteboard/4861080-expected.checksum: Added. * editing/pasteboard/4861080-expected.png: Added. * editing/pasteboard/4861080-expected.txt: Added. * editing/pasteboard/4861080.html: Added. WebCore: Reviewed by john <rdar://problem/4861080> GMail Editor: Crash when dropping content into certain list items A rendering bug (4907469) creates unwanted space at the top of a list item when its contents are wrapped in span. Dropping content inside that space causes a crash because positionForCoordinates fails there and the code that creates drag carets can't handle it. * page/mac/WebCoreFrameBridge.mm: (-[WebCoreFrameBridge _visiblePositionForPoint:]): Added the that's inside click handling for the case where positionForCoordinates returns null. We should also fix positionForCoordinates but that's less important: now its only side effect is that a no-op drop is performed instead of a snap back when you drop the contents of one of these list items its own unwanted space. git-svn-id: svn://svn.chromium.org/blink/trunk@18601 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Showing
Please register or sign in to comment