<?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>12778</bug_id>
          
          <creation_ts>2007-02-15 15:14:21 -0800</creation_ts>
          <short_desc>REGRESSION: Nightly won&apos;t load Curl plugin for full page use</short_desc>
          <delta_ts>2007-04-03 21:37:47 -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>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar, Regression</keywords>
          <priority>P1</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="William Bardwell">wbardwel</reporter>
          <assigned_to name="Alexey Proskuryakov">ap</assigned_to>
          <cc>andersca</cc>
    
    <cc>ap</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>23187</commentid>
    <comment_count>0</comment_count>
    <who name="William Bardwell">wbardwel</who>
    <bug_when>2007-02-15 15:14:21 -0800</bug_when>
    <thetext>A Nightly from Feb 14 2007 won&apos;t load my plugin if you browse to a URL that is for a file handled by the plugin.  The plugin is listed in the Installed Plugin-ins page, and I do seem to be able to load flash stuff from a .swf url.

This plugin works in Safari 2.0.4 419.3, and it works if used from an OBJECT tag.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23188</commentid>
    <comment_count>1</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-02-15 15:21:52 -0800</bug_when>
    <thetext>Is this a Netscape plug-in?  If so, does it work in Firefox on the same Mac?

Are there any error/warning messages that appear on the console or in a log file when you try to load a file that uses the plug-in?

What does the Activity window show?
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23093</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2007-02-15 21:59:33 -0800</bug_when>
    <thetext>And, most importantly - is there a way for us to reproduce the problem?

If confirmed, this would be a P1 bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22790</commentid>
    <comment_count>3</comment_count>
    <who name="William Bardwell">wbardwel</who>
    <bug_when>2007-02-17 16:10:22 -0800</bug_when>
    <thetext>You can download a version of my product and go to demos that use it at:
www.curl.com

It works with 419.3 but not with a recent nightly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22573</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2007-02-18 02:48:15 -0800</bug_when>
    <thetext>The problem here is that WebHTMLView claims support for all &quot;text/&quot; MIME types, and +[WebView _viewClass:andRepresentationClass:forMIMEType:] doesn&apos;t even look at plugins if internal support is found.

It&apos;s easy to suggest a number of easy fixes for this, but choosing the correct one may be more tricky.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22741</commentid>
    <comment_count>5</comment_count>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2007-02-19 19:46:37 -0800</bug_when>
    <thetext>What MIME type does this plugin want to use?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22752</commentid>
    <comment_count>6</comment_count>
    <who name="William Bardwell">wbardwel</who>
    <bug_when>2007-02-19 21:56:11 -0800</bug_when>
    <thetext>The key type is &quot;text/vnd.curl&quot; (but it registers some others that are only ever used for plugin detection JavaScript code.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21001</commentid>
    <comment_count>7</comment_count>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2007-02-27 19:33:54 -0800</bug_when>
    <thetext>&lt;rdar://problem/5028153&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16068</commentid>
    <comment_count>8</comment_count>
      <attachid>13911</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2007-03-31 10:22:01 -0700</bug_when>
    <thetext>Created attachment 13911
proposed fix

My diagnosis was wrong - it&apos;s fine for +[WebView _viewClass:andRepresentationClass:forMIMEType:] to return WebHTMLView/WebHTMLRepresentation, as plugins are also handled by these.

The actual problem seems to be in DOMImplementation::createDocument(), which hates plugins (it also mishandles Adobe SVG and any xml MIME types now).

I don&apos;t know how to make a test for this fix.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15972</commentid>
    <comment_count>9</comment_count>
      <attachid>13911</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2007-03-31 17:35:39 -0700</bug_when>
    <thetext>Comment on attachment 13911
proposed fix

Looks good. r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15902</commentid>
    <comment_count>10</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2007-03-31 22:58:59 -0700</bug_when>
    <thetext>Committed revision 20648.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15778</commentid>
    <comment_count>11</comment_count>
    <who name="William Bardwell">wbardwel</who>
    <bug_when>2007-04-03 20:46:56 -0700</bug_when>
    <thetext>This does fix the problem for me.
(To make a test, you need a plugin that tries to take text/&lt;something&gt; and
make sure that it gets loaded if you load a url with that as the mime-type.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15780</commentid>
    <comment_count>12</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2007-04-03 21:37:47 -0700</bug_when>
    <thetext>(In reply to comment #11)
&gt; This does fix the problem for me.

  Great - so, marking as VERIFIED. IIRC, this problem was blocking you from verifying some other plugin issues with TOT (nightly) - could you please check those?

&gt; (To make a test, you need a plugin that tries to take text/&lt;something&gt; and
&gt; make sure that it gets loaded if you load a url with that as the mime-type.)

  Yes, that&apos;s how I tested when making this patch - but this doesn&apos;t translate into automated test easily, because the plugin has to be full page.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>13911</attachid>
            <date>2007-03-31 10:22:01 -0700</date>
            <delta_ts>2007-03-31 17:35:39 -0700</delta_ts>
            <desc>proposed fix</desc>
            <filename>12778r1_patch.txt</filename>
            <type>text/plain</type>
            <size>2703</size>
            <attacher name="Alexey Proskuryakov">ap</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFdlYkNvcmUvQ2hhbmdlTG9n
CShyZXZpc2lvbiAyMDY0MSkKKysrIFdlYkNvcmUvQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBA
IC0xLDMgKzEsMTUgQEAKKzIwMDctMDMtMzEgIEFsZXhleSBQcm9za3VyeWFrb3YgIDxhcEB3ZWJr
aXQub3JnPgorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAg
IGh0dHA6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lkPTEyNzc4CisgICAgICAgIFJF
R1JFU1NJT046IE5pZ2h0bHkgd29uJ3QgbG9hZCBDdXJsIHBsdWdpbiBmb3IgZnVsbCBwYWdlIHVz
ZQorCisgICAgICAgICogZG9tL0RPTUltcGxlbWVudGF0aW9uLmNwcDoKKyAgICAgICAgKFdlYkNv
cmU6OkRPTUltcGxlbWVudGF0aW9uOjpjcmVhdGVEb2N1bWVudCk6IFJlLW9yZGVyIGNhc2VzIHRv
IGdpdmUgbW9yZSBwcmlvcml0eSB0byBwbHVnLWlucy4KKyAgICAgICAgVGhpcyBhbHNvIGZpeGVz
IEFkb2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AgICAgIHJldHVybiBuZXcg
RG9jdW1lbnQodGhpcywgdmlldyk7CiAgICAgaWYgKGlzVGV4dE1JTUVUeXBlKHR5cGUpKQogICAg
ICAgICByZXR1cm4gbmV3IFRleHREb2N1bWVudCh0aGlzLCB2aWV3KTsKLSAgICBpZiAoKHR5cGUg
PT0gImFwcGxpY2F0aW9uL3BkZiIgfHwgdHlwZSA9PSAidGV4dC9wZGYiKSAmJiBQbHVnSW5JbmZv
U3RvcmU6OnN1cHBvcnRzTUlNRVR5cGUodHlwZSkpCi0gICAgICAgIHJldHVybiBuZXcgUGx1Z2lu
RG9jdW1lbnQodGhpcywgdmlldyk7Ci0gICAgaWYgKEltYWdlOjpzdXBwb3J0c1R5cGUodHlwZSkp
Ci0gICAgICAgIHJldHVybiBuZXcgSW1hZ2VEb2N1bWVudCh0aGlzLCB2aWV3KTsKLSAgICBpZiAo
UGx1Z0luSW5mb1N0b3JlOjpzdXBwb3J0c01JTUVUeXBlKHR5cGUpKQotICAgICAgICByZXR1cm4g
bmV3IFBsdWdpbkRvY3VtZW50KHRoaXMsIHZpZXcpOworCiAgICAgcmV0dXJuIG5ldyBIVE1MRG9j
dW1lbnQodGhpcywgdmlldyk7CiB9CiAK
</data>
<flag name="review"
          id="5588"
          type_id="1"
          status="+"
          setter="darin"
    />
          </attachment>
      

    </bug>

</bugzilla>