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

Issue 2842653005: WebFrameSerializerSanitizationTest validates generated MHTML. (Closed)

Created:
3 years, 7 months ago by carlosk
Modified:
3 years, 7 months ago
CC:
chromium-reviews, blink-reviews, kinuko+watch, dewittj, dcheng
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

WebFrameSerializerSanitizationTest validates generated MHTML. Changes GenerateMHTMLPats into GenerateMHTML and makes it generate full and validated MHTML contents by default. For one test it made more sense to only generate the body parts as before so there's an optional argument to replicate the old behavior. BUG=672313 Review-Url: https://codereview.chromium.org/2842653005 Cr-Commit-Position: refs/heads/master@{#468520} Committed: https://chromium.googlesource.com/chromium/src/+/0179de0d5ca89c2bbdcf24f7a583b304fc053502

Patch Set 1 #

Total comments: 4

Patch Set 2 : Updated comments. #

Total comments: 8

Patch Set 3 : Generation helper methods; changed MHTML validation failure handling. #

Patch Set 4 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -18 lines) Patch
M third_party/WebKit/Source/web/tests/WebFrameSerializerTest.cpp View 1 2 3 12 chunks +60 lines, -18 lines 0 comments Download

Messages

Total messages: 30 (14 generated)
carlosk
lukasza@, jianli@: PTAL. dewittj@: FYI.
3 years, 7 months ago (2017-04-25 21:28:16 UTC) #4
jianli
I don't think WebFrameSerializerSanitizationTest is the right place to validate the MHTML since WebFrameSerializerSanitizationTest is ...
3 years, 7 months ago (2017-04-25 21:41:35 UTC) #5
Łukasz Anforowicz
On 2017/04/25 21:41:35, jianli wrote: > I don't think WebFrameSerializerSanitizationTest is the right place to ...
3 years, 7 months ago (2017-04-25 22:16:07 UTC) #6
dewittj
https://codereview.chromium.org/2842653005/diff/1/third_party/WebKit/Source/web/tests/WebFrameSerializerTest.cpp File third_party/WebKit/Source/web/tests/WebFrameSerializerTest.cpp (right): https://codereview.chromium.org/2842653005/diff/1/third_party/WebKit/Source/web/tests/WebFrameSerializerTest.cpp#newcode231 third_party/WebKit/Source/web/tests/WebFrameSerializerTest.cpp:231: // This boundary is as good as any other. ...
3 years, 7 months ago (2017-04-25 22:32:33 UTC) #8
carlosk
Thanks for all comments. On 2017/04/25 22:16:07, Łukasz A. wrote: > On 2017/04/25 21:41:35, jianli ...
3 years, 7 months ago (2017-04-26 00:16:49 UTC) #11
jianli
https://codereview.chromium.org/2842653005/diff/20001/third_party/WebKit/Source/web/tests/WebFrameSerializerTest.cpp File third_party/WebKit/Source/web/tests/WebFrameSerializerTest.cpp (right): https://codereview.chromium.org/2842653005/diff/20001/third_party/WebKit/Source/web/tests/WebFrameSerializerTest.cpp#newcode217 third_party/WebKit/Source/web/tests/WebFrameSerializerTest.cpp:217: class WebFrameSerializerSanitizationTest : public WebFrameSerializerTest { I think we'd ...
3 years, 7 months ago (2017-04-26 00:54:45 UTC) #12
carlosk
Thanks. https://codereview.chromium.org/2842653005/diff/20001/third_party/WebKit/Source/web/tests/WebFrameSerializerTest.cpp File third_party/WebKit/Source/web/tests/WebFrameSerializerTest.cpp (right): https://codereview.chromium.org/2842653005/diff/20001/third_party/WebKit/Source/web/tests/WebFrameSerializerTest.cpp#newcode217 third_party/WebKit/Source/web/tests/WebFrameSerializerTest.cpp:217: class WebFrameSerializerSanitizationTest : public WebFrameSerializerTest { On 2017/04/26 ...
3 years, 7 months ago (2017-04-26 01:07:51 UTC) #13
jianli
https://codereview.chromium.org/2842653005/diff/20001/third_party/WebKit/Source/web/tests/WebFrameSerializerTest.cpp File third_party/WebKit/Source/web/tests/WebFrameSerializerTest.cpp (right): https://codereview.chromium.org/2842653005/diff/20001/third_party/WebKit/Source/web/tests/WebFrameSerializerTest.cpp#newcode345 third_party/WebKit/Source/web/tests/WebFrameSerializerTest.cpp:345: "image/png", true); On 2017/04/26 01:07:50, carlosk wrote: > On ...
3 years, 7 months ago (2017-04-26 01:12:27 UTC) #14
carlosk
Because of a comment from dcheng@ on another CL I changed the way MHTML well-formedness ...
3 years, 7 months ago (2017-04-28 01:16:19 UTC) #17
carlosk
Just sending a reminder for reviewers to PTAL. :)
3 years, 7 months ago (2017-05-01 21:48:51 UTC) #18
Łukasz Anforowicz
lgtm
3 years, 7 months ago (2017-05-01 21:50:56 UTC) #19
jianli
lgtm
3 years, 7 months ago (2017-05-01 21:54:47 UTC) #20
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/2842653005/40001
3 years, 7 months ago (2017-05-01 22:16:54 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: android_compile_dbg on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_compile_dbg/builds/260045) android_cronet on master.tryserver.chromium.android (JOB_FAILED, ...
3 years, 7 months ago (2017-05-01 22:21:46 UTC) #24
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/2842653005/60001
3 years, 7 months ago (2017-05-01 23:47:51 UTC) #27
commit-bot: I haz the power
3 years, 7 months ago (2017-05-02 01:07:34 UTC) #30
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/0179de0d5ca89c2bbdcf24f7a583...

Powered by Google App Engine
This is Rietveld 408576698