<?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>63826</bug_id>
          
          <creation_ts>2011-07-01 12:11:32 -0700</creation_ts>
          <short_desc>TIFF plugins sometimes don&apos;t work</short_desc>
          <delta_ts>2022-07-01 11:36:05 -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>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter>js2578</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>aestes</cc>
    
    <cc>andersca</cc>
    
    <cc>ap</cc>
    
    <cc>aroben</cc>
    
    <cc>eric</cc>
    
    <cc>progame+wk</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>431323</commentid>
    <comment_count>0</comment_count>
    <who name="">js2578</who>
    <bug_when>2011-07-01 12:11:32 -0700</bug_when>
    <thetext>NPAPI plugins for TIFF documents don&apos;t work in &lt;embed&gt; tags if the attribute &quot;type=image/tiff&quot; is used. The region of the web page where the plugin should appear is blank.

Exception: A TIFF plugin will always work if its &quot;ProductName&quot; contains the substring &quot;quicktime&quot;. (&quot;ProductName&quot; is an attribute in the VERSION resource of the plugin&apos;s DLL file.)

Tested with WebKit-r89815 (2011-06-27).

I note that according to bug 20244, there is (or at least was) special logic regarding TIFF documents.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>432242</commentid>
    <comment_count>1</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2011-07-05 06:14:45 -0700</bug_when>
    <thetext>Do you have a particular plugin we can test with?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>432263</commentid>
    <comment_count>2</comment_count>
    <who name="">js2578</who>
    <bug_when>2011-07-05 07:03:31 -0700</bug_when>
    <thetext>Ideally, you&apos;d use a test plugin that you can recompile yourself, so you can change the ProductName. I don&apos;t have such a thing prepared. If you just need to reproduce the main problem, try the plugin at http://www.alternatiff.com/.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>446911</commentid>
    <comment_count>3</comment_count>
    <who name="Yair Yogev">progame+wk</who>
    <bug_when>2011-08-04 17:16:34 -0700</bug_when>
    <thetext>was it always that way (since you first tried to port alternatiff to work with webkit/chrome) or is that some kind of a regression we can try tracking?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>447327</commentid>
    <comment_count>4</comment_count>
    <who name="">js2578</who>
    <bug_when>2011-08-05 12:09:40 -0700</bug_when>
    <thetext>TIFF plugins worked correctly in Chrome until about March 2010. For a while, we worked around it by spoofing QuickTime. That ultimately caused too many problems, and we were under the (apparently mistaken) impression that the bug had been fixed, so we stopped doing that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>447432</commentid>
    <comment_count>5</comment_count>
    <who name="Yair Yogev">progame+wk</who>
    <bug_when>2011-08-05 14:48:42 -0700</bug_when>
    <thetext>According to my tests this regression happened during March 2011 (not 2010)

Works:
Chromium 12.0.718.0 (Developer Build 79660) WebKit 534.27 (trunk@81970) V8 3.2.5

FAIL:
Chromium 12.0.719.0 (Developer Build 79668) WebKit 534.27 (trunk@82221) V8 3.2.5

this is the relevant chrome changelog which leads me to assume this is indeed a WebKit regression
http://build.chromium.org/f/chromium/perf/dashboard/ui/changelog.html?url=%2Ftrunk%2Fsrc&amp;range=79660%3A79668&amp;mode=html

and this is the relevant WebKit changelog:
http://trac.webkit.org/log/?rev=82221&amp;stop_rev=81970&amp;verbose=on

i couldn&apos;t spot any immediate suspects in that changelog though :/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>447471</commentid>
    <comment_count>6</comment_count>
    <who name="Yair Yogev">progame+wk</who>
    <bug_when>2011-08-05 16:40:36 -0700</bug_when>
    <thetext>correction for the WebKit changelog (only showed the first 100):
http://trac.webkit.org/log/?action=stop_on_copy&amp;mode=stop_on_copy&amp;rev=82221&amp;stop_rev=81970&amp;limit=300&amp;verbose=on

there are some possible suspects in this changelog, 

the most likely is http://trac.webkit.org/changeset/82001/

Andy Estes, can you take a look?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>447477</commentid>
    <comment_count>7</comment_count>
    <who name="Yair Yogev">progame+wk</who>
    <bug_when>2011-08-05 16:48:35 -0700</bug_when>
    <thetext>btw the test case i used for this is 
http://www.alternatiff.com/testpage.html with AlternaTIFF plugin (see http://www.alternatiff.com/ ) in Chromium under Windows.

test 1 works there but test2 and test3 does not (apparently after r82001)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>447483</commentid>
    <comment_count>8</comment_count>
    <who name="Andy Estes">aestes</who>
    <bug_when>2011-08-05 17:09:40 -0700</bug_when>
    <thetext>I&apos;ll take a look at this. A few random thoughts that come to mind:

1) r82001 changed our logic for &lt;embed&gt; to prefer a plug-in over native rendering for image types. We want to give plug-ins a chance to render an image before we render it natively.

2) QuickTime does support image/tiff, but if another plug-in also registers support for this MIME type, we will use this plug-in instead.

Given these two facts, it is possible that before r82001 the &lt;embed&gt; was being rendered natively (or by QuickTime) and after r82001 it is being rendered by your plug-in. Have you ruled out a bug in the plug-in being responsible for the intermittent failure?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>447484</commentid>
    <comment_count>9</comment_count>
    <who name="Andy Estes">aestes</who>
    <bug_when>2011-08-05 17:13:56 -0700</bug_when>
    <thetext>Do you see different behavior if you embed your plugin using an &lt;object&gt; instead of an &lt;embed&gt;?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>447577</commentid>
    <comment_count>10</comment_count>
    <who name="Yair Yogev">progame+wk</who>
    <bug_when>2011-08-05 23:04:45 -0700</bug_when>
    <thetext>Thanks for looking into this.
I can answer #8 partially: When AlternaTiff renders a Tif file it has a toolbar which gives it a distinctive look, for that reason i can tell for sure that in my tests it was  AlternaTiff loading it. Also, AFAIK Chromium can&apos;t render tiff files natively and i disabled QuickTime in my tests (because it&apos;s quicker than look for the place to set it not to open Tif files specifically, so AlternaTiff can kick in. I&apos;m not sure why QuickTime has precedence though).
In my tests i didn&apos;t observe an intermittent failure- it was consistently failing test2 &amp; 3 and passing test1 in http://www.alternatiff.com/testpage.html after r82001.

js2578 will be able to give more insight.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>447779</commentid>
    <comment_count>11</comment_count>
    <who name="">js2578</who>
    <bug_when>2011-08-07 17:03:59 -0700</bug_when>
    <thetext>If the March 2010 issue was separate from the March 2011 issue, it&apos;s possible I&apos;ve given you some misinformation. If so, I apologize. I&apos;ll do some more testing. I don&apos;t know what all factors the issue depends on, but it probably doesn&apos;t depend on the actual plugin executable code, since Chrome doesn&apos;t seem to attempt to run the plugin at all.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>448108</commentid>
    <comment_count>12</comment_count>
    <who name="">js2578</who>
    <bug_when>2011-08-08 11:02:19 -0700</bug_when>
    <thetext>I think my report was okay, though I&apos;d add that I&apos;m assuming you don&apos;t have the QuickTime TIFF plugin installed. Also, Webkit and Chrome behave quite differently from each other in some cases.

Here are some test results of different methods of displaying an image, with a plugin whose ProductName does not contain the string &quot;quicktime&quot;.

=== WebKit r92573 (8/Aug/2011)
 &lt;embed type=&quot;image/tiff&quot;&gt;: Blank
 &lt;embed&gt; without &quot;type&quot; param: Uses plugin
 &lt;object type=&quot;image/tiff&quot;&gt;: Displays &quot;Missing Plug-in&quot;
 &lt;object&gt; without type: Uses internal viewer
 &lt;img&gt;: Uses internal viewer
 &lt;iframe&gt;: Uses internal viewer
 View directly: Uses internal viewer

=== Chrome 13.0.782.107
 &lt;embed type=&quot;image/tiff&quot;&gt;: Blank
 &lt;embed&gt; without &quot;type&quot; param: Uses plugin
 &lt;object type=&quot;image/tiff&quot;&gt;: Uses plugin
 &lt;object&gt; without type: Uses plugin
 &lt;img&gt;: &quot;Broken image&quot; icon
 &lt;iframe&gt;: Displays a dark gray rectangle
 View directly: Displays a dark gray rectangle</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>448125</commentid>
    <comment_count>13</comment_count>
    <who name="Yair Yogev">progame+wk</who>
    <bug_when>2011-08-08 11:13:13 -0700</bug_when>
    <thetext>well you tried an &quot;old&quot; version of chrome. the latest chromium build from 
http://commondatastorage.googleapis.com/chromium-browser-continuous/index.html?path=Win/&amp;sort=desc
might bring different (and more accurate) results</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>475089</commentid>
    <comment_count>14</comment_count>
    <who name="Yair Yogev">progame+wk</who>
    <bug_when>2011-09-28 17:01:59 -0700</bug_when>
    <thetext>Andy, if there&apos;s other stuff you want us to test in this matter please let us know.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>475106</commentid>
    <comment_count>15</comment_count>
    <who name="Andy Estes">aestes</who>
    <bug_when>2011-09-28 17:20:06 -0700</bug_when>
    <thetext>&lt;rdar://problem/10204779&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1879999</commentid>
    <comment_count>16</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2022-07-01 11:36:05 -0700</bug_when>
    <thetext>Mass closing plug-in bugs, as plug-in support has been removed from WebKit.

Please comment and/or reopen if this still affects WebKit in some way.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>