<?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>32017</bug_id>
          
          <creation_ts>2009-12-01 04:36:51 -0800</creation_ts>
          <short_desc>[V8] Don&apos;t crash in DOMWindow event getter in OOM situations</short_desc>
          <delta_ts>2009-12-01 07:45:36 -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 JavaScript</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></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mads Ager">ager</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>commit-queue</cc>
    
    <cc>dglazkov</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>167569</commentid>
    <comment_count>0</comment_count>
    <who name="Mads Ager">ager</who>
    <bug_when>2009-12-01 04:36:51 -0800</bug_when>
    <thetext>There are missing null checks in the DOMWindow event property getter and setter.  V8Proxy::context(frame) can return a null handle in OOM situations either if failing to initialize a context or if an OOM is handled gracefully and javascript is disabled.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>167570</commentid>
    <comment_count>1</comment_count>
      <attachid>44068</attachid>
    <who name="Mads Ager">ager</who>
    <bug_when>2009-12-01 04:45:14 -0800</bug_when>
    <thetext>Created attachment 44068
Add missing null checks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>167571</commentid>
    <comment_count>2</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2009-12-01 04:48:35 -0800</bug_when>
    <thetext>style-queue ran check-webkit-style on attachment 44068 without any errors.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>167595</commentid>
    <comment_count>3</comment_count>
      <attachid>44068</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-12-01 07:22:58 -0800</bug_when>
    <thetext>Comment on attachment 44068
Add missing null checks.

This makes me wonder about all the other calls to &quot;V8Proxy::context(frame)&quot;.

It would be nice if there was some way to restrict the heap size for v8 artificially so as to fake OOM bugs, but I can see how this would be difficult to test.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>167603</commentid>
    <comment_count>4</comment_count>
      <attachid>44068</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2009-12-01 07:45:31 -0800</bug_when>
    <thetext>Comment on attachment 44068
Add missing null checks.

Clearing flags on attachment: 44068

Committed r51536: &lt;http://trac.webkit.org/changeset/51536&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>167604</commentid>
    <comment_count>5</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2009-12-01 07:45:36 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>44068</attachid>
            <date>2009-12-01 04:45:14 -0800</date>
            <delta_ts>2009-12-01 07:45:30 -0800</delta_ts>
            <desc>Add missing null checks.</desc>
            <filename>32017.txt</filename>
            <type>text/plain</type>
            <size>2012</size>
            <attacher name="Mads Ager">ager</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT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W50LklzRW1wdHkoKSkKQEAgLTE5Myw2ICsxOTYs
OSBAQCBBQ0NFU1NPUl9TRVRURVIoRE9NV2luZG93RXZlbnQpCiAgICAgICAgIHJldHVybjsKIAog
ICAgIHY4OjpMb2NhbDx2ODo6Q29udGV4dD4gY29udGV4dCA9IFY4UHJveHk6OmNvbnRleHQoZnJh
bWUpOworICAgIGlmIChjb250ZXh0LklzRW1wdHkoKSkKKyAgICAgICAgcmV0dXJuOworCiAgICAg
djg6OkxvY2FsPHY4OjpTdHJpbmc+IGV2ZW50U3ltYm9sID0gdjg6OlN0cmluZzo6TmV3U3ltYm9s
KCJldmVudCIpOwogICAgIGNvbnRleHQtPkdsb2JhbCgpLT5TZXRIaWRkZW5WYWx1ZShldmVudFN5
bWJvbCwgdmFsdWUpOwogfQo=
</data>

          </attachment>
      

    </bug>

</bugzilla>