<?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>18234</bug_id>
          
          <creation_ts>2008-03-31 01:57:53 -0700</creation_ts>
          <short_desc>JS exception thrown from NPN_InvokeDefault not shown in error console.</short_desc>
          <delta_ts>2022-06-20 17:03:45 -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>Plug-ins</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>GoogleBug, InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jeremy Moskovich">playmobil</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>ddkilzer</cc>
    
    <cc>dglazkov</cc>
    
    <cc>emacemac7</cc>
    
    <cc>ggaren</cc>
    
    <cc>mjs</cc>
    
    <cc>oliver</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>75920</commentid>
    <comment_count>0</comment_count>
    <who name="Jeremy Moskovich">playmobil</who>
    <bug_when>2008-03-31 01:57:53 -0700</bug_when>
    <thetext>Invoking the following JS code from an NPAPI plug-in via the NPN_InvokeDefault() function doesn&apos;t show the exception in the error console:

function() { throw &quot;An Exception&quot;; }

Stepping into _NPN_InvokeDefault() in NP_jsobject.cpp shows that the exception appears to have been set correctly in the ExecState but this apparently isn&apos;t bubbled up when the plugin code returns control to the browser.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76032</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2008-03-31 22:58:26 -0700</bug_when>
    <thetext>See also: bug 17470.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76072</commentid>
    <comment_count>2</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2008-04-01 12:16:55 -0700</bug_when>
    <thetext>This bug blocks Google Gears support in Safari.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76581</commentid>
    <comment_count>3</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2008-04-08 02:05:25 -0700</bug_when>
    <thetext>Working on a real fix as we speak.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77787</commentid>
    <comment_count>4</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2008-04-16 07:47:56 -0700</bug_when>
    <thetext>Updating the bug, finally.  This is very much tied to the NPN_SetException bug.  The fix is to save off the current ExecState in a static (or per-thread) static, and then throw the exception in that ExecState.  I tried saving the ExecState on the Instance, however that doesn&apos;t work for Obj-C (since it&apos;s a static method), and doesn&apos;t work well for JS/C++ either since you have to be thrown an JavaScriptObject in order to be able to get back to an Instance.

I may find time to finish up my patch, but right now real work is distracting...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86478</commentid>
    <comment_count>5</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2008-07-20 10:41:54 -0700</bug_when>
    <thetext>&lt;rdar://problem/6089187&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86509</commentid>
    <comment_count>6</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2008-07-20 15:26:10 -0700</bug_when>
    <thetext>Related to Bug 19936?

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>405154</commentid>
    <comment_count>7</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-05-17 10:48:38 -0700</bug_when>
    <thetext>This is stll likely a bug, but Gears no longer cares since Gears is dead.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1876868</commentid>
    <comment_count>8</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2022-06-20 17:03:45 -0700</bug_when>
    <thetext>NPAPI is gone.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>