<?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>27940</bug_id>
          
          <creation_ts>2009-08-03 07:11:36 -0700</creation_ts>
          <short_desc>Build fix if Netscape plugin support is turned off</short_desc>
          <delta_ts>2009-08-03 10:32:51 -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>Platform</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>0</everconfirmed>
          <reporter name="Laszlo Gombos">laszlo.gombos</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>darin</cc>
    
    <cc>kenneth</cc>
    
    <cc>vestbo</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>136626</commentid>
    <comment_count>0</comment_count>
    <who name="Laszlo Gombos">laszlo.gombos</who>
    <bug_when>2009-08-03 07:11:36 -0700</bug_when>
    <thetext>After r46649 and r46697 turning off Netscape plugin support makes the build fail.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>136627</commentid>
    <comment_count>1</comment_count>
      <attachid>33974</attachid>
    <who name="Laszlo Gombos">laszlo.gombos</who>
    <bug_when>2009-08-03 07:27:21 -0700</bug_when>
    <thetext>Created attachment 33974
proposed patch.

PluginView.cpp - Do not call NPN_MemFree if NPAPI is disabled
PluginViewNone.cpp - Add empty stub for platformStart()</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>136658</commentid>
    <comment_count>2</comment_count>
      <attachid>33974</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-08-03 09:30:34 -0700</bug_when>
    <thetext>Comment on attachment 33974
proposed patch.

LGTM.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>136670</commentid>
    <comment_count>3</comment_count>
    <who name="Kenneth Rohde Christiansen">kenneth</who>
    <bug_when>2009-08-03 09:58:11 -0700</bug_when>
    <thetext>The patch contains trailing spaces. I will fix it when I land it</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>136673</commentid>
    <comment_count>4</comment_count>
    <who name="Kenneth Rohde Christiansen">kenneth</who>
    <bug_when>2009-08-03 10:01:26 -0700</bug_when>
    <thetext>Landed in 46719.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>136674</commentid>
    <comment_count>5</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2009-08-03 10:02:39 -0700</bug_when>
    <thetext>Why do the functions in PluginViewNone.cpp have notImplemented() in them? I&apos;d think they could just be empty function. The notImplemented() function is intended to alert the person working on the port that a particular non-implemented stub was hit. But in the case of &quot;none&quot; we don&apos;t ever plan to implement these. They should either be empty, or have ASSERT_NOT_REACHED() in them, or not exist at all, depending on our needs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>136683</commentid>
    <comment_count>6</comment_count>
    <who name="Kenneth Rohde Christiansen">kenneth</who>
    <bug_when>2009-08-03 10:14:20 -0700</bug_when>
    <thetext>I think the reasoning was that ports use PluginViewNone when they still have not added support for plugins and thus, will run into a not implemented. If that is not the purpose of PluginViewNone, this ofcourse should be fixed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>136684</commentid>
    <comment_count>7</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2009-08-03 10:16:27 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; I think the reasoning was that ports use PluginViewNone when they still have
&gt; not added support for plugins and thus, will run into a not implemented. If
&gt; that is not the purpose of PluginViewNone, this of course should be fixed.

OK. That makes sense. On the other hand, I could imagine a port that doesn&apos;t want plug-in support at all.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>136687</commentid>
    <comment_count>8</comment_count>
    <who name="Kenneth Rohde Christiansen">kenneth</who>
    <bug_when>2009-08-03 10:19:09 -0700</bug_when>
    <thetext>In that case I believe they should be able to disable the plugin support via the settings API.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>136690</commentid>
    <comment_count>9</comment_count>
    <who name="Laszlo Gombos">laszlo.gombos</who>
    <bug_when>2009-08-03 10:21:54 -0700</bug_when>
    <thetext>(In reply to comment #7)
&gt; (In reply to comment #6)
&gt; &gt; I think the reasoning was that ports use PluginViewNone when they still have
&gt; &gt; not added support for plugins and thus, will run into a not implemented. If
&gt; &gt; that is not the purpose of PluginViewNone, this of course should be fixed.
&gt; 
&gt; OK. That makes sense. On the other hand, I could imagine a port that doesn&apos;t
&gt; want plug-in support at all.

I think Darin has a valid point. i just used notImplemented() to stay
consistent with the rest of the file.

PluginViewNone.cpp was initially developed for the wx port only and I proposed
a patch to promote it to all ports to enable turning off NPAPI support.

I think notImplemented should go. I will create a patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>136698</commentid>
    <comment_count>10</comment_count>
    <who name="Kenneth Rohde Christiansen">kenneth</who>
    <bug_when>2009-08-03 10:32:51 -0700</bug_when>
    <thetext>If that is the case, I agree with you :-)

I talked with Kevin Ollivier on irc and he agrees with you Laszlo</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>33974</attachid>
            <date>2009-08-03 07:27:21 -0700</date>
            <delta_ts>2009-08-03 09:30:34 -0700</delta_ts>
            <desc>proposed patch.</desc>
            <filename>patch_27940.txt</filename>
            <type>text/plain</type>
            <size>1707</size>
            <attacher name="Laszlo Gombos">laszlo.gombos</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFdlYkNvcmUvQ2hhbmdlTG9n
CShyZXZpc2lvbiA0NjcxNikKKysrIFdlYkNvcmUvQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBA
IC0xLDMgKzEsMTYgQEAKKzIwMDktMDgtMDMgIExhc3psbyBHb21ib3MgIDxsYXN6bG8uMS5nb21i
b3NAbm9raWEuY29tPgorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisg
ICAgICAgIEJ1aWxkIGZpeCBpZiBOZXRzY2FwZSBwbHVnaW4gc3VwcG9ydCBpcyB0dXJuZWQgb2Zm
CisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0yNzk0MAor
CisgICAgICAgICogcGx1Z2lucy9QbHVnaW5WaWV3LmNwcDoKKyAgICAgICAgKFdlYkNvcmU6OlBs
dWdpblZpZXc6OnN0b3ApOiBEbyBub3QgY2FsbCBOUE5fTWVtRnJlZSBpZiBOUEFQSSBpcworICAg
ICAgICBkaXNhYmxlZAorICAgICAgICAqIHBsdWdpbnMvUGx1Z2luVmlld05vbmUuY3BwOiAKKyAg
ICAgICAgKFdlYkNvcmU6OlBsdWdpblZpZXc6OnBsYXRmb3JtU3RhcnQpOiBFbXB0eSBzdHViLgor
CiAyMDA5LTA4LTAyICBBZGFtIEJhcnRoICA8YWJhcnRoQHdlYmtpdC5vcmc+CiAgICAgICAgIFJl
dmlld2VkIGJ5IERhcmluIEFkbGVyLgogCkluZGV4OiBXZWJDb3JlL3BsdWdpbnMvUGx1Z2luVmll
dy5jcHAKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PQotLS0gV2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xhdGZvcm1TdGFydCgpCit7
IAorICAgIG5vdEltcGxlbWVudGVkKCk7Cit9CisKIH0gLy8gbmFtZXNwYWNlIFdlYkNvcmUK
</data>
<flag name="review"
          id="18146"
          type_id="1"
          status="+"
          setter="eric"
    />
          </attachment>
      

    </bug>

</bugzilla>