Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(623)

Issue 1705903003: Special case support for MHTML archives consisting of a single image. (Closed)

Created:
4 years, 10 months ago by bburns
Modified:
4 years, 1 month ago
CC:
blink-reviews, chromium-reviews, kinuko+watch
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Special case support for MHTML archives consisting of a single image. BUG=584866

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add a special case for MHTML archives of one resource #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -0 lines) Patch
M third_party/WebKit/Source/platform/mhtml/MHTMLArchive.cpp View 1 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (1 generated)
bburns
Please review this CL. Thanks! --brendan
4 years, 10 months ago (2016-02-18 00:17:00 UTC) #2
Dmitry Titov
Does it fix the bug? It'll need a blink test. https://codereview.chromium.org/1705903003/diff/1/third_party/WebKit/Source/platform/mhtml/MHTMLArchive.cpp File third_party/WebKit/Source/platform/mhtml/MHTMLArchive.cpp (right): https://codereview.chromium.org/1705903003/diff/1/third_party/WebKit/Source/platform/mhtml/MHTMLArchive.cpp#newcode93 ...
4 years, 10 months ago (2016-02-18 01:30:05 UTC) #3
Dmitry Titov
also: https://codereview.chromium.org/1705903003/diff/1/third_party/WebKit/Source/platform/mhtml/MHTMLArchive.cpp File third_party/WebKit/Source/platform/mhtml/MHTMLArchive.cpp (right): https://codereview.chromium.org/1705903003/diff/1/third_party/WebKit/Source/platform/mhtml/MHTMLArchive.cpp#newcode89 third_party/WebKit/Source/platform/mhtml/MHTMLArchive.cpp:89: if (MIMETypeRegistry::isSupportedNonImageMIMEType(mimeType) I am not sure why you ...
4 years, 10 months ago (2016-02-18 01:31:15 UTC) #4
Mike West
Why would we create an MHTML archive for a single resource, rather than just downloading ...
4 years, 10 months ago (2016-02-18 10:48:20 UTC) #5
Dmitry Titov
On 2016/02/18 10:48:20, Mike West wrote: > Why would we create an MHTML archive for ...
4 years, 10 months ago (2016-02-18 21:03:43 UTC) #6
Dmitry Titov
On 2016/02/18 10:48:20, Mike West wrote: > Why would we create an MHTML archive for ...
4 years, 10 months ago (2016-02-18 21:03:47 UTC) #7
Mike West
On 2016/02/18 at 21:03:43, dimich wrote: > Of course, and it is already possible to ...
4 years, 10 months ago (2016-02-19 06:54:09 UTC) #8
Dmitry Titov
4 years, 10 months ago (2016-02-19 18:14:51 UTC) #9
On 2016/02/19 06:54:09, Mike West wrote:
> On 2016/02/18 at 21:03:43, dimich wrote:
> > Of course, and it is already possible to save an image - as a separate
> feature. However, MHTML may want to handle standalone images as well, for a
> various reasons:
> > - if user selects a "Save page as MHTML" option, they should be able to get
> what they expect, an .mhtml file - out of any page (they not necessarily
realize
> it's just an image)
> 
> I'm looking for this option, and haven't found it. There's a flag that's
> apparently been around since 2012... are there plans to enable it?
> 
> Basically, I'm wondering whether this code is going to ship (in which case
small
> improvements like this one make sense), or whether we should remove it
entirely.
> :)


Yep, the reason we are starting to look into those bugs is that MHTML
generator/viewer is a part of "Offline Pages" feature (go/offline-pages) that is
experimental now and is on the path to shipping (perhaps initially in EM). There
will be much more work on upkeep of MHTML soon... We might start owning it.

Offline pages will use MHTML for now as implementation mechanism. It is unclear
if the "Save page as MHTML" will be enabled as it is, it's a somewhat separate
feature.

Powered by Google App Engine
This is Rietveld 408576698