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

Issue 2613253002: MHTML generation: safely serialize image documents (Closed)

Created:
3 years, 11 months ago by Charlie Harrison
Modified:
3 years, 11 months ago
Reviewers:
carlosk, dcheng
CC:
chromium-reviews, blink-reviews, mlamouri+watch-blink_chromium.org, kinuko+watch, dcheng, Ɓukasz Anforowicz
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MHTML generation: safely serialize image documents Downstream code expects nonzero resources to be discovered during FrameSerializer::serializeFrame. However, this can happen in some cases when processing image documents. BUG=678893 Review-Url: https://codereview.chromium.org/2613253002 Cr-Commit-Position: refs/heads/master@{#442058} Committed: https://chromium.googlesource.com/chromium/src/+/18a3a8709bd95e5a90aa5892962790688e3620a5

Patch Set 1 #

Patch Set 2 : Add regression unit test #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -3 lines) Patch
M third_party/WebKit/Source/web/WebFrameSerializer.cpp View 2 chunks +5 lines, -1 line 2 comments Download
M third_party/WebKit/Source/web/tests/WebFrameSerializerTest.cpp View 1 2 chunks +12 lines, -2 lines 0 comments Download
A third_party/WebKit/Source/web/tests/data/frameserialization/broken-image.png View 1 Binary file 0 comments Download

Messages

Total messages: 19 (11 generated)
Charlie Harrison
dcheng, carlosk PTAL?
3 years, 11 months ago (2017-01-06 16:14:05 UTC) #6
dcheng
LGTM
3 years, 11 months ago (2017-01-06 16:31:57 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2613253002/20001
3 years, 11 months ago (2017-01-06 16:33:03 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/359188)
3 years, 11 months ago (2017-01-06 17:55:35 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2613253002/20001
3 years, 11 months ago (2017-01-06 17:59:53 UTC) #14
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/chromium/src/+/18a3a8709bd95e5a90aa5892962790688e3620a5
3 years, 11 months ago (2017-01-06 21:33:45 UTC) #17
carlosk
Thanks for fixing that bug. There is one simple modification still needed though. https://codereview.chromium.org/2613253002/diff/20001/third_party/WebKit/Source/web/WebFrameSerializer.cpp File ...
3 years, 11 months ago (2017-01-06 23:26:36 UTC) #18
Charlie Harrison
3 years, 11 months ago (2017-01-07 02:31:25 UTC) #19
Message was sent while issue was closed.
https://codereview.chromium.org/2613253002/diff/20001/third_party/WebKit/Sour...
File third_party/WebKit/Source/web/WebFrameSerializer.cpp (right):

https://codereview.chromium.org/2613253002/diff/20001/third_party/WebKit/Sour...
third_party/WebKit/Source/web/WebFrameSerializer.cpp:300: return
WebThreadSafeData();
On 2017/01/06 23:26:36, carlosk wrote:
> To keep tracing logic consistent this should be moved after the
TRACE_EVENT_END1
> below.

Good catch, will fix this in a follow up.

Powered by Google App Engine
This is Rietveld 408576698