Bug 67721

Summary: Images loaded via content:url(foo) on an <img> element sometimes don't appear
Product: WebKit Reporter: Adam Roben (:aroben) <aroben>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: ap, bdakin, dbates, hyatt, jkjiang, koivisto, mitz, simon.fraser
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
URL: 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

Adam Roben (:aroben)
Reported 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!
Attachments
Adam Roben (:aroben)
Comment 1 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:] ()
Daniel Bates
Comment 2 2011-09-22 18:41:48 PDT
*** This bug has been marked as a duplicate of bug 42840 ***
Note You need to log in before you can comment on or make changes to this bug.