RESOLVED FIXED 142677
Stop image from displaying when src attribute is removed or emptied
https://bugs.webkit.org/show_bug.cgi?id=142677
Summary Stop image from displaying when src attribute is removed or emptied
Yoav Weiss
Reported 2015-03-13 13:06:59 PDT
Stop image from displaying when src attribute is removed or emptied
Attachments
Patch (4.95 KB, patch)
2015-03-13 13:12 PDT, Yoav Weiss
no flags
Patch (7.57 KB, patch)
2015-03-13 13:18 PDT, Yoav Weiss
no flags
Patch (7.07 KB, patch)
2015-03-13 13:42 PDT, Yoav Weiss
no flags
Archive of layout-test-results from ews105 for mac-mavericks-wk2 (625.68 KB, application/zip)
2015-03-13 14:06 PDT, Build Bot
no flags
Archive of layout-test-results from ews100 for mac-mavericks (591.13 KB, application/zip)
2015-03-13 14:30 PDT, Build Bot
no flags
Patch (8.60 KB, patch)
2015-03-24 01:10 PDT, Yoav Weiss
no flags
Yoav Weiss
Comment 1 2015-03-13 13:12:26 PDT
Yoav Weiss
Comment 2 2015-03-13 13:18:08 PDT
Chris Dumez
Comment 3 2015-03-13 13:35:25 PDT
Comment on attachment 248602 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=248602&action=review r=me % nits. > Source/WebCore/loader/ImageLoader.cpp:174 > + if (!attr.isNull() && attr == m_failedLoadURL) I would have a slight preference for if (!m_failedLoadURL.isEmpty() && m_failedLoadURL == attr), with a comment saying something like "Do not to reload an URL we already failed to load". > LayoutTests/fast/dom/HTMLImageElement/image-empty-src-expected.html:3 > +<div id=result>75</div> I don't think we need this, do we? > LayoutTests/fast/dom/HTMLImageElement/image-empty-src.html:9 > + result.innerHTML = img.width; I don't think we need this, do we? > LayoutTests/fast/dom/HTMLImageElement/image-empty-srcset-expected.html:3 > +<div id=result>75</div> I don't think we need this, do we? > LayoutTests/fast/dom/HTMLImageElement/image-empty-srcset.html:9 > + result.innerHTML = img.width; I don't think we need this, do we? > LayoutTests/fast/dom/HTMLImageElement/image-remove-src.html:9 > + result.innerHTML = img.width; I don't think we need this, do we? > LayoutTests/fast/dom/HTMLImageElement/image-remove-srcset-expected.html:3 > +<div id=result>75</div> I don't think we need this, do we? > LayoutTests/fast/dom/HTMLImageElement/image-remove-srcset.html:9 > + result.innerHTML = img.width; I don't think we need this, do we?
Yoav Weiss
Comment 4 2015-03-13 13:42:27 PDT
Chris Dumez
Comment 5 2015-03-13 13:46:37 PDT
Hmm, these tests may be failing on EWS: canvas/philip/tests/2d.drawImage.image.incomplete.omitted.html [ Failure ] canvas/philip/tests/2d.pattern.image.incomplete.omitted.html [ Failure ] PTAL.
Build Bot
Comment 6 2015-03-13 14:05:58 PDT
Comment on attachment 248605 [details] Patch Attachment 248605 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.appspot.com/results/6063795008962560 New failing tests: canvas/philip/tests/2d.pattern.image.incomplete.omitted.html canvas/philip/tests/2d.drawImage.image.incomplete.omitted.html
Build Bot
Comment 7 2015-03-13 14:06:06 PDT
Created attachment 248607 [details] Archive of layout-test-results from ews105 for mac-mavericks-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews105 Port: mac-mavericks-wk2 Platform: Mac OS X 10.9.5
Chris Dumez
Comment 8 2015-03-13 14:19:47 PDT
(In reply to comment #5) > Hmm, these tests may be failing on EWS: > canvas/philip/tests/2d.drawImage.image.incomplete.omitted.html [ Failure ] > canvas/philip/tests/2d.pattern.image.incomplete.omitted.html [ Failure ] > > PTAL. According to https://www.w3.org/Bugs/Public/show_bug.cgi?id=13768: 2d.drawImage.image.incomplete.empty.html 2d.drawImage.image.incomplete.omitted.html 2d.drawImage.incomplete.html have been replaced with 2d.drawImage.incomplete.emptysrc.html 2d.drawImage.incomplete.immediate.html 2d.drawImage.incomplete.nosrc.html 2d.drawImage.incomplete.reload.html 2d.drawImage.incomplete.removedsrc.html and 2d.pattern.image.incomplete.empty.html 2d.pattern.image.incomplete.html 2d.pattern.image.incomplete.omitted.html with 2d.pattern.image.broken.html 2d.pattern.image.incomplete.emptysrc.html 2d.pattern.image.incomplete.immediate.html 2d.pattern.image.incomplete.nosrc.html 2d.pattern.image.incomplete.reload.html 2d.pattern.image.incomplete.removedsrc.html
Chris Dumez
Comment 9 2015-03-13 14:25:20 PDT
(In reply to comment #8) > (In reply to comment #5) > > Hmm, these tests may be failing on EWS: > > canvas/philip/tests/2d.drawImage.image.incomplete.omitted.html [ Failure ] > > canvas/philip/tests/2d.pattern.image.incomplete.omitted.html [ Failure ] > > > > PTAL. > > According to https://www.w3.org/Bugs/Public/show_bug.cgi?id=13768: > 2d.drawImage.image.incomplete.empty.html > 2d.drawImage.image.incomplete.omitted.html > 2d.drawImage.incomplete.html > > have been replaced with > > 2d.drawImage.incomplete.emptysrc.html > 2d.drawImage.incomplete.immediate.html > 2d.drawImage.incomplete.nosrc.html > 2d.drawImage.incomplete.reload.html > 2d.drawImage.incomplete.removedsrc.html > > and > > 2d.pattern.image.incomplete.empty.html > 2d.pattern.image.incomplete.html > 2d.pattern.image.incomplete.omitted.html > > with > > 2d.pattern.image.broken.html > 2d.pattern.image.incomplete.emptysrc.html > 2d.pattern.image.incomplete.immediate.html > 2d.pattern.image.incomplete.nosrc.html > 2d.pattern.image.incomplete.reload.html > 2d.pattern.image.incomplete.removedsrc.html We may want to import the new ones from https://github.com/w3c/web-platform-tests/tree/master/2dcontext/fill-and-stroke-styles and remove the ones that were dropped.
Build Bot
Comment 10 2015-03-13 14:30:41 PDT
Comment on attachment 248605 [details] Patch Attachment 248605 [details] did not pass mac-ews (mac): Output: http://webkit-queues.appspot.com/results/5297795644784640 New failing tests: canvas/philip/tests/2d.pattern.image.incomplete.omitted.html canvas/philip/tests/2d.drawImage.image.incomplete.omitted.html
Build Bot
Comment 11 2015-03-13 14:30:45 PDT
Created attachment 248608 [details] Archive of layout-test-results from ews100 for mac-mavericks The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews100 Port: mac-mavericks Platform: Mac OS X 10.9.5
Yoav Weiss
Comment 12 2015-03-24 01:10:29 PDT
WebKit Commit Bot
Comment 13 2015-03-24 10:26:13 PDT
Comment on attachment 249320 [details] Patch Clearing flags on attachment: 249320 Committed r181897: <http://trac.webkit.org/changeset/181897>
WebKit Commit Bot
Comment 14 2015-03-24 10:26:19 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.