<?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>55442</bug_id>
          
          <creation_ts>2011-02-28 19:27:04 -0800</creation_ts>
          <short_desc>webarchives don&apos;t contain subframe content</short_desc>
          <delta_ts>2011-02-28 20:28:35 -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>WebKit2</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alice Liu">alice.barraclough</reporter>
          <assigned_to name="Alice Liu">alice.barraclough</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>359603</commentid>
    <comment_count>0</comment_count>
    <who name="Alice Liu">alice.barraclough</who>
    <bug_when>2011-02-28 19:27:04 -0800</bug_when>
    <thetext>WebPage::getWebArchiveOfFrame doesn&apos;t seem to generate any content for subframes in the resulting webarchive. 

This is because we&apos;re calling the wrong LegacyWebArchive::create() function (there are 7).  We&apos;re calling the one that takes a Frame* whereas we should be calling the one that takes a Node*.  Doing so will match old WebKit behaviour in -[DOMNode(WebDOMNodeOperations) webArchive] 

steps to repro: 
1) create a webarchive for your facebook.com (logged in) homepage. 

&lt;rdar://problem/8994125&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>359608</commentid>
    <comment_count>1</comment_count>
      <attachid>84175</attachid>
    <who name="Alice Liu">alice.barraclough</who>
    <bug_when>2011-02-28 19:32:11 -0800</bug_when>
    <thetext>Created attachment 84175
patch

Brady Eidson (beidson) has approved this change in-person.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>359610</commentid>
    <comment_count>2</comment_count>
      <attachid>84175</attachid>
    <who name="Gavin Barraclough">barraclough</who>
    <bug_when>2011-02-28 19:39:27 -0800</bug_when>
    <thetext>Comment on attachment 84175
patch

r+ since this changes behaviour to match webkit1.  But it seems like LegacyWebArchive::create should have the same behaviour whether it is passed the frame or the document I think this is likely either a bug, or a case for a function to be renamed to make this clearer.  We should probably open a new bug to track this issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>359635</commentid>
    <comment_count>3</comment_count>
    <who name="Alice Liu">alice.barraclough</who>
    <bug_when>2011-02-28 20:25:24 -0800</bug_when>
    <thetext>I filed https://bugs.webkit.org/show_bug.cgi?id=55445</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>359637</commentid>
    <comment_count>4</comment_count>
    <who name="Alice Liu">alice.barraclough</who>
    <bug_when>2011-02-28 20:28:35 -0800</bug_when>
    <thetext>committed http://trac.webkit.org/changeset/79965</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>84175</attachid>
            <date>2011-02-28 19:32:11 -0800</date>
            <delta_ts>2011-02-28 19:39:27 -0800</delta_ts>
            <desc>patch</desc>
            <filename>patchbug55442.txt</filename>
            <type>text/plain</type>
            <size>1569</size>
            <attacher name="Alice Liu">alice.barraclough</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJLaXQyL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
S2l0Mi9DaGFuZ2VMb2cJKHJldmlz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YlBhZ2UvV2ViUGFnZS5jcHAJKHdvcmtp
bmcgY29weSkKQEAgLTEyOTYsNyArMTI5Niw3IEBAIHZvaWQgV2ViUGFnZTo6Z2V0V2ViQXJjaGl2
ZU9mRnJhbWUodWludDYKICNpZiBQTEFURk9STShNQUMpIHx8IFBMQVRGT1JNKFdJTikKICAgICBS
ZXRhaW5QdHI8Q0ZEYXRhUmVmPiBkYXRhOwogICAgIGlmIChXZWJGcmFtZSogZnJhbWUgPSBXZWJQ
cm9jZXNzOjpzaGFyZWQoKS53ZWJGcmFtZShmcmFtZUlEKSkgewotICAgICAgICBpZiAoUmVmUHRy
PExlZ2FjeVdlYkFyY2hpdmU+IGFyY2hpdmUgPSBMZWdhY3lXZWJBcmNoaXZlOjpjcmVhdGUoZnJh
bWUtPmNvcmVGcmFtZSgpKSkgeworICAgICAgICBpZiAoUmVmUHRyPExlZ2FjeVdlYkFyY2hpdmU+
IGFyY2hpdmUgPSBMZWdhY3lXZWJBcmNoaXZlOjpjcmVhdGUoZnJhbWUtPmNvcmVGcmFtZSgpLT5k
b2N1bWVudCgpKSkgewogICAgICAgICAgICAgaWYgKChkYXRhID0gYXJjaGl2ZS0+cmF3RGF0YVJl
cHJlc2VudGF0aW9uKCkpKQogICAgICAgICAgICAgICAgIGRhdGFSZWZlcmVuY2UgPSBDb3JlSVBD
OjpEYXRhUmVmZXJlbmNlKENGRGF0YUdldEJ5dGVQdHIoZGF0YS5nZXQoKSksIENGRGF0YUdldExl
bmd0aChkYXRhLmdldCgpKSk7CiAgICAgICAgIH0K
</data>
<flag name="review"
          id="76143"
          type_id="1"
          status="+"
          setter="barraclough"
    />
          </attachment>
      

    </bug>

</bugzilla>