[Webkit-unassigned] [Bug 25332] New: Bare .swf files loaded via plug-in fail to load

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Apr 22 14:06:29 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=25332

           Summary: Bare .swf files loaded via plug-in fail to load
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh
               URL: http://rentzsch.lighthouseapp.com/projects/24342/tickets
                    /75-cant-play-local-content
        OS/Version: Mac OS X 10.5
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: Plug-ins
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: simX_other at mac.com


When loading a bare .swf file in a WebKit window or tab, WebKit creates a
skeleton DOM around the file before loading it.  This skeleton DOM works
correctly when not intercepted by a plug-in.  When it's intercepted by a
ClickToFlash plugin, however, which eventually releases the .swf file to the
Flash plugin after clicking on it, the skeleton DOM ceases to allow the display
of the .swf file.

The source for the latest code of ClickToFlash will demonstrate this problem:
http://github.com/rentzsch/clicktoflash/tree/master .  From what I can tell,
this is not a ClickToFlash problem, because a file with identical HTML will
allow the .swf file to load, but the same exact HTML that's eventually loaded
by WebKit after ClickToFlash causes the .swf file *not* to load.


Steps to Reproduce:

1.  Make sure the ClickToFlash plugin is not installed.

2.  Launch WebKit.

3.  Navigate to http://www.somethingawful.com/flash/shmorky/babby.swf .  Note
that the .swf file loads and displays immediately.

4.  Install the ClickToFlash plugin.

5.  Navigate to http://www.somethingawful.com/flash/shmorky/babby.swf .  Note
that ClickToFlash intercepts the .swf file and displays a ClickToFlash view.

6.  Click on the ClickToFlash view.  Note that ClickToFlash releases the .swf
file to the Adobe Flash plugin, but displays nothing.

7.  Control-click on the Flash view.  Note that the contextual menu says "Movie
not loaded...".

8.  Select [Develop --> Show Web Inspector].  Look at the HTML of the resultant
skeleton DOM that WebKit creates around the .swf file.

9.  Open a new tab.  Navigate to
http://homepage.mac.com/simx/test-ctf-flash.html .  Observe that ClickToFlash
intercepts the .swf file and displays a ClickToFlash view.

10.  Click on the ClickToFlash view.  Note that ClickToFlash releases the .swf
file to the Flash plugin, and this time, it displays *correctly*.

11.  Select [Develop --> Show Web Inspector].  Look at the HTML of the file. 
Note that this HTML is *identical* to the HTML observed in step 8, but with
different results!  The .swf file plays correctly when linked to from this HTML
page, but when WebKit constructs the DOM after ClickToFlash releases the .swf
file, WebKit refuses to play it.


Expected Results: I expect identical resultant HTML to result in identical
display of the contents.


Actual Results: Identical HTML coming from different sources unexpectedly has
different results.  If the HTML is from an HTML file, .swf files play fine.  If
the same, identical HTML is constructed by WebKit when loading a bare .swf file
after ClickToFlash interception, WebKit refuses to play the .swf file.


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list