<?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>98401</bug_id>
          
          <creation_ts>2012-10-04 05:48:27 -0700</creation_ts>
          <short_desc>Compile PLUGIN_PROCESS code only when NETSCAPE_PLUGIN_API macro is on</short_desc>
          <delta_ts>2022-07-01 10:45:25 -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>WebKit2</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</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>0</everconfirmed>
          <reporter name="Mariusz Grzegorczyk">mariusz.g</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>aestes</cc>
    
    <cc>bfulgham</cc>
    
    <cc>cdumez</cc>
    
    <cc>cgarcia</cc>
    
    <cc>csaavedra</cc>
    
    <cc>laszlo.gombos</cc>
    
    <cc>mrobinson</cc>
    
    <cc>philip.chimento</cc>
    
    <cc>rakuco</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>734618</commentid>
    <comment_count>0</comment_count>
    <who name="Mariusz Grzegorczyk">mariusz.g</who>
    <bug_when>2012-10-04 05:48:27 -0700</bug_when>
    <thetext>In webkit2 there are some places where code related with plugin process is guarded by only PLUGIN_PROCESS macro, and in other places with both PLUGIN_PROCESS and NETSCAPE_PLUGIN_API.
Following commit tries to make some cleanup:

&quot;Guard Netscape plug-in code with ENABLE(NETSCAPE_PLUGIN_API)
    https://bugs.webkit.org/show_bug.cgi?id=86496&quot;


Files like UIProcess/Plugins/PluginProcessProxy.cpp are being taken to compile always, and inside them at the beginning there is #if ENABLE(PLUGIN_PROCESS) guard. I think that in all places also NETSCAPE_PLUGIN_API check should be added. If plugins are off PLUGIN_PROCESS&apos;s code shouldn&apos;t be compiled.

Other example:
PluginProxyQt.cpp has guard #if ENABLE(PLUGIN_PROCESS) &amp;&amp; ENABLE(NETSCAPE_PLUGIN_API), while
PluginProxy.h only #if ENABLE(PLUGIN_PROCESS)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>918319</commentid>
    <comment_count>1</comment_count>
    <who name="Claudio Saavedra">csaavedra</who>
    <bug_when>2013-08-17 10:06:39 -0700</bug_when>
    <thetext>This is related to 89451, probably a duplicate.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1059284</commentid>
    <comment_count>2</comment_count>
    <who name="Philip Chimento">philip.chimento</who>
    <bug_when>2015-01-06 19:16:05 -0800</bug_when>
    <thetext>Duplicate of https://bugs.webkit.org/show_bug.cgi?id=98262 I think?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1059381</commentid>
    <comment_count>3</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2015-01-07 05:35:06 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; Duplicate of https://bugs.webkit.org/show_bug.cgi?id=98262 I think?

No it&apos;s not, if ENABLE_PLUGIN_PROCESS was false when ENABLE_NETSCAPE_PLUGIN_API is false you wouldn&apos;t need most of the #ifdefs you are adding in bug #98262</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1879840</commentid>
    <comment_count>4</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2022-07-01 10:45:25 -0700</bug_when>
    <thetext>WebKit no longer support NPAPI plugins.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>