<?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>30753</bug_id>
          
          <creation_ts>2009-10-24 20:55:52 -0700</creation_ts>
          <short_desc>Build fix for WIN_OS if Netscape plugin support is turned off</short_desc>
          <delta_ts>2009-10-25 15:45:19 -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>PC</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="Laszlo Gombos">laszlo.gombos</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>kevino</cc>
    
    <cc>tonikitoo</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>157545</commentid>
    <comment_count>0</comment_count>
    <who name="Laszlo Gombos">laszlo.gombos</who>
    <bug_when>2009-10-24 20:55:52 -0700</bug_when>
    <thetext>PLATFORM(WX) guards were placed into the plugin code, because WX port does not yet support Netscape plugins; PLATFORM(WX) guard is misused in this context as there could be other ports without Netscape plugin support. 

I would suggest to consistently use !ENABLE(NETSCAPE_PLUGIN_API) instead of PLATFORM(WX) in the plugin code. THis will make the code easier to read and will resolve some of the build problems when Netscape plugins are not supported or turned off.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>157546</commentid>
    <comment_count>1</comment_count>
      <attachid>41810</attachid>
    <who name="Laszlo Gombos">laszlo.gombos</who>
    <bug_when>2009-10-24 20:58:35 -0700</bug_when>
    <thetext>Created attachment 41810
proposed patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>157586</commentid>
    <comment_count>2</comment_count>
    <who name="Kevin Ollivier">kevino</who>
    <bug_when>2009-10-25 08:33:19 -0700</bug_when>
    <thetext>I&apos;d prefer not to do this because we intend to support plugins in the not-too-distant future (i.e. I intend to devote some serious time to it in the next couple months and actually have some code in a git branch as a start on it), and in the meantime, it&apos;s convenient that we get notified of any breakages as they happen rather than trying to figure out why some change doesn&apos;t work with the wx port 3-4 months after the fact.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>157589</commentid>
    <comment_count>3</comment_count>
    <who name="Laszlo Gombos">laszlo.gombos</who>
    <bug_when>2009-10-25 08:56:44 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; I&apos;d prefer not to do this because we intend to support plugins in the
&gt; not-too-distant future (i.e. I intend to devote some serious time to it in the
&gt; next couple months and actually have some code in a git branch as a start on
&gt; it), and in the meantime, it&apos;s convenient that we get notified of any breakages
&gt; as they happen rather than trying to figure out why some change doesn&apos;t work
&gt; with the wx port 3-4 months after the fact.

Ollivier, I would say this change will help to turn on plugin support for wx port. In the meantime wx port can set ENABLE_NETSCAPE_PLUGIN_API to 0 (as other ports, like the QtWebKit Symbian port used to). 

I missed the fact that wx port did not already set ENABLE_NETSCAPE_PLUGIN_API to 0. Do you have a preference where to set ENABLE_NETSCAPE_PLUGIN_API to 0 for wx port (bkl files or Platform.h or some other pace) ? Thanks. Laszlo</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>157595</commentid>
    <comment_count>4</comment_count>
    <who name="Kevin Ollivier">kevino</who>
    <bug_when>2009-10-25 10:18:16 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; (In reply to comment #2)
&gt; &gt; I&apos;d prefer not to do this because we intend to support plugins in the
&gt; &gt; not-too-distant future (i.e. I intend to devote some serious time to it in the
&gt; &gt; next couple months and actually have some code in a git branch as a start on
&gt; &gt; it), and in the meantime, it&apos;s convenient that we get notified of any breakages
&gt; &gt; as they happen rather than trying to figure out why some change doesn&apos;t work
&gt; &gt; with the wx port 3-4 months after the fact.
&gt; 
&gt; Ollivier, I would say this change will help to turn on plugin support for wx
&gt; port. 

How? I don&apos;t really understand the logic behind this change.

&gt; In the meantime wx port can set ENABLE_NETSCAPE_PLUGIN_API to 0 (as other
&gt; ports, like the QtWebKit Symbian port used to). 
&gt;
&gt; I missed the fact that wx port did not already set ENABLE_NETSCAPE_PLUGIN_API
&gt; to 0. Do you have a preference where to set ENABLE_NETSCAPE_PLUGIN_API to 0 for
&gt; wx port (bkl files or Platform.h or some other pace) ? Thanks. Laszlo

It is intentionally not set. Maybe you are not clear on this - I *want* ENABLE_NETSCAPE_PLUGIN_API set to 1, not 0. The platform APIs are not yet implemented, but they will be, and in the meantime, the stubbed implementation compiles just fine. What is wrong with that?

Could you explain what problem you&apos;re trying to address? Does wx&apos;s ability to compile with ENABLE_NETSCAPE_PLUGIN_API support on cause problems for you?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>157627</commentid>
    <comment_count>5</comment_count>
    <who name="Laszlo Gombos">laszlo.gombos</who>
    <bug_when>2009-10-25 15:32:13 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; (In reply to comment #3)
&gt; &gt; (In reply to comment #2)
&gt; &gt; &gt; I&apos;d prefer not to do this because we intend to support plugins in the
&gt; &gt; &gt; not-too-distant future (i.e. I intend to devote some serious time to it in the
&gt; &gt; &gt; next couple months and actually have some code in a git branch as a start on
&gt; &gt; &gt; it), and in the meantime, it&apos;s convenient that we get notified of any breakages
&gt; &gt; &gt; as they happen rather than trying to figure out why some change doesn&apos;t work
&gt; &gt; &gt; with the wx port 3-4 months after the fact.
&gt; &gt; 
&gt; &gt; Ollivier, I would say this change will help to turn on plugin support for wx
&gt; &gt; port. 
&gt; 
&gt; How? I don&apos;t really understand the logic behind this change.
&gt; 
&gt; &gt; In the meantime wx port can set ENABLE_NETSCAPE_PLUGIN_API to 0 (as other
&gt; &gt; ports, like the QtWebKit Symbian port used to). 
&gt; &gt;
&gt; &gt; I missed the fact that wx port did not already set ENABLE_NETSCAPE_PLUGIN_API
&gt; &gt; to 0. Do you have a preference where to set ENABLE_NETSCAPE_PLUGIN_API to 0 for
&gt; &gt; wx port (bkl files or Platform.h or some other pace) ? Thanks. Laszlo
&gt; 
&gt; It is intentionally not set. Maybe you are not clear on this - I *want*
&gt; ENABLE_NETSCAPE_PLUGIN_API set to 1, not 0. The platform APIs are not yet
&gt; implemented, but they will be, and in the meantime, the stubbed implementation
&gt; compiles just fine. What is wrong with that?
&gt; 
&gt; Could you explain what problem you&apos;re trying to address? Does wx&apos;s ability to
&gt; compile with ENABLE_NETSCAPE_PLUGIN_API support on cause problems for you?

You&apos;re right, I though Netscape plugin support is turned off for wx port. 

My particular problem was turning off Netscape plugin support for WIN_OS. I changed the bug title to say just that and will change the patch to address just that particular problem; and will not change the PLATFORM(WX) guards. 

Thanks for helping fixing my patch. Laszlo</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>157629</commentid>
    <comment_count>6</comment_count>
    <who name="Laszlo Gombos">laszlo.gombos</who>
    <bug_when>2009-10-25 15:45:19 -0700</bug_when>
    <thetext>After addressing only the WIN_OS specific problem the patch become trivial build fix. Committed as http://trac.webkit.org/changeset/50047. Closing the bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>41810</attachid>
            <date>2009-10-24 20:58:35 -0700</date>
            <delta_ts>2009-10-25 15:36:16 -0700</delta_ts>
            <desc>proposed patch</desc>
            <filename>30753.patch</filename>
            <type>text/plain</type>
            <size>4423</size>
            <attacher name="Laszlo Gombos">laszlo.gombos</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvQ2hhbmdlTG9nCj09PT09PT09PT09PT09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UlOVFNUUlVDVCopOwpAQCAtMjk2LDcgKzI5
Niw3IEBAIG5hbWVzcGFjZSBXZWJDb3JlIHsKICAgICAgICAgYm9vbCBtX25lZWRzWEVtYmVkOwog
I2VuZGlmCiAKLSNpZiBQTEFURk9STShXSU5fT1MpICYmICFQTEFURk9STShXWCkgJiYgRU5BQkxF
KE5FVFNDQVBFX1BMVUdJTl9BUEkpCisjaWYgUExBVEZPUk0oV0lOX09TKSAmJiBFTkFCTEUoTkVU
U0NBUEVfUExVR0lOX0FQSSkKICAgICAgICAgT3duUHRyPFBsdWdpbk1lc3NhZ2VUaHJvdHRsZXJX
aW4+IG1fbWVzc2FnZVRocm90dGxlcjsKICAgICAgICAgV05EUFJPQyBtX3BsdWdpblduZFByb2M7
CiAgICAgICAgIHVuc2lnbmVkIG1fbGFzdE1lc3NhZ2U7Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>