Summary: | Webkit fails to load plugins if the embed tag within the object tag is specified without a mime type. | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Ananta Iyengar <ananta> | ||||||||||||
Component: | Plug-ins | Assignee: | Ananta Iyengar <ananta> | ||||||||||||
Status: | RESOLVED WONTFIX | ||||||||||||||
Severity: | Normal | CC: | ap, hongxu, playmobil | ||||||||||||
Priority: | P2 | ||||||||||||||
Version: | 528+ (Nightly build) | ||||||||||||||
Hardware: | PC | ||||||||||||||
OS: | Windows XP | ||||||||||||||
Attachments: |
|
Description
Ananta Iyengar
2009-05-13 17:26:22 PDT
Created attachment 30304 [details]
Test case for this issue
Created attachment 30305 [details]
Proposed patch for this issue.
Comment on attachment 30305 [details]
Proposed patch for this issue.
Looks good to me. I've re-written the test case as a test case in fast/replaced/ (because there is a resources/test.swf there).
<object type="application/x-oleobject" classid="CLSID:D27CDB6E-AE6D-11CF-96B8-444553540000">
<param name='movie' value='resources/test.swf'></param>
<embed src='resources/test.swf'></embed>
</object>
We really need a better test swf file. This one, although hysterical, isn't really the best simple test case. :)
Looks sane to me. I'll test and land this.
Comment on attachment 30305 [details]
Proposed patch for this issue.
Changing to r-. We need a test case for this. I've failed to make one and am about to get on a plane for vacation for a week. If someone can turn my partial test case into a working test case, then we can land this.
Created attachment 30609 [details]
automated test which almost works
I think we can make this test work w/ a timeout. It would be nice to make it work w/o one though. We need some sort of notification after flash has painted for the first time.
Test flash files can be found in LayoutTests/, find . | grep swf. There is also another one in WebCore/manual-tests/
I will also attach a flash file I have which is a single green square.
Created attachment 30610 [details]
square flash file thanks to Carlos McEvilly
Created attachment 30611 [details]
Perl script carlos used to make the file
Hi, I am Cody and I am also interested in the issue here. Here is some comments of mine. Ananta made a good point that we should respect classid if type is application/x-oleobject. But there seems to be some more cases that this patch does not cover. i.e. when type is not recognizable but classid is valid. We probably should respect the classid under this case too (in fact, there are quite some cases of this on the internet. i'm collecting some of them actually. ). One step further, I am proposing that we always respect classid as long as it is valid, no matter the type is, i.e. looking at the type information only when classid is not available. How do you think of this? Thanks. 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. |