Fix regression introduced into copying images using the clipboard.
The mojo work for web clipboard has introduced a regression when copying images. Originally the code was in content and was using net::EscapeForHTML to escape the URL of the image and the title. When converted to mojo and moved inside of blink this was changed to EncodeWithURLEscapeSequences which is a different encoding scheme. This change reverts to using an escaping the same as net::EscapeForHTML, however as net::EscapeForHTML uses std::string and we are working with WTF::String we have had to copy the code rather than re-use it. Bug: 806076 Change-Id: Ic51835c555c071571a837018d74a27fd455362cf Reviewed-on: https://chromium-review.googlesource.com/896762 Commit-Queue: Stuart Langley <slangley@chromium.org> Reviewed-by:Daniel Cheng <dcheng@chromium.org> Reviewed-by:
Kentaro Hara <haraken@chromium.org> Cr-Commit-Position: refs/heads/master@{#534858}
Showing
Please register or sign in to comment