Index: Source/web/WebViewImpl.cpp |
diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp |
index a6c28a74e72c4c6e712e2d07c185f1504890f323..0df4934130c65939421f65bb26af8d79e34c2162 100644 |
--- a/Source/web/WebViewImpl.cpp |
+++ b/Source/web/WebViewImpl.cpp |
@@ -3318,8 +3318,10 @@ void WebViewImpl::copyImageAt(const WebPoint& point) |
return; |
HitTestResult result = hitTestResultForWindowPos(point); |
+ Node* node = result.innerNonSharedNode(); |
+ ASSERT(node); |
- if (result.absoluteImageURLIncludingCanvasDataURL().isEmpty()) { |
+ if (!isHTMLCanvasElement(*node) && result.absoluteImageURL().isEmpty()) { |
// There isn't actually an image at these coordinates. Might be because |
// the window scrolled while the context menu was open or because the page |
// changed itself between when we thought there was an image here and when |