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

Issue 2247063002: Allow loading MHTML archive from content scheme (Closed)

Created:
4 years, 4 months ago by Vivian
Modified:
4 years, 3 months ago
CC:
blink-reviews, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow loading MHTML archive from content scheme BUG=630753 Committed: https://crrev.com/77ce66b313e37fd0bba77d3f85769e593c10a353 Cr-Commit-Position: refs/heads/master@{#415775}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Address comments #

Total comments: 2

Patch Set 3 : Helper function and test #

Total comments: 2

Patch Set 4 : Move checks into a helper function #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -3 lines) Patch
M third_party/WebKit/Source/platform/mhtml/MHTMLArchive.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/mhtml/MHTMLArchive.cpp View 1 2 3 2 chunks +17 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/tests/MHTMLTest.cpp View 1 2 1 chunk +7 lines, -1 line 0 comments Download

Messages

Total messages: 31 (15 generated)
Vivian
Hi Jian, This patch uses the same appraoch with your earlier CL, allowing content scheme ...
4 years, 4 months ago (2016-08-15 20:55:16 UTC) #3
Vivian
Hi Jian, This patch uses the same appraoch with your earlier CL, allowing content scheme ...
4 years, 4 months ago (2016-08-15 20:55:17 UTC) #4
jianli
lukasza, please also approve this change for security perspective. https://codereview.chromium.org/2247063002/diff/1/third_party/WebKit/Source/platform/mhtml/MHTMLArchive.cpp File third_party/WebKit/Source/platform/mhtml/MHTMLArchive.cpp (right): https://codereview.chromium.org/2247063002/diff/1/third_party/WebKit/Source/platform/mhtml/MHTMLArchive.cpp#newcode73 third_party/WebKit/Source/platform/mhtml/MHTMLArchive.cpp:73: ...
4 years, 4 months ago (2016-08-15 23:12:02 UTC) #6
Łukasz Anforowicz
On 2016/08/15 23:12:02, jianli wrote: > lukasza, please also approve this change for security perspective. ...
4 years, 4 months ago (2016-08-15 23:40:05 UTC) #7
Vivian
Comments addressed. ptal https://codereview.chromium.org/2247063002/diff/1/third_party/WebKit/Source/platform/mhtml/MHTMLArchive.cpp File third_party/WebKit/Source/platform/mhtml/MHTMLArchive.cpp (right): https://codereview.chromium.org/2247063002/diff/1/third_party/WebKit/Source/platform/mhtml/MHTMLArchive.cpp#newcode73 third_party/WebKit/Source/platform/mhtml/MHTMLArchive.cpp:73: // The latter is now allowed ...
4 years, 4 months ago (2016-08-16 21:00:44 UTC) #8
jianli
Also, don't forget to update the test MHTMLTest.cpp. https://codereview.chromium.org/2247063002/diff/20001/third_party/WebKit/Source/platform/mhtml/MHTMLArchive.cpp File third_party/WebKit/Source/platform/mhtml/MHTMLArchive.cpp (right): https://codereview.chromium.org/2247063002/diff/20001/third_party/WebKit/Source/platform/mhtml/MHTMLArchive.cpp#newcode75 third_party/WebKit/Source/platform/mhtml/MHTMLArchive.cpp:75: #if ...
4 years, 4 months ago (2016-08-17 01:12:49 UTC) #9
Vivian
Comment addressed. For test, I only added several lines in MHTMLFromScheme. Let me know if ...
4 years, 4 months ago (2016-08-17 17:27:18 UTC) #12
jianli
https://codereview.chromium.org/2247063002/diff/40001/third_party/WebKit/Source/platform/mhtml/MHTMLArchive.cpp File third_party/WebKit/Source/platform/mhtml/MHTMLArchive.cpp (right): https://codereview.chromium.org/2247063002/diff/40001/third_party/WebKit/Source/platform/mhtml/MHTMLArchive.cpp#newcode74 third_party/WebKit/Source/platform/mhtml/MHTMLArchive.cpp:74: if (!SchemeRegistry::shouldTreatURLSchemeAsLocal(url.protocol()) && !url.protocolIsInHTTPFamily() && !canLoadContent(url)) I think it ...
4 years, 4 months ago (2016-08-17 20:27:21 UTC) #15
Vivian
https://codereview.chromium.org/2247063002/diff/40001/third_party/WebKit/Source/platform/mhtml/MHTMLArchive.cpp File third_party/WebKit/Source/platform/mhtml/MHTMLArchive.cpp (right): https://codereview.chromium.org/2247063002/diff/40001/third_party/WebKit/Source/platform/mhtml/MHTMLArchive.cpp#newcode74 third_party/WebKit/Source/platform/mhtml/MHTMLArchive.cpp:74: if (!SchemeRegistry::shouldTreatURLSchemeAsLocal(url.protocol()) && !url.protocolIsInHTTPFamily() && !canLoadContent(url)) On 2016/08/17 20:27:21, ...
4 years, 4 months ago (2016-08-17 20:38:17 UTC) #16
jianli
You should also ask platform owner, like esprehn@chromium.org , to approve this CL.
4 years, 4 months ago (2016-08-19 19:38:07 UTC) #19
jianli
lgtm
4 years, 4 months ago (2016-08-19 19:38:15 UTC) #20
Vivian
esprehn@chromium.org: Ptal
4 years, 4 months ago (2016-08-19 19:39:34 UTC) #22
esprehn
lgtm
4 years, 3 months ago (2016-08-30 23:34:23 UTC) #25
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/2247063002/60001
4 years, 3 months ago (2016-08-31 20:16:44 UTC) #28
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 3 months ago (2016-08-31 22:10:14 UTC) #29
commit-bot: I haz the power
4 years, 3 months ago (2016-08-31 22:13:32 UTC) #31
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/77ce66b313e37fd0bba77d3f85769e593c10a353
Cr-Commit-Position: refs/heads/master@{#415775}

Powered by Google App Engine
This is Rietveld 408576698