Hi, WebCore used to recognize (and allow rendering) MHTML elements as files with mimetype message/rfc822, but that changed in May with the patch for bug 116442[2], which replaced the expected mimetype with application/x-mimearchive.
However, you need to have a version of shared-mime-info that it's recent enough to contain the change that matches MHTML files with this application/x-mimearchive mimetype (see [3]), which is the 1.1 release I believe. So, I would check the version of shared-mime-info. It should work fine if it's recent enough. Hope this helps, Mario [1] http://trac.webkit.org/changeset/150418 [2] https://bugs.webkit.org/show_bug.cgi?id=116442 [3] http://cgit.freedesktop.org/xdg/shared-mime-info/commit/?id=5dc7a385dfde27ba abbe7384e69605c48adbf1e4 > -----Original Message----- > From: [email protected] [mailto:webkit-gtk- > [email protected]] On Behalf Of Niranjan Rao > Sent: 23 January 2014 21:12 > To: [email protected] > Subject: [webkit-gtk] How to view file saved by > webkit_web_view_save_to_file > > I have saved file using webkit_web_view_save_to_file. Mode is set to > WEBKIT_SAVE_MODE_MHTML. I would like to see same file in web view > again. > > What do I need to do to see this file in web view? Both MiniBrowser and > GtkLauncher did not like url file:///tmp/example.mht. File looks proper > since chrome is able to open it and show me the contents. When passed > same url in my code, it seems to be treating as text file. > > Suspecting it's content type issue, but don't know how to get around > it. > > Regards, > > Niranjan > _______________________________________________ > webkit-gtk mailing list > [email protected] > https://lists.webkit.org/mailman/listinfo/webkit-gtk _______________________________________________ webkit-gtk mailing list [email protected] https://lists.webkit.org/mailman/listinfo/webkit-gtk
