<?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>12093</bug_id>
          
          <creation_ts>2007-01-03 03:52:21 -0800</creation_ts>
          <short_desc>Assertion failure in +[WebDataProtocol _webIsDataProtocolURL:] when running layout tests</short_desc>
          <delta_ts>2007-01-03 17:23:31 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>History</component>
          <version>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>LayoutTestFailure, Regression</keywords>
          <priority>P1</priority>
          <bug_severity>Critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexey Proskuryakov">ap</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>beidson</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>37331</commentid>
    <comment_count>0</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2007-01-03 03:52:21 -0800</bug_when>
    <thetext>run-webkit-tests fast/images/svg-as-background.html

Testing 1 test cases.
fast/images .ASSERTION FAILED: URL
(/Users/ap/WebKit/WebCore/loader/mac/WebDataProtocol.mm:223 +[WebDataProtocol _webIsDataProtocolURL:])
Segmentation fault

Thread 0 Crashed:
0   com.apple.WebCore        	0x01482b84 +[WebDataProtocol _webIsDataProtocolURL:] + 92
1   com.apple.WebCore        	0x01483b14 WebCore::DocumentLoader::urlForHistory() const + 132 (DocumentLoaderMac.mm:533)
2   com.apple.WebCore        	0x014b94e8 WebCore::FrameLoader::updateHistoryForStandardLoad() + 208 (FrameLoader.cpp:2978)
3   com.apple.WebCore        	0x014bcdf0 WebCore::FrameLoader::transitionToCommitted(WTF::PassRefPtr&lt;WebCore::PageCache&gt;) + 848 (FrameLoader.cpp:2024)
4   com.apple.WebCore        	0x014bd420 WebCore::FrameLoader::commitProvisionalLoad(WTF::PassRefPtr&lt;WebCore::PageCache&gt;) + 224 (FrameLoader.cpp:1933)
5   com.apple.WebCore        	0x0151fc80 WebCore::SVGImage::setData(bool) + 1068 (SVGImage.cpp:139)
6   com.apple.WebCore        	0x01156c08 WebCore::CachedImage::data(WTF::Vector&lt;char, (unsigned long)0&gt;&amp;, bool) + 116 (CachedImage.cpp:186)
7   com.apple.WebCore        	0x0115a8b4 WebCore::Loader::receivedAllData(WebCore::SubresourceLoader*, NSData*) + 344 (loader.cpp:109)
8   com.apple.WebCore        	0x014929c8 WebCore::SubresourceLoader::didFinishLoading() + 248 (SubresourceLoaderMac.mm:196)
9   com.apple.WebCore        	0x0148d76c WebCore::ResourceLoader::didFinishLoading(WebCore::ResourceHandle*) + 60 (ResourceLoaderMac.mm:447)
10  com.apple.WebCore        	0x014a1d38 -[WebCoreResourceHandleAsDelegate connectionDidFinishLoading:] + 144 (ResourceHandleMac.mm:309)
11  com.apple.Foundation     	0x9298f84c -[NSURLConnection(NSURLConnectionInternal) _sendDidFinishLoadingCallback] + 188</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37291</commentid>
    <comment_count>1</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2007-01-03 10:10:53 -0800</bug_when>
    <thetext>This smells like a problem with SVGImageEmptyClients, or rather the loader depending on a different answer than SVGImageEmptyClients give.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37288</commentid>
    <comment_count>2</comment_count>
    <who name="Nikolas Zimmermann">zimmermann</who>
    <bug_when>2007-01-03 10:11:57 -0800</bug_when>
    <thetext>I can confirm the problems, must have happened last night.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37289</commentid>
    <comment_count>3</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2007-01-03 10:18:21 -0800</bug_when>
    <thetext>I never ran into this yesterday before landing my patch but was hounded with reports of it this morning - I&apos;m taking a look now to see if I can repro...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37251</commentid>
    <comment_count>4</comment_count>
      <attachid>12203</attachid>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2007-01-03 16:51:24 -0800</bug_when>
    <thetext>Created attachment 12203
Proprosed fix</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37252</commentid>
    <comment_count>5</comment_count>
      <attachid>12203</attachid>
    <who name="Anders Carlsson">andersca</who>
    <bug_when>2007-01-03 17:07:56 -0800</bug_when>
    <thetext>Comment on attachment 12203
Proprosed fix

r=me with the comments I discussed with Brady</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37254</commentid>
    <comment_count>6</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2007-01-03 17:23:31 -0800</bug_when>
    <thetext>Committed in r18561

The issue here - faking subresource loads with internal svgs - makes me want to reiterate how disconcerting it is to be faking subresource loads, though my understanding is that we might start doing this in more places than just svg-as-image.  Alexey mentioned on #webkit that the work being done in http://bugs.webkit.org/show_bug.cgi?id=10313 is another example of this.

If we start doing this more and more, I think we need a much better defined mechanism of how to represent &quot;this is a fake subresource&quot; when we &quot;kick off&quot; the fake load, so history, subresource progress, and other interesting parts of the infrastructure know how to deal with it.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>12203</attachid>
            <date>2007-01-03 16:51:24 -0800</date>
            <delta_ts>2007-01-03 17:07:56 -0800</delta_ts>
            <desc>Proprosed fix</desc>
            <filename>12093patch.txt</filename>
            <type>text/plain</type>
            <size>1687</size>
            <attacher name="Brady Eidson">beidson</attacher>
            
              <data encoding="base64">SW5kZXg6IENoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBDaGFuZ2VMb2cJKHJldmlzaW9uIDE4NTU5
KQorKysgQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBAIC0xLDMgKzEsMTYgQEAKKzIwMDctMDEt
MDMgIEJyYWR5IEVpZHNvbiAgPGJlaWRzb25AYXBwbGUuY29tPgorCisgICAgICAgIFJldmlld2Vk
IGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAgIGh0dHA6Ly9idWdzLndlYmtpdC5vcmcvc2hv
d19idWcuY2dpP2lkPTEyMDkzIC0gQXNzZXJ0aW9uIGluIGNlcnRhaW4gU1ZHIGxheW91dCB0ZXN0
cworICAgICAgICBJIGNhbid0IHJlYWxseSB0aGluayBvZiBhIGNsZWFuZXIgd2F5IHRvIGZpeCB0
aGlzIHRoZW4gdG8gaGVscCB0aGVzZSBTVkcgY2FzZXMgYXZvaWQKKyAgICAgICAgdGhlIEFTU0VS
VCAtIGhvcGVmdWxseSB3ZSBjYW4gY2xlYW4gdXAgdGhlIHN2Zy1hcy1pbWFnZSBzaXR1YXRpb24g
YXMgdGhlIGxvYWRlciBzdGFiaWxpemVzIAorICAgICAgICBhbmQgd2UgZmluZCBiZXR0ZXIgd2F5
cyB0byBoYW5kbGUgaXQuLi4KKworICAgICAgICAqIGxvYWRlci9tYWMvRG9jdW1lbnRMb2FkZXJN
YWMubW06CisgICAgICAgIChXZWJDb3JlOjpEb2N1bWVudExvYWRlcjo6dXJsRm9ySGlzdG9yeSk6
IGVtcHR5LWNoZWNrIHRoZSB1cmwgYmVmb3JlIHBhc3NpbmcgaXQgdG8gdGhlCisgICAgICAgIEFT
U0VSVGluZyBtZXRob2QKKwogMjAwNy0wMS0wMyAgRGFyaW4gQWRsZXIg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mVxdWVzdCgpIF93ZWJEYXRhUmVxdWVzdFVucmVhY2hhYmxlVVJMXTsKIAogICAgIHJl
dHVybiBtX29yaWdpbmFsUmVxdWVzdENvcHkudXJsKCk7Cg==
</data>
<flag name="review"
          id="4530"
          type_id="1"
          status="+"
          setter="andersca"
    />
          </attachment>
      

    </bug>

</bugzilla>