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

Issue 2839633003: Consider empty url case when loading image (Closed)

Created:
3 years, 7 months ago by Sunghoon Kim
Modified:
3 years, 6 months ago
CC:
chromium-reviews, blink-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Consider empty url case when loading image If using loadData() in Android WebView or inspector manually, request url for image whose url is specified in relative url becomes empty. Currently, it checks only that requested url is null. Additionally, It should check it is empty. Also in empty case, it should show broken image and alt text. BUG=714818 Review-Url: https://codereview.chromium.org/2839633003 Cr-Commit-Position: refs/heads/master@{#474167} Committed: https://chromium.googlesource.com/chromium/src/+/691a0f3c2d30008438fc155c91d99fde3f57d10a

Patch Set 1 #

Patch Set 2 : added unit test #

Total comments: 1

Patch Set 3 : rebased #

Total comments: 2

Patch Set 4 : Consider empty url case when loading image #

Total comments: 2

Patch Set 5 : Consider empty url case when loading image #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -1 line) Patch
M third_party/WebKit/Source/core/loader/ImageLoader.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameTest.cpp View 1 2 3 4 1 chunk +29 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (7 generated)
Sunghoon Kim
Could you please to review this CL? I cannot write TC because if there is ...
3 years, 7 months ago (2017-04-25 23:23:06 UTC) #2
Nate Chapin
On 2017/04/25 23:23:06, Sunghoon Kim wrote: > Could you please to review this CL? > ...
3 years, 7 months ago (2017-04-25 23:30:36 UTC) #3
Sunghoon Kim
Thank you for your comment. I'll try.
3 years, 7 months ago (2017-04-25 23:32:16 UTC) #4
Sunghoon Kim
I added a unit test in WebFrameTest (AltTextOnAboutBlankPage) as you recommended. TC uses DumpLayoutTreeAsText() and ...
3 years, 7 months ago (2017-04-26 05:58:46 UTC) #5
Nate Chapin
Sorry for the delay! https://codereview.chromium.org/2839633003/diff/20001/third_party/WebKit/Source/web/tests/WebFrameTest.cpp File third_party/WebKit/Source/web/tests/WebFrameTest.cpp (right): https://codereview.chromium.org/2839633003/diff/20001/third_party/WebKit/Source/web/tests/WebFrameTest.cpp#newcode12021 third_party/WebKit/Source/web/tests/WebFrameTest.cpp:12021: std::string text = WebFrameContentDumper::DumpLayoutTreeAsText( String ...
3 years, 7 months ago (2017-05-02 22:58:03 UTC) #6
Sunghoon Kim
Thank you for your comment. I tried to get the inner text, but i got ...
3 years, 7 months ago (2017-05-08 02:19:50 UTC) #7
Sunghoon Kim
Ping! PTAL
3 years, 7 months ago (2017-05-16 07:29:06 UTC) #8
dmazzoni
https://codereview.chromium.org/2839633003/diff/40001/third_party/WebKit/Source/web/tests/WebFrameTest.cpp File third_party/WebKit/Source/web/tests/WebFrameTest.cpp (right): https://codereview.chromium.org/2839633003/diff/40001/third_party/WebKit/Source/web/tests/WebFrameTest.cpp#newcode12069 third_party/WebKit/Source/web/tests/WebFrameTest.cpp:12069: std::string text = WebFrameContentDumper::DumpLayoutTreeAsText( I think this is not ...
3 years, 7 months ago (2017-05-16 21:08:06 UTC) #10
dmazzoni
https://codereview.chromium.org/2839633003/diff/40001/third_party/WebKit/Source/web/tests/WebFrameTest.cpp File third_party/WebKit/Source/web/tests/WebFrameTest.cpp (right): https://codereview.chromium.org/2839633003/diff/40001/third_party/WebKit/Source/web/tests/WebFrameTest.cpp#newcode12069 third_party/WebKit/Source/web/tests/WebFrameTest.cpp:12069: std::string text = WebFrameContentDumper::DumpLayoutTreeAsText( Maybe I'm wrong - if ...
3 years, 7 months ago (2017-05-16 21:10:43 UTC) #11
Sunghoon Kim
I did change on test code which checks LayoutText and it has alt text. PTAL. ...
3 years, 7 months ago (2017-05-17 05:05:40 UTC) #12
Nate Chapin
Almost there! Just one last test optimization... https://codereview.chromium.org/2839633003/diff/60001/third_party/WebKit/Source/web/tests/WebFrameTest.cpp File third_party/WebKit/Source/web/tests/WebFrameTest.cpp (right): https://codereview.chromium.org/2839633003/diff/60001/third_party/WebKit/Source/web/tests/WebFrameTest.cpp#newcode12163 third_party/WebKit/Source/web/tests/WebFrameTest.cpp:12163: "<img src='foo' ...
3 years, 7 months ago (2017-05-17 17:53:50 UTC) #13
Sunghoon Kim
Thanks for your comment. I modified test code using getElementById(), but could not remove the ...
3 years, 7 months ago (2017-05-18 00:08:19 UTC) #14
Nate Chapin
ok, I'll live with that. At least we're walking only a small subset of the ...
3 years, 7 months ago (2017-05-23 23:37:54 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2839633003/80001
3 years, 7 months ago (2017-05-23 23:43:55 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/434735)
3 years, 6 months ago (2017-05-24 00:35:17 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2839633003/80001
3 years, 6 months ago (2017-05-24 01:18:20 UTC) #21
commit-bot: I haz the power
3 years, 6 months ago (2017-05-24 05:00:02 UTC) #24
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/691a0f3c2d30008438fc155c91d9...

Powered by Google App Engine
This is Rietveld 408576698