<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>67721</bug_id>
          
          <creation_ts>2011-09-07 11:42:24 -0700</creation_ts>
          <short_desc>Images loaded via content:url(foo) on an &lt;img&gt; element sometimes don&apos;t appear</short_desc>
          <delta_ts>2011-09-22 18:41:48 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Layout and Rendering</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>42840</dup_id>
          
          <bug_file_loc>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</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Adam Roben (:aroben)">aroben</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>bdakin</cc>
    
    <cc>dbates</cc>
    
    <cc>hyatt</cc>
    
    <cc>jkjiang</cc>
    
    <cc>koivisto</cc>
    
    <cc>mitz</cc>
    
    <cc>simon.fraser</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>463510</commentid>
    <comment_count>0</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2011-09-07 11:42:24 -0700</bug_when>
    <thetext>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!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>463512</commentid>
    <comment_count>1</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2011-09-07 11:42:46 -0700</bug_when>
    <thetext>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&lt;WebCore::FrameView&gt;) ()
#18	0x000000010307077d in WebCore::Frame::createView(WebCore::IntSize const&amp;, WebCore::Color const&amp;, bool, WebCore::IntSize const&amp;, bool, WebCore::ScrollbarMode, bool, WebCore::ScrollbarMode, bool) ()
#19	0x00000001010d3e6d in WebKit::WebFrameLoaderClient::transitionToCommittedForNewPage() ()
#20	0x000000010308cda3 in WebCore::FrameLoader::transitionToCommitted(WTF::PassRefPtr&lt;WebCore::CachedPage&gt;) ()
#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:] ()</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>472005</commentid>
    <comment_count>2</comment_count>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2011-09-22 18:41:48 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 42840 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>