Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(697)

Unified Diff: content/common/clipboard_messages.h

Issue 934373002: Marshal the URL parameter of the clipboard bookmark format as a string. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add TODO Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/common/clipboard_messages.h
diff --git a/content/common/clipboard_messages.h b/content/common/clipboard_messages.h
index 5874de6aa2562a8143ecc4f74314ce6eb2078f7e..8e417c071f6f7be55d5e1d61b196ee1c396c1fa1 100644
--- a/content/common/clipboard_messages.h
+++ b/content/common/clipboard_messages.h
@@ -83,9 +83,13 @@ IPC_MESSAGE_CONTROL1(ClipboardHostMsg_WriteSmartPasteMarker,
IPC_MESSAGE_CONTROL2(ClipboardHostMsg_WriteCustomData,
ui::ClipboardType /* type */,
CustomDataMap /* custom data */)
+// TODO(dcheng): The |url| parameter should really be a GURL, but <canvas>'s
+// copy as image tries to set very long data: URLs on the clipboard. Using
+// GURL causes the browser to kill the renderer for sending a bad IPC (GURLs
+// bigger than 2 megabytes are considered to be bad). https://crbug.com/459822
IPC_MESSAGE_CONTROL3(ClipboardHostMsg_WriteBookmark,
ui::ClipboardType /* type */,
- GURL /* url */,
+ std::string /* url */,
base::string16 /* title */)
IPC_SYNC_MESSAGE_CONTROL3_0(ClipboardHostMsg_WriteImage,
ui::ClipboardType /* type */,
« no previous file with comments | « content/browser/renderer_host/clipboard_message_filter.cc ('k') | content/renderer/renderer_clipboard_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698