<?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>87096</bug_id>
          
          <creation_ts>2012-05-22 01:25:46 -0700</creation_ts>
          <short_desc>Use PluginDataNone.cpp always when NETSCAPE_PLUGIN_API is OFF</short_desc>
          <delta_ts>2012-06-04 23:28:26 -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>Unspecified</rep_platform>
          <op_sys>Unspecified</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>
          
          <blocked>88296</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Sudarsana Nagineni (babu)">naginenis</reporter>
          <assigned_to name="Sudarsana Nagineni (babu)">naginenis</assigned_to>
          <cc>aestes</cc>
    
    <cc>andersca</cc>
    
    <cc>cmarcelo</cc>
    
    <cc>kkristof</cc>
    
    <cc>ossy</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>630068</commentid>
    <comment_count>0</comment_count>
    <who name="Sudarsana Nagineni (babu)">naginenis</who>
    <bug_when>2012-05-22 01:25:46 -0700</bug_when>
    <thetext>I&apos;m getting the following build error when PLATFORM_STRATEGIES is ON and NETSCAPE_PLUGIN_API is OFF. The reason for this is PluginDataNone.cpp is included in platform specific build system(e.g. PlatformEfl.cmake) in case of NETSCAPE_PLUGIN_API is OFF. We can fix this by adding an extra check in PluginData.cpp to use empty functions in PluginDataNone.cpp when NETSCAPE_PLUGIN_API is OFF.

^[[B/usr/bin/ld.gold.real: error: CMakeFiles/webcore_efl.dir/plugins/PluginDataNone.cpp.o: multiple definition of &apos;WebCore::PluginData::initPlugins(WebCore::Page const*)&apos;
/usr/bin/ld.gold.real: CMakeFiles/webcore_efl.dir/plugins/PluginData.cpp.o: previous definition here
/usr/bin/ld.gold.real: error: CMakeFiles/webcore_efl.dir/plugins/PluginDataNone.cpp.o: multiple definition of &apos;WebCore::PluginData::refresh()&apos;
/usr/bin/ld.gold.real: CMakeFiles/webcore_efl.dir/plugins/PluginData.cpp.o: previous definition here
collect2: ld returned 1 exit status</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>630205</commentid>
    <comment_count>1</comment_count>
      <attachid>143266</attachid>
    <who name="Sudarsana Nagineni (babu)">naginenis</who>
    <bug_when>2012-05-22 04:04:10 -0700</bug_when>
    <thetext>Created attachment 143266
Patch

Fix build error by adding an extra check in PluginData.cpp</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>630747</commentid>
    <comment_count>2</comment_count>
    <who name="Sudarsana Nagineni (babu)">naginenis</who>
    <bug_when>2012-05-22 14:17:56 -0700</bug_when>
    <thetext>Anders, could you please review this patch?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>631767</commentid>
    <comment_count>3</comment_count>
      <attachid>143266</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-05-23 10:30:45 -0700</bug_when>
    <thetext>Comment on attachment 143266
Patch

Clearing flags on attachment: 143266

Committed r118197: &lt;http://trac.webkit.org/changeset/118197&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>631768</commentid>
    <comment_count>4</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-05-23 10:30:49 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>632457</commentid>
    <comment_count>5</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2012-05-23 23:45:12 -0700</bug_when>
    <thetext>This buildfix broke the Qt minimal build :)

/usr/bin/gold: /ramdisk/qt-linux-release-minimal/build/WebKitBuild/Release/Source/WebCore/release/libWebCore.a(PluginData.o): in function WebCore::PluginData::PluginData(WebCore::Page const*):PluginData.cpp(.text._ZN7WebCore10PluginDataC1EPKNS_4PageE+0x6d): error: undefined reference to &apos;WebCore::PluginData::initPlugins(WebCore::Page const*)&apos;
/usr/bin/gold: /ramdisk/qt-linux-release-minimal/build/WebKitBuild/Release/Source/WebCore/release/libWebCore.a(PluginData.o): in function WebCore::PluginData::PluginData(WebCore::Page const*):PluginData.cpp(.text._ZN7WebCore10PluginDataC2EPKNS_4PageE+0x6d): error: undefined reference to &apos;WebCore::PluginData::initPlugins(WebCore::Page const*)&apos;
collect2: ld returned 1 exit status</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>632474</commentid>
    <comment_count>6</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2012-05-24 00:10:59 -0700</bug_when>
    <thetext>36    initPlugins(page);

--&gt; This call is outside of ifdef guards, but the function is inside ... It isn&apos;t correct.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>632499</commentid>
    <comment_count>7</comment_count>
    <who name="Kristóf Kosztyó">kkristof</who>
    <bug_when>2012-05-24 01:14:00 -0700</bug_when>
    <thetext>Committed r118335: &lt;http://trac.webkit.org/changeset/118335&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>632500</commentid>
    <comment_count>8</comment_count>
    <who name="Kristóf Kosztyó">kkristof</who>
    <bug_when>2012-05-24 01:14:49 -0700</bug_when>
    <thetext>I&apos;ve fixed the Qt minimal build.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>632651</commentid>
    <comment_count>9</comment_count>
    <who name="Sudarsana Nagineni (babu)">naginenis</who>
    <bug_when>2012-05-24 05:26:26 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; 36    initPlugins(page);
&gt; 
&gt; --&gt; This call is outside of ifdef guards, but the function is inside ... It isn&apos;t correct.

Sorry for the trouble. This function is outside ifdefs in PluginDataNone.cpp, but I guess the file is not included in the qt buildsystem when NETSCAPE_PLUGIN_API flag is OFF.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>641200</commentid>
    <comment_count>10</comment_count>
    <who name="Andy Estes">aestes</who>
    <bug_when>2012-06-04 22:48:21 -0700</bug_when>
    <thetext>This turns out to be wrong for the OS X port when we disable NETSCAPE_PLUGIN_API. The Mac port supports non-Netscape plug-ins, so we need to call into PlatformStrategies even if Netscape plug-ins are disabled.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>641207</commentid>
    <comment_count>11</comment_count>
    <who name="Andy Estes">aestes</who>
    <bug_when>2012-06-04 23:21:43 -0700</bug_when>
    <thetext>It looks like PluginDataNone.cpp is no longer included in the EFL build when NETSCAPE_PLUGIN_API is off (as of &lt;http://trac.webkit.org/changeset/119208&gt;), so I&apos;m not sure if this change is still needed. I&apos;m going to have sherrifbot roll this out and see if it breaks any builds.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>641211</commentid>
    <comment_count>12</comment_count>
    <who name="Andy Estes">aestes</who>
    <bug_when>2012-06-04 23:28:26 -0700</bug_when>
    <thetext>I&apos;m going to work on this in https://bugs.webkit.org/show_bug.cgi?id=88296</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>143266</attachid>
            <date>2012-05-22 04:04:10 -0700</date>
            <delta_ts>2012-05-23 10:30:44 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>87096.patch</filename>
            <type>text/plain</type>
            <size>1314</size>
            <attacher name="Sudarsana Nagineni (babu)">naginenis</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1NvdXJjZS9XZWJDb3JlL0NoYW5nZU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