<?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>50200</bug_id>
          
          <creation_ts>2010-11-29 18:41:24 -0800</creation_ts>
          <short_desc>Crash when iframe transfers from one page to another and has child frames.</short_desc>
          <delta_ts>2010-12-14 15:22:20 -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>WebCore Misc.</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>ASSIGNED</bug_status>
          <resolution></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="Dmitry Titov">dimich</reporter>
          <assigned_to name="Dmitry Titov">dimich</assigned_to>
          <cc>dbates</cc>
    
    <cc>jennb</cc>
    
    <cc>levin</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>314804</commentid>
    <comment_count>0</comment_count>
    <who name="Dmitry Titov">dimich</who>
    <bug_when>2010-11-29 18:41:24 -0800</bug_when>
    <thetext>The crash happens due to lack of FrameLoaderClient updates for children of the Frame that was transferred from one page to another. This leaves the children of transferred Frame using the clients associated with the old Page, and once that one goes away and some GC&apos;ing happens, the operations requiring FrameLoaderClient can cause crash.

The code avoids unnecessary updates by accumulating &apos;didTransfer&apos; bool. The change http://trac.webkit.org/changeset/71962 introduced code that overrides the boolean rather then accumulates the result.

Patch is coming shortly. I can&apos;t figure out simple test for this, but I&apos;m still working on it. Want to put the fix through before I can do the test since the crash blocks other developers at the moment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>314805</commentid>
    <comment_count>1</comment_count>
      <attachid>75098</attachid>
    <who name="Dmitry Titov">dimich</who>
    <bug_when>2010-11-29 18:44:54 -0800</bug_when>
    <thetext>Created attachment 75098
Patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>314807</commentid>
    <comment_count>2</comment_count>
    <who name="David Levin">levin</who>
    <bug_when>2010-11-29 18:48:58 -0800</bug_when>
    <thetext>OK, but I&apos;m expecting a test soon!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>314817</commentid>
    <comment_count>3</comment_count>
    <who name="Dmitry Titov">dimich</who>
    <bug_when>2010-11-29 19:10:16 -0800</bug_when>
    <thetext>Landed: http://trac.webkit.org/changeset/72863</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>314818</commentid>
    <comment_count>4</comment_count>
    <who name="Dmitry Titov">dimich</who>
    <bug_when>2010-11-29 19:10:53 -0800</bug_when>
    <thetext>Still working on a test so keeping bug open.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>321783</commentid>
    <comment_count>5</comment_count>
      <attachid>75098</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-12-14 01:31:07 -0800</bug_when>
    <thetext>Comment on attachment 75098
Patch.

Any updates?  Obsoleting this patch since it was landed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>322283</commentid>
    <comment_count>6</comment_count>
      <attachid>75098</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-12-14 15:22:20 -0800</bug_when>
    <thetext>Comment on attachment 75098
Patch.

Cleared David Levin&apos;s review+ from obsolete attachment 75098 so that this bug does not appear in http://webkit.org/pending-commit.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>75098</attachid>
            <date>2010-11-29 18:44:54 -0800</date>
            <delta_ts>2010-12-14 15:22:20 -0800</delta_ts>
            <desc>Patch.</desc>
            <filename>patch.txt</filename>
            <type>text/plain</type>
            <size>1159</size>
            <attacher name="Dmitry Titov">dimich</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1dlYkNvcmUvQ2hhbmdlTG9nIGIvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXgg
ZTdmMjA1My4uZjU1OTcyMSAxMDA2NDQKLS0tIGEvV2ViQ29yZS9DaGFuZ2VMb2cKKysrIGIvV2Vi
Q29yZS9DaGFuZ2VMb2cKQEAgLTEsMyArMSwxNCBAQAorMjAxMC0xMS0yOSAgRG1pdHJ5IFRpdG92
ICA8ZGltaWNoQGNocm9taXVtLm9yZz4KKworICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9P
UFMhKS4KKworICAgICAgICBDcmFzaCB3aGVuIGlmcmFtZSB0cmFuc2ZlcnMgZnJvbSBvbmUgcGFn
ZSB0byBhbm90aGVyIGFuZCBoYXMgY2hpbGQgZnJhbWVzLgorICAgICAgICBodHRwczovL2J1Z3Mu
d2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9NTAyMDAKKworICAgICAgICAqIHBhZ2UvRnJhbWUu
Y3BwOgorICAgICAgICAoV2ViQ29yZTo6RnJhbWU6OnRyYW5zZmVyQ2hpbGRGcmFtZVRvTmV3RG9j
dW1lbnQpOgorICAgICAgICBhdm9pZCBvdmVycmlkaW5nICdkaWRUcmFuc2Zlcicgd2hpY2ggaGFz
IHRoZSByZXN1bHQgb2YgcHJldmlvdXMgY2hlY2suCisKIDIwMTAtMTEtMjkgIEJyZW50IEZ1bGdo
YW0gIDxiZnVsZ2hhbUB3ZWJraXQub3JnPgogCiAgICAgICAgIFVucmV2aWV3ZWQgYnVpbGQgZml4
LgpkaWZmIC0tZ2l0IGEvV2ViQ29yZS9wYWdlL0ZyYW1lLmNwcCBiL1dlYkNvcmUvcGFnZS9GcmFt
ZS5jcHAKaW5kZXggNTAzMGM3Mi4uODU1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