MHTML doesn't support saving frames/objects with non-image/html content (e.g. multimedia) |
||||
Issue descriptionRepro: 1. Navigate to a webpage containing something like: <object data="/cross-site/bar.com/media/bigbuck.webm">err_no_object_data</object> 2. Save the webpage as MHTML. EXPECTED RESULT: The video is available for offline viewing. ACTUAL RESULT: The video is unavailable (I would expect similar results for audio, plugins, xml documents). The generated MHTML looks like this (notice the self-referential/infinite-loop-inducing url): ------MultipartBoundary--Haf6y0Aoye8l1fk1RGpgDmYMd6Tnfi8hXtHDbGUWD1---- Content-Type: text/html Content-ID: <frame-C7C17F406DB2915513F5DC31FF7EBE2A@mhtml.blink> Content-Transfer-Encoding: quoted-printable Content-Location: http://bar.com:41043/media/bigbuck.webm <html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; charset= =3DUTF-8"><meta name=3D"viewport" content=3D"width=3Ddevice-width"></head><= body><video controls=3D"" autoplay=3D"" name=3D"media"><source src=3D"http:= //bar.com:41043/media/bigbuck.webm" type=3D"video/webm"></video></body></ht= ml> ------MultipartBoundary--Haf6y0Aoye8l1fk1RGpgDmYMd6Tnfi8hXtHDbGUWD1------
,
May 15 2018
+Jonathan who looked into video embeds in MHTML
,
May 15 2018
Also note the IsHTMLDocument / IsImageDocument checks in FrameSerializer::SerializeFrame (and note the comment rewritten in a WIP CL @ https://chromium-review.googlesource.com/c/chromium/src/+/1060470/2/third_party/blink/renderer/core/exported/web_frame_serializer.cc).
,
May 17 2018
I observed this same problem a couple months ago crbug.com/824567 . I was able to manually insert a video into MHTML but inlining it in the main HTML body with a data URI, but none of the controls worked. Although, IIRC Jian was able to get the controls working on a local Canary build. However this was just a manual test of how to enable video for MHTML, but we decided it was low priority at the time (for Offline Prefetch in particular).
,
May 21 2018
<triage> Assigning to freedjm@ for MHTML video |
||||
►
Sign in to add a comment |
||||
Comment 1 by lukasza@chromium.org
, May 15 2018