Bug 67721 - Images loaded via content:url(foo) on an <img> element sometimes don't appear
Summary: Images loaded via content:url(foo) on an <img> element sometimes don't appear
Status: RESOLVED DUPLICATE of bug 42840
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL: data:text/html,%3Cimg%20src=%22http:/...
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-07 11:42 PDT by Adam Roben (:aroben)
Modified: 2011-09-22 18:41 PDT (History)
8 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Roben (:aroben) 2011-09-07 11:42:24 PDT
To reproduce:

1. Go to data:text/html,%3Cimg%20src=%22http://www.webkit.org/images/green-bullet.png%22%20style=%22content:url(http://www.webkit.org/images/pink-bullet.png)%22%3E

You will often see nothing at all. If you reload the page enough times you might get lucky enough to see a pink dot.

You should see a pink dot every time!
Comment 1 Adam Roben (:aroben) 2011-09-07 11:42:46 PDT
In a Debug build I see this when reloading:

    ASSERT(m_clients.contains(client));

#0	0x0000000102adba8c in WebCore::CachedResource::removeClient(WebCore::CachedResourceClient*) at /Users/aroben/dev/WebKit/OpenSource/Source/WebCore/loader/cache/CachedResource.cpp:308
#1	0x0000000103ef8a1f in WebCore::StyleCachedImage::removeClient(WebCore::RenderObject*) ()
#2	0x0000000103c28c40 in WebCore::RenderImageResourceStyleImage::shutdown() ()
#3	0x0000000103c241ae in WebCore::RenderImage::~RenderImage() ()
#4	0x0000000103c240c5 in WebCore::RenderImage::~RenderImage() ()
#5	0x0000000103c2404d in WebCore::RenderImage::~RenderImage() ()
#6	0x0000000103c99a18 in WebCore::RenderObject::arenaDelete(WebCore::RenderArena*, void*) ()
#7	0x0000000103c9983e in WebCore::RenderObject::destroy() ()
#8	0x0000000103a72fd0 in WebCore::Node::detach() ()
#9	0x0000000102b794b4 in WebCore::ContainerNode::detach() ()
#10	0x0000000102fa68c5 in WebCore::Element::detach() ()
#11	0x0000000102b7948a in WebCore::ContainerNode::detach() ()
#12	0x0000000102fa68c5 in WebCore::Element::detach() ()
#13	0x0000000102b7948a in WebCore::ContainerNode::detach() ()
#14	0x0000000102fa68c5 in WebCore::Element::detach() ()
#15	0x0000000102b7948a in WebCore::ContainerNode::detach() ()
#16	0x0000000102db7d93 in WebCore::Document::detach() ()
#17	0x000000010306cc4d in WebCore::Frame::setView(WTF::PassRefPtr<WebCore::FrameView>) ()
#18	0x000000010307077d in WebCore::Frame::createView(WebCore::IntSize const&, WebCore::Color const&, bool, WebCore::IntSize const&, bool, WebCore::ScrollbarMode, bool, WebCore::ScrollbarMode, bool) ()
#19	0x00000001010d3e6d in WebKit::WebFrameLoaderClient::transitionToCommittedForNewPage() ()
#20	0x000000010308cda3 in WebCore::FrameLoader::transitionToCommitted(WTF::PassRefPtr<WebCore::CachedPage>) ()
#21	0x000000010308be36 in WebCore::FrameLoader::commitProvisionalLoad() ()
#22	0x0000000102dff18d in WebCore::DocumentLoader::commitIfReady() ()
#23	0x0000000102dff256 in WebCore::DocumentLoader::commitLoad(char const*, int) ()
#24	0x0000000102dff61a in WebCore::DocumentLoader::receivedData(char const*, int) ()
#25	0x00000001039e336c in WebCore::MainResourceLoader::addData(char const*, int, bool) ()
#26	0x0000000103dc26e9 in WebCore::ResourceLoader::didReceiveData(char const*, int, long long, bool) ()
#27	0x00000001039e5560 in WebCore::MainResourceLoader::didReceiveData(char const*, int, long long, bool) ()
#28	0x0000000103dc327d in WebCore::ResourceLoader::didReceiveData(WebCore::ResourceHandle*, char const*, int, int) ()
#29	0x0000000103dbef79 in -[WebCoreResourceHandleAsDelegate connection:didReceiveData:lengthReceived:] ()
Comment 2 Daniel Bates 2011-09-22 18:41:48 PDT

*** This bug has been marked as a duplicate of bug 42840 ***