Chromium Code Reviews
DescriptionFix crash in ui::ClipboardMac::ReadAvailableTypes.
+[NSPasteboard generalPasteboard] has always been able to return nil if the
common pasteboard storage area is full. In macOS 10.12, +[NSImage
canInitWithPasteboard:] will segfault if passed a nil pasteboard. This CL adds
the appropriate conditionals.
BUG=630543
Committed: https://crrev.com/a1bf19009e91a8356d3371c457f87abc66a11c2d
Cr-Commit-Position: refs/heads/master@{#411081}
Patch Set 1 #
Total comments: 2
Patch Set 2 : Comments from dcheng. #Messages
Total messages: 15 (8 generated)
|