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

Issue 518043003: Add saveImageFromDataURL() and use it in saveImageAt(). (Closed)

Created:
6 years, 3 months ago by zino
Modified:
6 years, 3 months ago
CC:
abarth-chromium, blink-reviews, Nate Chapin
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Add saveImageFromDataURL() and use it in saveImageAt(). The new method is invoked as a response of saveImageAt() and takes over a data url string as a parameter. Then we use the string of data url instead of real url to avoid size-limits for url on IPC subsystems. Ultimately, this new code path imposes a higher limit for data url used for saving canvases and large images to disk. This change is used by the following chromium side CL. https://crrev.com/518693002/ BUG=69227, 401888 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=182100

Patch Set 1 : #

Total comments: 3

Patch Set 2 : add test #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -7 lines) Patch
M Source/web/WebViewImpl.cpp View 1 1 chunk +7 lines, -7 lines 5 comments Download
M Source/web/tests/WebViewTest.cpp View 1 2 chunks +34 lines, -0 lines 0 comments Download
A Source/web/tests/data/image-with-data-url.html View 1 1 chunk +24 lines, -0 lines 0 comments Download
M public/web/WebViewClient.h View 1 chunk +4 lines, -0 lines 1 comment Download

Messages

Total messages: 25 (4 generated)
zino
Please take a look. This CL is related to https://crrev.com/518693002/. Thank you.
6 years, 3 months ago (2014-09-02 07:09:24 UTC) #2
Justin Novosad
https://codereview.chromium.org/518043003/diff/20001/Source/web/WebViewImpl.cpp File Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/518043003/diff/20001/Source/web/WebViewImpl.cpp#newcode3306 Source/web/WebViewImpl.cpp:3306: m_client->saveImageFromDataURL(toElement(*node).imageSourceURL()); The name "saveImageFromDataURL" is misleading. The imageSourceURL will ...
6 years, 3 months ago (2014-09-03 16:55:29 UTC) #3
zino
On 2014/09/03 16:55:29, junov wrote: > https://codereview.chromium.org/518043003/diff/20001/Source/web/WebViewImpl.cpp > File Source/web/WebViewImpl.cpp (right): > > https://codereview.chromium.org/518043003/diff/20001/Source/web/WebViewImpl.cpp#newcode3306 > ...
6 years, 3 months ago (2014-09-03 17:56:08 UTC) #4
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/518043003/diff/20001/Source/web/WebViewImpl.cpp File Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/518043003/diff/20001/Source/web/WebViewImpl.cpp#newcode3306 Source/web/WebViewImpl.cpp:3306: m_client->saveImageFromDataURL(toElement(*node).imageSourceURL()); On 2014/09/03 16:55:29, junov wrote: > The name ...
6 years, 3 months ago (2014-09-04 00:23:10 UTC) #5
zino
On 2014/09/04 00:23:10, Ken Russell wrote: > After considering the various alternatives I think this ...
6 years, 3 months ago (2014-09-04 01:50:01 UTC) #6
Ken Russell (switch to Gerrit)
On 2014/09/04 01:50:01, zino wrote: > On 2014/09/04 00:23:10, Ken Russell wrote: > > After ...
6 years, 3 months ago (2014-09-04 02:25:48 UTC) #7
zino
Dear @kbr, I've just uploaded a new patch set (which includes unit test). and please ...
6 years, 3 months ago (2014-09-05 03:53:29 UTC) #8
Justin Novosad
https://codereview.chromium.org/518043003/diff/40001/Source/web/WebViewImpl.cpp File Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/518043003/diff/40001/Source/web/WebViewImpl.cpp#newcode3294 Source/web/WebViewImpl.cpp:3294: m_page->deprecatedLocalMainFrame()->editor().copyImage(result); Don't we have the same bug here too? ...
6 years, 3 months ago (2014-09-05 17:22:47 UTC) #9
zino
Thank you for review. https://codereview.chromium.org/518043003/diff/40001/Source/web/WebViewImpl.cpp File Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/518043003/diff/40001/Source/web/WebViewImpl.cpp#newcode3294 Source/web/WebViewImpl.cpp:3294: m_page->deprecatedLocalMainFrame()->editor().copyImage(result); On 2014/09/05 17:22:46, junov ...
6 years, 3 months ago (2014-09-05 18:00:26 UTC) #10
Justin Novosad
Okay, I am satisfied. But I will let kbr have the last word.
6 years, 3 months ago (2014-09-05 18:39:03 UTC) #11
Justin Novosad
Review ping. kbr?
6 years, 3 months ago (2014-09-10 18:09:19 UTC) #12
Ken Russell (switch to Gerrit)
I'm sorry for the delay re-reviewing this. Thank you for explaining how both this and ...
6 years, 3 months ago (2014-09-11 00:43:07 UTC) #13
zino
Dear @jochen, Could you please review this? This CL needs your approval. (Especially, public/web/*)
6 years, 3 months ago (2014-09-13 14:46:29 UTC) #15
zino
On 2014/09/13 14:46:29, zino wrote: > Dear @jochen, > > Could you please review this? ...
6 years, 3 months ago (2014-09-16 14:56:42 UTC) #16
Ken Russell (switch to Gerrit)
abarth or dglazkov or jamesr or tkent: public/ OWNERS review please.
6 years, 3 months ago (2014-09-16 15:08:13 UTC) #18
jochen (gone - plz use gerrit)
https://codereview.chromium.org/518043003/diff/40001/public/web/WebViewClient.h File public/web/WebViewClient.h (right): https://codereview.chromium.org/518043003/diff/40001/public/web/WebViewClient.h#newcode126 public/web/WebViewClient.h:126: virtual void saveImageFromDataURL(const WebString&) { } why not pass ...
6 years, 3 months ago (2014-09-16 15:53:32 UTC) #19
Ken Russell (switch to Gerrit)
On 2014/09/16 15:53:32, jochen wrote: > https://codereview.chromium.org/518043003/diff/40001/public/web/WebViewClient.h > File public/web/WebViewClient.h (right): > > https://codereview.chromium.org/518043003/diff/40001/public/web/WebViewClient.h#newcode126 > ...
6 years, 3 months ago (2014-09-16 15:58:08 UTC) #20
jochen (gone - plz use gerrit)
ok, can you please state this in the CL description lgtm
6 years, 3 months ago (2014-09-16 16:11:16 UTC) #21
zino
On 2014/09/16 16:11:16, jochen wrote: > ok, can you please state this in the CL ...
6 years, 3 months ago (2014-09-16 17:15:11 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/518043003/40001
6 years, 3 months ago (2014-09-16 17:20:02 UTC) #24
commit-bot: I haz the power
6 years, 3 months ago (2014-09-16 21:25:05 UTC) #25
Message was sent while issue was closed.
Committed patchset #2 (id:40001) as 182100

Powered by Google App Engine
This is Rietveld 408576698