<?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>44850</bug_id>
          
          <creation_ts>2010-08-29 19:54:36 -0700</creation_ts>
          <short_desc>swf files are downloaded when flash is disabled on www.grantgalitz.org</short_desc>
          <delta_ts>2022-07-01 11:36:17 -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>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc>http://www.grantgalitz.org/index.php</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>chromium</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>aestes</cc>
    
    <cc>ap</cc>
    
    <cc>bauerb</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>271268</commentid>
    <comment_count>0</comment_count>
    <who name="">chromium</who>
    <bug_when>2010-08-29 19:54:36 -0700</bug_when>
    <thetext>Go to any page with flash with a Chromium build that pulls in Webkit 66156, ie any build after Chromium-57724, and when flash is disabled, Chromium will automatically download the swf file.  I first found this bug on Chromium for FreeBSD 7.0.509-57790 and confirmed on the Win XP Chromium snapshots up to 57726.  Chromium 57723 doesn&apos;t have the bug, as it is before the Webkit roll at 57724.  I then compiled Chromium 57724 with a handful of Webkit commits between 66141 and 66191 and narrowed it down to 66156 (as 66155 doesn&apos;t show the bug, while 66156 does).  I was unable to confirm with the Webkit nightlies as the last 5-10 Webkit nightlies crash on Windows 7 and XP after the home page is loaded.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>271275</commentid>
    <comment_count>1</comment_count>
    <who name="">chromium</who>
    <bug_when>2010-08-29 20:31:16 -0700</bug_when>
    <thetext>Someone else has confirmed this bug on Chromium for Windows 7, but he notes that it&apos;s not reproducible on all flash sites.  I notice now that I only had the problem on sites with youtube videos embedded, so perhaps it&apos;s an incompatibility between WebCore trunk and the youtube embedded flash player.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>271279</commentid>
    <comment_count>2</comment_count>
    <who name="Andy Estes">aestes</who>
    <bug_when>2010-08-29 20:41:29 -0700</bug_when>
    <thetext>I can reproduce this in a WebKit nightly build on the Mac. Here is the snippet the site uses to embed the flash video:

&lt;object width=&quot;425&quot; height=&quot;350&quot;&gt;
    &lt;param name=&quot;movie&quot; value=&quot;http://www.youtube.com/v/6SDf5_Thqsk&quot;&gt;&lt;/param&gt;
    &lt;param name=&quot;wmode&quot; value=&quot;transparent&quot;&gt;&lt;/param&gt;
    &lt;embed src=&quot;http://www.youtube.com/v/6SDf5_Thqsk&quot; type=&quot;application/x-shockwave-flash&quot; wmode=&quot;transparent&quot; width=&quot;425&quot; height=&quot;350&quot;&gt;&lt;/embed&gt;
&lt;/object&gt;

It probably has to do with there being no mime type specified on the &lt;object&gt;. The same thing happens in builds prior to r66156 if the type @attr is removed from the &lt;embed&gt;. When flash is enabled, it looks like the mime type is determined from the Content-Type header for the resource and the right plug-in is loaded, but I guess when the plug-in is disabled and no type is explicitly specified, WebKit doesn&apos;t know what to do and just downloads the file.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>274686</commentid>
    <comment_count>3</comment_count>
      <attachid>66654</attachid>
    <who name="Bernhard Bauer">bauerb</who>
    <bug_when>2010-09-06 10:13:46 -0700</bug_when>
    <thetext>Created attachment 66654
Return ObjectContentNone for an empty &lt;object&gt; MIME type

If we return ObjectContentNone when the MIME type is empty, we don&apos;t start a URL request, so we don&apos;t end up downloading the file if we can&apos;t handle the MIME type.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>274851</commentid>
    <comment_count>4</comment_count>
    <who name="Andy Estes">aestes</who>
    <bug_when>2010-09-06 23:08:23 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; Created an attachment (id=66654) [details]
&gt; Return ObjectContentNone for an empty &lt;object&gt; MIME type
&gt; 
&gt; If we return ObjectContentNone when the MIME type is empty, we don&apos;t start a URL request, so we don&apos;t end up downloading the file if we can&apos;t handle the MIME type.

It looks like this patch only fixes the issue for the chromium port. I verified this happens in Safari on the Mac, so it would be nice to fix this for all platforms.

Also, it seems like this patch would break the ability to use the object element to load resources in a subframe. Since it might not be possible to determine a resource&apos;s MIME type a priori (e.g. type @attr or filename extension), our current behavior is to load the resource in a subframe and determine the type from the HTTP Content-Type header. Doesn&apos;t this change that behavior?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>275584</commentid>
    <comment_count>5</comment_count>
    <who name="Andy Estes">aestes</who>
    <bug_when>2010-09-07 20:28:28 -0700</bug_when>
    <thetext>The patch posted to https://bugs.webkit.org/show_bug.cgi?id=45364 appears to fix this issue, at least in the case of youtube&apos;s embedded player.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>277850</commentid>
    <comment_count>6</comment_count>
    <who name="">chromium</who>
    <bug_when>2010-09-12 02:12:04 -0700</bug_when>
    <thetext>While this appears to fix the problem in the latest Webkit nightly for Win XP, I updated to Chromium 7.0.522-59192 on FreeBSD, that uses Webkit commit 67178, and the problem is still there.  I confirmed with the 59192 Chromium build for Win XP that Chromium still has this problem, looks like there&apos;s still some interaction with Chromium-specific source that causes this problem to persist.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>277913</commentid>
    <comment_count>7</comment_count>
    <who name="Andy Estes">aestes</who>
    <bug_when>2010-09-12 16:29:26 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; While this appears to fix the problem in the latest Webkit nightly for Win XP, I updated to Chromium 7.0.522-59192 on FreeBSD, that uses Webkit commit 67178, and the problem is still there.  I confirmed with the 59192 Chromium build for Win XP that Chromium still has this problem, looks like there&apos;s still some interaction with Chromium-specific source that causes this problem to persist.

Chromium didn&apos;t merge this change due to a performance regression. See &lt;https://bugs.webkit.org/show_bug.cgi?id=45524&gt;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>285718</commentid>
    <comment_count>8</comment_count>
    <who name="">chromium</who>
    <bug_when>2010-09-27 14:04:51 -0700</bug_when>
    <thetext>This bug appears to be fixed in WebKit trunk with the original reason.tv url, but there are still other sites where the bug persists.  For example, the grantgalitz.org site linked above, which also uses the youtube embedded player.  I ran into the problem with Chromium for FreeBSD using WebKit commit 68248 and confirmed with the last WebKit nightly for Win XP, that uses commit 67637.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>285725</commentid>
    <comment_count>9</comment_count>
    <who name="">chromium</who>
    <bug_when>2010-09-27 14:06:44 -0700</bug_when>
    <thetext>I don&apos;t know how to add a new url to the list of URLs above, so here&apos;s the URL:

http://www.grantgalitz.org/index.php</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>292359</commentid>
    <comment_count>10</comment_count>
      <attachid>66654</attachid>
    <who name="Adam Barth">abarth</who>
    <bug_when>2010-10-10 12:44:47 -0700</bug_when>
    <thetext>Comment on attachment 66654
Return ObjectContentNone for an empty &lt;object&gt; MIME type

We need a test.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>293166</commentid>
    <comment_count>11</comment_count>
      <attachid>70570</attachid>
    <who name="Andy Estes">aestes</who>
    <bug_when>2010-10-12 16:13:32 -0700</bug_when>
    <thetext>Created attachment 70570
Test Case</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>293170</commentid>
    <comment_count>12</comment_count>
    <who name="Andy Estes">aestes</who>
    <bug_when>2010-10-12 16:20:21 -0700</bug_when>
    <thetext>(In reply to comment #11)
&gt; Created an attachment (id=70570) [details]
&gt; Test Ccase

The embed in the test case has no type attribute, so we load the resource in a nested browsing context, which triggers a download since no plug-in exists that can handle the file type. I&apos;m not sure if embeds should be able to load subframes like objects can. The spec only mentions nested browsing contexts in relation to the object element.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>294967</commentid>
    <comment_count>13</comment_count>
    <who name="Andy Estes">aestes</who>
    <bug_when>2010-10-15 15:39:17 -0700</bug_when>
    <thetext>(In reply to comment #9)
&gt; I don&apos;t know how to add a new url to the list of URLs above, so here&apos;s the URL:
&gt; 
&gt; http://www.grantgalitz.org/index.php

It&apos;s worth noting that, in this case, WebKit&apos;s behavior is not a regression due to any recent changes to object/embed behavior. While this page does embed a youtube video, it doesn&apos;t actually use the embed markup advertised by youtube, so this isn&apos;t an issue that exists with embedded youtube videos in general.

I&apos;ll change the title to reflect that this issue isn&apos;t a regression.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>294968</commentid>
    <comment_count>14</comment_count>
    <who name="Andy Estes">aestes</who>
    <bug_when>2010-10-15 15:40:20 -0700</bug_when>
    <thetext>(In reply to comment #13)
&gt; (In reply to comment #9)
&gt; &gt; I don&apos;t know how to add a new url to the list of URLs above, so here&apos;s the URL:
&gt; &gt; 
&gt; &gt; http://www.grantgalitz.org/index.php
&gt; 
&gt; It&apos;s worth noting that, in this case, WebKit&apos;s behavior is not a regression due to any recent changes to object/embed behavior. While this page does embed a youtube video, it doesn&apos;t actually use the embed markup advertised by youtube, so this isn&apos;t an issue that exists with embedded youtube videos in general.
&gt; 
&gt; I&apos;ll change the title to reflect that this issue isn&apos;t a regression.

I neglected to mention that I can reproduce this bug in Safari 5.0.2, hence my claim that this isn&apos;t a regression due to recent object/embed changes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>409074</commentid>
    <comment_count>15</comment_count>
    <who name="Andy Estes">aestes</who>
    <bug_when>2011-05-24 11:59:21 -0700</bug_when>
    <thetext>&lt;rdar://problem/9494958&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1880026</commentid>
    <comment_count>16</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2022-07-01 11:36:17 -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>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>66654</attachid>
            <date>2010-09-06 10:13:46 -0700</date>
            <delta_ts>2010-10-10 12:44:47 -0700</delta_ts>
            <desc>Return ObjectContentNone for an empty &lt;object&gt; MIME type</desc>
            <filename>issue44850.patch</filename>
            <type>text/plain</type>
            <size>1109</size>
            <attacher name="Bernhard Bauer">bauerb</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1dlYktpdC9jaHJvbWl1bS9DaGFuZ2VMb2cgYi9XZWJLaXQvY2hyb21pdW0v
Q2hhbmdlTG9nCmluZGV4IGE3MGY0NzMuLjkwZjE0ZDAgMTAwNjQ0Ci0tLSBhL1dlYktpdC9jaHJv
bWl1bS9DaGFuZ2VMb2cKKysrIGIvV2ViS2l0L2Nocm9taXVtL0NoYW5nZUxvZwpAQCAtMSwzICsx
LDEzIEBACisyMDEwLTA5LTA2ICBCZXJuaGFyZCBCYXVlciAgPGJhdWVyYkBjaHJvbWl1bS5vcmc+
CisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZIChPT1BTISkuCisKKyAgICAgICAgUmV0dXJu
IE9iamVjdENvbnRlbnROb25lIGZvciBhbiBlbXB0eSA8b2JqZWN0PiBNSU1FIHR5cGUuCisgICAg
ICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD00NDg1MAorCisgICAg
ICAgICogc3JjL0ZyYW1lTG9hZGVyQ2xpZW50SW1wbC5jcHA6CisgICAgICAgIChXZWJLaXQ6OkZy
YW1lTG9hZGVyQ2xpZW50SW1wbDo6b2JqZWN0Q29udGVudFR5cGUpOgorCiAyMDEwLTA5LTAyICBZ
dXJ5IFNlbWlraGF0c2t5ICA8eXVyeXNAY2hyb21pdW0ub3JnPgogCiAgICAgICAgIFJldmlld2Vk
IGJ5IFBhdmVsIEZlbGRtYW4uCmRpZmYgLS1naXQgYS9XZWJLaXQvY2hyb21pdW0vc3JjL0ZyYW1l
TG9hZGVyQ2xpZW50SW1wbC5jcHAgYi9XZWJLaXQvY2hyb21pdW0vc3JjL0ZyYW1lTG9hZGVyQ2xp
ZW50SW1wbC5jcHAKaW5kZXggNzQxODZiZi4uYWQzMGY4MSAxMDA2NDQKLS0tIGEvV2ViS2l0L2No
cm9taXVtL3NyYy9GcmFtZUxvYWRlckNsaWVudEltcGwuY3BwCisrKyBiL1dlYktpdC9jaHJvbWl1
bS9zcmMvRnJhbWVMb2FkZXJDbGllbnRJbXBsLmNwcApAQCAtMTQ1NCw3ICsxNDU0LDcgQEAgT2Jq
ZWN0Q29udGVudFR5cGUgRnJhbWVMb2FkZXJDbGllbnRJbXBsOjpvYmplY3RDb250ZW50VHlwZSgK
ICAgICAgICAgfQogCiAgICAgICAgIGlmIChtaW1lVHlwZS5pc0VtcHR5KCkpCi0gICAgICAgICAg
ICByZXR1cm4gT2JqZWN0Q29udGVudEZyYW1lOworICAgICAgICAgICAgcmV0dXJuIE9iamVjdENv
bnRlbnROb25lOwogICAgIH0KIAogICAgIGlmIChNSU1FVHlwZVJlZ2lzdHJ5Ojppc1N1cHBvcnRl
ZEltYWdlTUlNRVR5cGUobWltZVR5cGUpKQo=
</data>
<flag name="review"
          id="55727"
          type_id="1"
          status="-"
          setter="abarth"
    />
          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>70570</attachid>
            <date>2010-10-12 16:13:32 -0700</date>
            <delta_ts>2010-10-14 16:29:08 -0700</delta_ts>
            <desc>Test Case</desc>
            <filename>embed-no-type.html</filename>
            <type>text/html</type>
            <size>140</size>
            <attacher name="Andy Estes">aestes</attacher>
            
              <data encoding="base64">PGVtYmVkIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hodG1sIiBzcmM9Imh0dHA6Ly93
d3cueW91dHViZS5jb20vdi9hRjF6c2JpOG15SSZhbXA7aGw9ZW5fVVMmYW1wO2ZzPTEmYW1wOyIg
Y2xhc3M9IndoaXRlaG91c2VfdmlkZW8iPgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>