<?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>91525</bug_id>
          
          <creation_ts>2012-07-17 11:17:31 -0700</creation_ts>
          <short_desc>REGRESSION(r122215) - RenderObject::willRenderImage crashes on null view()</short_desc>
          <delta_ts>2012-07-17 16:07:50 -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>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</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="Adrienne Walker">enne</reporter>
          <assigned_to name="Adrienne Walker">enne</assigned_to>
          <cc>enne</cc>
    
    <cc>eric</cc>
    
    <cc>jchaffraix</cc>
    
    <cc>koivisto</cc>
    
    <cc>skyul</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>671424</commentid>
    <comment_count>0</comment_count>
    <who name="Adrienne Walker">enne</who>
    <bug_when>2012-07-17 11:17:31 -0700</bug_when>
    <thetext>REGRESSION(r122215) - RenderObject::willRenderImage crashes on null view()</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>671524</commentid>
    <comment_count>1</comment_count>
      <attachid>152812</attachid>
    <who name="Adrienne Walker">enne</who>
    <bug_when>2012-07-17 13:13:08 -0700</bug_when>
    <thetext>Created attachment 152812
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>671545</commentid>
    <comment_count>2</comment_count>
      <attachid>152812</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2012-07-17 13:41:55 -0700</bug_when>
    <thetext>Comment on attachment 152812
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=152812&amp;action=review

&gt; Source/WebCore/rendering/RenderObject.cpp:2697
&gt; +    if (!view())

So this is RenderView...  And document()-&gt;view() is FrameView?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>671559</commentid>
    <comment_count>3</comment_count>
      <attachid>152812</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2012-07-17 13:48:10 -0700</bug_when>
    <thetext>Comment on attachment 152812
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=152812&amp;action=review

&gt;&gt; Source/WebCore/rendering/RenderObject.cpp:2697
&gt;&gt; +    if (!view())
&gt; 
&gt; So this is RenderView...  And document()-&gt;view() is FrameView?

Yes, it is.  And we should really make that less confusing some day.

I&apos;m confused what callstack would hit this?  I guess document destruction?  IT&apos;s not clear what you mean by &quot;not been inserted into the tree&quot;, do you mean the document or the RenderImage?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>671590</commentid>
    <comment_count>4</comment_count>
    <who name="Adrienne Walker">enne</who>
    <bug_when>2012-07-17 14:17:58 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; (From update of attachment 152812 [details])
&gt; View in context: https://bugs.webkit.org/attachment.cgi?id=152812&amp;action=review
&gt; 
&gt; &gt;&gt; Source/WebCore/rendering/RenderObject.cpp:2697
&gt; &gt;&gt; +    if (!view())
&gt; &gt; 
&gt; &gt; So this is RenderView...  And document()-&gt;view() is FrameView?
&gt; 
&gt; Yes, it is.  And we should really make that less confusing some day.
&gt; 
&gt; I&apos;m confused what callstack would hit this?  I guess document destruction?  IT&apos;s not clear what you mean by &quot;not been inserted into the tree&quot;, do you mean the document or the RenderImage?

Maybe I shouldn&apos;t have included any comment at all.  ;)

Document destruction is one case, since the Document&apos;s renderer is cleared during that step.  Document attachment is the other, since that&apos;s when the renderer gets initially set.

I&apos;m guessing at this being the issue given the callstack in the crashreport in the linked Chromium bug.  I wasn&apos;t able to repro this locally.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>671635</commentid>
    <comment_count>5</comment_count>
      <attachid>152841</attachid>
    <who name="Adrienne Walker">enne</who>
    <bug_when>2012-07-17 15:11:48 -0700</bug_when>
    <thetext>Created attachment 152841
Reword comment</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>671645</commentid>
    <comment_count>6</comment_count>
      <attachid>152841</attachid>
    <who name="Kwang Yul Seo">skyul</who>
    <bug_when>2012-07-17 15:18:06 -0700</bug_when>
    <thetext>Comment on attachment 152841
Reword comment

View in context: https://bugs.webkit.org/attachment.cgi?id=152841&amp;action=review

&gt; Source/WebCore/rendering/RenderObject.cpp:2699
&gt; +

The patch looks good to me. I&apos;m sorry to miss this in r122215.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>671661</commentid>
    <comment_count>7</comment_count>
      <attachid>152841</attachid>
    <who name="Julien Chaffraix">jchaffraix</who>
    <bug_when>2012-07-17 15:31:42 -0700</bug_when>
    <thetext>Comment on attachment 152841
Reword comment

View in context: https://bugs.webkit.org/attachment.cgi?id=152841&amp;action=review

&gt; Source/WebCore/ChangeLog:10
&gt; +

It would be nice to mention why you couldn&apos;t produce a test case in your ChangeLog.

&gt; Source/WebCore/rendering/RenderObject.cpp:2696
&gt; +    // If the document is being destroyed or has not been attached, then this
&gt; +    // RenderObject will not be rendered.

I am fine with the comment as-is though Eric may want to comment further.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>671699</commentid>
    <comment_count>8</comment_count>
    <who name="Adrienne Walker">enne</who>
    <bug_when>2012-07-17 16:06:55 -0700</bug_when>
    <thetext>Committed r122886: &lt;http://trac.webkit.org/changeset/122886&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>671702</commentid>
    <comment_count>9</comment_count>
    <who name="Adrienne Walker">enne</who>
    <bug_when>2012-07-17 16:07:50 -0700</bug_when>
    <thetext>(In reply to comment #7)
&gt; (From update of attachment 152841 [details])
&gt; View in context: https://bugs.webkit.org/attachment.cgi?id=152841&amp;action=review
&gt; 
&gt; &gt; Source/WebCore/ChangeLog:10
&gt; &gt; +
&gt; 
&gt; It would be nice to mention why you couldn&apos;t produce a test case in your ChangeLog.

Done.

&gt; &gt; Source/WebCore/rendering/RenderObject.cpp:2696
&gt; &gt; +    // If the document is being destroyed or has not been attached, then this
&gt; &gt; +    // RenderObject will not be rendered.
&gt; 
&gt; I am fine with the comment as-is though Eric may want to comment further.

Sorry for going ahead and landing this, but I wanted to have a chance to get this in tomorrow&apos;s canary and see if it reduced the crash rate.  I&apos;m happy to change the comment in a follow-up patch if you think that can be reworded better.  :)</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>152812</attachid>
            <date>2012-07-17 13:13:08 -0700</date>
            <delta_ts>2012-07-17 15:11:45 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-91525-20120717131308.patch</filename>
            <type>text/plain</type>
            <size>1620</size>
            <attacher name="Adrienne Walker">enne</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTIyODQ3CmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViQ29yZS9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXggYjg0ODBiZWM5NTBiYzQy
ZmQ5ZjlmYTJmZWMzNDI3OGE2ZDEzZjgxYy4uMjI3YWNiMzNmMTE3ZTZlYWY1MDU4ZmI4YTFmOTM2
YWVhMjRkZDI3YiAxMDA2NDQKLS0tIGEvU291cmNlL1dlYkNvcmUvQ2hhbmdlTG9nCisrKyBiL1Nv
dXJjZS9XZWJDb3JlL0NoYW5nZUxvZwpA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IGEvU291cmNlL1dlYkNvcmUvcmVuZGVyaW5nL1JlbmRl
ck9iamVjdC5jcHAKKysrIGIvU291cmNlL1dlYkNvcmUvcmVuZGVyaW5nL1JlbmRlck9iamVjdC5j
cHAKQEAgLTI2OTIsNiArMjY5MiwxMSBAQCBib29sIFJlbmRlck9iamVjdDo6d2lsbFJlbmRlcklt
YWdlKENhY2hlZEltYWdlKikKICAgICBpZiAoZG9jdW1lbnQoKS0+aW5QYWdlQ2FjaGUoKSB8fCBk
b2N1bWVudCgpLT52aWV3KCktPmlzT2Zmc2NyZWVuKCkpCiAgICAgICAgIHJldHVybiBmYWxzZTsK
IAorICAgIC8vIElmIHRoZSByZW5kZXJlcidzIGRvY3VtZW50IGlzIGJlaW5nIGRlc3Ryb3llZCBv
ciBoYXMgbm90IGJlZW4gaW5zZXJ0ZWQKKyAgICAvLyBpbnRvIHRoZSB0cmVlLCB0aGVuIHRoaXMg
d29uJ3QgYmUgcmVuZGVyZWQuCisgICAgaWYgKCF2aWV3KCkpCisgICAgICAgIHJldHVybiBmYWxz
ZTsKKwogICAgIC8vIElmIGEgcmVuZGVyZXIgaXMgb3V0c2lkZSB0aGUgdmlld3BvcnQsIHdlIHdv
bid0IHJlbmRlci4KICAgICByZXR1cm4gdmlld1JlY3QoKS5pbnRlcnNlY3RzKGFic29sdXRlQ2xp
cHBlZE92ZXJmbG93UmVjdCgpKTsKIH0K
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>152841</attachid>
            <date>2012-07-17 15:11:48 -0700</date>
            <delta_ts>2012-07-17 15:31:42 -0700</delta_ts>
            <desc>Reword comment</desc>
            <filename>bug-91525-20120717151148.patch</filename>
            <type>text/plain</type>
            <size>1611</size>
            <attacher name="Adrienne Walker">enne</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTIyODQ3CmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViQ29yZS9D
aGFuZ2VMb2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tLWdpdCBhL1NvdXJjZS9XZWJDb3JlL3JlbmRlcmluZy9SZW5kZXJPYmplY3QuY3BwIGIvU291
cmNlL1dlYkNvcmUvcmVuZGVyaW5nL1JlbmRlck9iamVjdC5jcHAKaW5kZXggN2FkZWRhOTkyYmNk
NzZiYjlkMzkyMjcwOGIyZDNiZDFmMGQ2OWU4Yi4uNmNkYjRiMmY5NDBmOTRkYjE2NzlkMzE5MTM2
MTFhYmY2M2NmYzRiNyAxMDA3NTUKLS0tIGEvU291cmNlL1dlYkNvcmUvcmVuZGVyaW5nL1JlbmRl
ck9iamVjdC5jcHAKKysrIGIvU291cmNlL1dlYkNvcmUvcmVuZGVyaW5nL1JlbmRlck9iamVjdC5j
cHAKQEAgLTI2OTIsNiArMjY5MiwxMSBAQCBib29sIFJlbmRlck9iamVjdDo6d2lsbFJlbmRlcklt
YWdlKENhY2hlZEltYWdlKikKICAgICBpZiAoZG9jdW1lbnQoKS0+aW5QYWdlQ2FjaGUoKSB8fCBk
b2N1bWVudCgpLT52aWV3KCktPmlzT2Zmc2NyZWVuKCkpCiAgICAgICAgIHJldHVybiBmYWxzZTsK
IAorICAgIC8vIElmIHRoZSBkb2N1bWVudCBpcyBiZWluZyBkZXN0cm95ZWQgb3IgaGFzIG5vdCBi
ZWVuIGF0dGFjaGVkLCB0aGVuIHRoaXMKKyAgICAvLyBSZW5kZXJPYmplY3Qgd2lsbCBub3QgYmUg
cmVuZGVyZWQuCisgICAgaWYgKCF2aWV3KCkpCisgICAgICAgIHJldHVybiBmYWxzZTsKKwogICAg
IC8vIElmIGEgcmVuZGVyZXIgaXMgb3V0c2lkZSB0aGUgdmlld3BvcnQsIHdlIHdvbid0IHJlbmRl
ci4KICAgICByZXR1cm4gdmlld1JlY3QoKS5pbnRlcnNlY3RzKGFic29sdXRlQ2xpcHBlZE92ZXJm
bG93UmVjdCgpKTsKIH0K
</data>
<flag name="review"
          id="161625"
          type_id="1"
          status="+"
          setter="jchaffraix"
    />
          </attachment>
      

    </bug>

</bugzilla>