Bug 24547 - src of embed elements are downloaded when no plugin exists to handle them
Summary: src of embed elements are downloaded when no plugin exists to handle them
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Page Loading (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
URL: http://www.publico.es
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-12 06:36 PDT by Xan Lopez
Modified: 2009-03-12 11:02 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Xan Lopez 2009-03-12 06:36:50 PDT
Go to www.publico.es, 6 download dialogs will be opened with filename "small%20type=". Seems like content sniffing is not worknig totally OK.
Comment 1 Gustavo Noronha (kov) 2009-03-12 08:33:58 PDT
From what I investigated up to now, the problem here is that our frame loader client by default decides to download anything canShowMIMEType says webkit can't handle. So Xan hits this problem because he has no flash plugin installed. Our policy sounds wrong, though. We should probably be ignoring those subresources we don't know how to display, instead of downloading them.
Comment 2 Gustavo Noronha (kov) 2009-03-12 11:02:51 PDT
This is more general than what we first thought; the problem is webcore handles whatever the src attribute of element tags as normal resources, so if there is no plugin available to handle that content type, we end up downloading it. And it looks like downloading whatever is unknown is the right thing to do; at least some sites seem to depend on it (sourceforge, for instance).

I asked around in #webkit and confirmed same happens to Safari if you uninstall the flash plugin and go to that page, so this looks like an issue to be fixed in WebCore itself.

It seems like Firefox has a default plugin that catches all content types built in, so it is able to not cause those download requests to happen, and at the same time present a nice dialog offering to download the missing plugin.