Bug 9389 - Cannot handle multipart/mixed documents
Summary: Cannot handle multipart/mixed documents
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Page Loading (show other bugs)
Version: 420+
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Nobody
URL: http://web.nickshanks.com/browsers/sa...
Keywords: InRadar
: 16276 (view as bug list)
Depends on: 9396
Blocks:
  Show dependency treegraph
 
Reported: 2006-06-10 07:56 PDT by Nicholas Shanks
Modified: 2010-08-16 10:26 PDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicholas Shanks 2006-06-10 07:56:18 PDT
Safari seems unable to handle multi-part documents, instead downloading them to the desktop. For an example, see the URL above. You should see a picture—it works fine in Apple Mail, this should be part of WebKit, not application-specific.
Comment 1 David Kilzer (:ddkilzer) 2006-06-10 08:35:57 PDT
Do any web browsers currently support multipart/mixed content?  This would allow servers to send content and images in one stream.  It would be interesting for efficiency purposes (only needed one socket connection per page), although images would load slower overall on a web page structured this way.

Safari does support multipart/x-mixed-replace, which was created by Netscape.

http://wp.netscape.com/assist/net_sites/pushpull.html

It's used for Bugzilla's search page and by most travel web sites when searching for airplane flights.
Comment 2 Nicholas Shanks 2006-06-10 09:55:55 PDT
Opera 9.0 p2
Displays a blank page with the correct document title ("A picture").

Firefox 1.5.0.4
Displays "multipart (JPEG Image)" in the title bar, and the URL of the page as the document body. (!)

iCab 3.0.2 b382
While loading, the correct title is used, after loading, the URL is displayed in the title bar. A broken image icon is displayed as the document body.
Comment 3 Nicholas Shanks 2006-06-10 10:22:06 PDT
I should commend iCab here actually, it seems to understand the multi-part boundaries as a source view shows, but only fails to associate cid: URLs with the Content-ID header.

This would be very useful for pages that generate dynamic images which shouldn't be cached, webcams for instance could send on one connection a continuous stream of JPEGs with the same ID, or charts fast-moving data without having to use streams of XMLHttpRequests.
Comment 4 David Kilzer (:ddkilzer) 2006-06-12 11:52:50 PDT
This is similar to Bug 7168, which needs multipart/related support to display MHTML web archives produced by MSIE.
Comment 5 Nicholas Shanks 2006-06-12 13:26:28 PDT
What *I* really want this for is sending small (<120 bytes) background images along with the CSS file that specifies them, so as to cut down the number of connections per visitor, and make my log files a little briefer. Since most visitors are on screen media with background-image-supporting UAs, I don't see sending images that are likely to be wanted anyway as a problem. I would have to include Location headers with a file path, so the UA knew where the image came from and so it can be cached and used in other documents. The example at the URL above only uses the Content-ID MIME header, and cannot thus be cached.
Comment 6 David Kilzer (:ddkilzer) 2007-12-18 05:21:07 PST
See also Bug 16276.

Comment 7 Eric Seidel (no email) 2007-12-18 14:48:47 PST
I think this is mostly a CFNetwork bug and thus should be moved to radar and closed in bugzilla.
Comment 8 Eric Seidel (no email) 2007-12-18 14:49:00 PST
*** Bug 16276 has been marked as a duplicate of this bug. ***
Comment 9 David Kilzer (:ddkilzer) 2007-12-18 15:41:58 PST
<rdar://problem/5654367>