<?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>15775</bug_id>
          
          <creation_ts>2007-10-31 09:14:18 -0700</creation_ts>
          <short_desc>NPAPI behavioural differences with Safari</short_desc>
          <delta_ts>2014-04-19 13:36:22 -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>523.x (Safari 3)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Kai Hendry">hendry</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>andersca</cc>
    
    <cc>emacemac7</cc>
    
    <cc>mrowe</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>59936</commentid>
    <comment_count>0</comment_count>
    <who name="Kai Hendry">hendry</who>
    <bug_when>2007-10-31 09:14:18 -0700</bug_when>
    <thetext>Safari seems to enter the plugin on NP_Initialize, whilst Opera&amp;Firefox enter on a main function like:

    int main(NPNetscapeFuncs *pFuncs, NPPluginFuncs *pluginFuncs, NPP_ShutdownProcPtr *shutdown)

This behavior only seems to happen on Darwin, as Opera&amp;Firefox seem to enter on NP_Initialize on Linux/Win32. So perhaps this isn&apos;t a bug and Opera&amp;Firefox Darwin plugin support needs updating.

The Netscape Plugin Example /Developer/Examples/WebKit/NetscapeMoviePlugIn/ seems to imply that the _main function_ entry point is for old CFM legacy type stuff. That&apos;s misleading. Don&apos;t waste time ripping it out and find Opera&amp;Firefox stop working.

Also Localized.r seems to be required for Opera&amp;Firefox and not Safari. Very odd. I found this reference:
http://developer.mozilla.org/en/docs/Gecko_Plugin_API_Reference:Plug-in_Development_Overview#Mac_OS_X

It would be nice if Opera&amp;WebKit&amp;Firefox were more in sync when it comes to plugin registration.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59992</commentid>
    <comment_count>1</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2007-11-01 03:13:19 -0700</bug_when>
    <thetext>The issue with the example code needs to be tracked through Radar.  I see that you filed &lt;rdar://problem/5570872&gt; on that issue, which is great.  This bugzilla entry can focus specifically on the behavioural difference between WebKit and Firefox/Opera when loading NPAPI plugins.  Specifically, the problem is that &quot;main&quot; is not called by WebKit on a mach-o plugin while Firefox/Opera require it to be present for the plugin to be used in a page.  This can be reproduced by doing modifying the NetscapeMoviePlugin sample code to remove the two references to &quot;int main(...)&quot;.  You can also verify with a debugger that &quot;main&quot; is invoked by both Firefox and Opera as part of the plugin initialization for mach-o plugins, not only for CFM binaries as WebKit currently does.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59993</commentid>
    <comment_count>2</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2007-11-01 03:14:35 -0700</bug_when>
    <thetext>&lt;rdar://problem/5573222&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1002251</commentid>
    <comment_count>3</comment_count>
    <who name="Anders Carlsson">andersca</who>
    <bug_when>2014-04-19 13:36:22 -0700</bug_when>
    <thetext>We&apos;ve removed this example code.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>