<?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>10314</bug_id>
          
          <creation_ts>2006-08-08 19:10:57 -0700</creation_ts>
          <short_desc>WebUnarchivingState archivedResourceForURL: doesn&apos;t work</short_desc>
          <delta_ts>2006-08-15 08:08:00 -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>New Bugs</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></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Graham Dennis">Graham.Dennis</reporter>
          <assigned_to name="Graham Dennis">Graham.Dennis</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>52081</commentid>
    <comment_count>0</comment_count>
    <who name="Graham Dennis">Graham.Dennis</who>
    <bug_when>2006-08-08 19:10:57 -0700</bug_when>
    <thetext>This method tries to get the object from the archivedResources dictionary with a key of (NSURL *)URL, however, objects are put into that dictionary with (NSString *)[URL _web_originalDataAsString]. This prevents the data for applewebdata:// URL&apos;s (e.g. for pasted images) to be fetched correctly for WebCore&apos;s cache.

Patch forthcoming.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52082</commentid>
    <comment_count>1</comment_count>
      <attachid>9951</attachid>
    <who name="Graham Dennis">Graham.Dennis</who>
    <bug_when>2006-08-08 19:20:51 -0700</bug_when>
    <thetext>Created attachment 9951
patch

Patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52203</commentid>
    <comment_count>2</comment_count>
      <attachid>9951</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2006-08-10 16:57:28 -0700</bug_when>
    <thetext>Comment on attachment 9951
patch

Clearly correct. Great change.

Can we make a test for this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52205</commentid>
    <comment_count>3</comment_count>
    <who name="Graham Dennis">Graham.Dennis</who>
    <bug_when>2006-08-10 17:03:53 -0700</bug_when>
    <thetext>I forgot to mention the lack of a test when I submitted the patch. I&apos;m not sure how to create a testcase for this... hints?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52640</commentid>
    <comment_count>4</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2006-08-15 08:06:48 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; I forgot to mention the lack of a test when I submitted the patch. I&apos;m not sure
&gt; how to create a testcase for this... hints?

Using the new code that allows you to make Objective-C calls from JavaScript DumpRenderTree tests I imagine you could call this method. Beyond that, I&apos;m not sure of the details.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52641</commentid>
    <comment_count>5</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2006-08-15 08:08:00 -0700</bug_when>
    <thetext>Committed revision 15878.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>9951</attachid>
            <date>2006-08-08 19:20:51 -0700</date>
            <delta_ts>2006-08-10 16:57:28 -0700</delta_ts>
            <desc>patch</desc>
            <filename>patch-image-paste.diff</filename>
            <type>text/plain</type>
            <size>1322</size>
            <attacher name="Graham Dennis">Graham.Dennis</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYktpdC9DaGFuZ2VMb2cKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT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PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT0KLS0tIFdlYktpdC9XZWJWaWV3L1dlYlVuYXJjaGl2aW5nU3RhdGUubQko
cmV2aXNpb24gMTU4MDkpCisrKyBXZWJLaXQvV2ViVmlldy9XZWJVbmFyY2hpdmluZ1N0YXRlLm0J
KHdvcmtpbmcgY29weSkKQEAgLTc2LDcgKzc2LDcgQEAKIAogLSAoV2ViUmVzb3VyY2UgKilhcmNo
aXZlZFJlc291cmNlRm9yVVJMOihOU1VSTCAqKVVSTAogewotICAgIHJldHVybiBbYXJjaGl2ZWRS
ZXNvdXJjZXMgb2JqZWN0Rm9yS2V5OlVSTF07CisgICAgcmV0dXJuIFthcmNoaXZlZFJlc291cmNl
cyBvYmplY3RGb3JLZXk6W1VSTCBfd2ViX29yaWdpbmFsRGF0YUFzU3RyaW5nXV07CiB9CiAKIC0g
KFdlYkFyY2hpdmUgKilwb3BTdWJmcmFtZUFyY2hpdmVXaXRoRnJhbWVOYW1lOihOU1N0cmluZyAq
KWZyYW1lTmFtZQo=
</data>
<flag name="review"
          id="3077"
          type_id="1"
          status="+"
          setter="darin"
    />
          </attachment>
      

    </bug>

</bugzilla>