<?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>31561</bug_id>
          
          <creation_ts>2009-11-16 12:12:49 -0800</creation_ts>
          <short_desc>[Chromium] Support null NPObject* parameter in _NPN_SetException</short_desc>
          <delta_ts>2009-11-16 14:41:32 -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>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="Nate Chapin">japhet</reporter>
          <assigned_to name="Nate Chapin">japhet</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>164049</commentid>
    <comment_count>0</comment_count>
    <who name="Nate Chapin">japhet</who>
    <bug_when>2009-11-16 12:12:49 -0800</bug_when>
    <thetext>Currently, if a plugin calls NPN_SetException and passes us a null NPObject*, we would crash.

Additionally, if an NPN_SetException is coming from an out of process plugin, it is very likely that the NPObject* is pointing to an object living in the plugin&apos;s memory space in the plugin process, rather than in the renderer process where the exception is actually being thrown.  This will allow Chromium to just pass in a null NPObject* rather than trying to ferry an object that wouldn&apos;t be used anyway between processses.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>164050</commentid>
    <comment_count>1</comment_count>
      <attachid>43318</attachid>
    <who name="Nate Chapin">japhet</who>
    <bug_when>2009-11-16 12:15:32 -0800</bug_when>
    <thetext>Created attachment 43318
patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>164071</commentid>
    <comment_count>2</comment_count>
      <attachid>43318</attachid>
    <who name="Darin Fisher (:fishd, Google)">fishd</who>
    <bug_when>2009-11-16 14:07:18 -0800</bug_when>
    <thetext>Comment on attachment 43318
patch

&gt; Index: WebCore/ChangeLog
...
&gt; +        Handle the case of a null NPObject* in NPN_SetException in
&gt; +        the V8 bindings.

I had to read the bug summary to understand this patch.  It would be
good to put more of the justification for this change here in the
ChangeLog.

Otherwise, R=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>164087</commentid>
    <comment_count>3</comment_count>
    <who name="Nate Chapin">japhet</who>
    <bug_when>2009-11-16 14:41:32 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; (From update of attachment 43318 [details])
&gt; &gt; Index: WebCore/ChangeLog
&gt; ...
&gt; &gt; +        Handle the case of a null NPObject* in NPN_SetException in
&gt; &gt; +        the V8 bindings.
&gt; 
&gt; I had to read the bug summary to understand this patch.  It would be
&gt; good to put more of the justification for this change here in the
&gt; ChangeLog.
&gt; 
&gt; Otherwise, R=me

Done and committed: http://trac.webkit.org/changeset/51054</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>43318</attachid>
            <date>2009-11-16 12:15:32 -0800</date>
            <delta_ts>2009-11-16 14:07:17 -0800</delta_ts>
            <desc>patch</desc>
            <filename>patch.txt</filename>
            <type>text/plain</type>
            <size>1305</size>
            <attacher name="Nate Chapin">japhet</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFdlYkNvcmUvQ2hhbmdlTG9n
CShyZXZpc2lvbiA1MTA0NCkKKysrIFdlYkN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G5wT2JqZWN0LT5f
Y2xhc3MgIT0gbnBTY3JpcHRPYmplY3RDbGFzcykgeworICAgIGlmICghbnBPYmplY3QgfHwgbnBP
YmplY3QtPl9jbGFzcyAhPSBucFNjcmlwdE9iamVjdENsYXNzKSB7CiAgICAgICAgIC8vIFdlIHdv
bid0IGJlIGFibGUgdG8gZmluZCBhIHByb3BlciBzY29wZSBmb3IgdGhpcyBleGNlcHRpb24sIHNv
IGp1c3QgdGhyb3cgaXQuCiAgICAgICAgIC8vIFRoaXMgaXMgY29uc2lzdGVudCB3aXRoIEpTQywg
d2hpY2ggdGhyb3dzIGEgZ2xvYmFsIGV4Y2VwdGlvbiBhbGwgdGhlIHRpbWUuCiAgICAgICAgIFY4
UHJveHk6OnRocm93RXJyb3IoVjhQcm94eTo6R2VuZXJhbEVycm9yLCBtZXNzYWdlKTsK
</data>
<flag name="review"
          id="25019"
          type_id="1"
          status="+"
          setter="fishd"
    />
          </attachment>
      

    </bug>

</bugzilla>