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

Issue 2538953002: Remove hidden elements from MHTML (Closed)

Created:
4 years ago by jianli
Modified:
3 years, 11 months ago
CC:
blink-reviews, chromium-reviews, dcheng, kinuko+watch, mlamouri+watch-blink_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove hidden elements from MHTML We remove the following hidden elements that will never be visible due to the fact that script execution is disable in MHTML loading: 1) Any DOM element has hidden attribute 2) Input element has hidden type BUG=669325 TEST=new tests added Committed: https://crrev.com/6f960b80d7bee61f42b4e95c8f8c2e252dc36739 Cr-Commit-Position: refs/heads/master@{#440790}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address feedback #

Total comments: 2

Patch Set 3 : Rebase #

Patch Set 4 : Use blacklist #

Patch Set 5 : Fix browser test #

Patch Set 6 : Rebase #

Patch Set 7 : Fix trybots #

Unified diffs Side-by-side diffs Delta from patch set Stats (+146 lines, -33 lines) Patch
M chrome/browser/download/save_page_browsertest.cc View 1 2 3 4 5 6 11 chunks +23 lines, -13 lines 0 comments Download
M chrome/test/data/save_page/style.htm View 1 2 3 4 4 chunks +12 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/frame/FrameSerializer.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FrameSerializer.cpp View 1 2 3 4 5 6 3 chunks +14 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/web/WebFrameSerializer.cpp View 1 2 3 4 5 6 2 chunks +18 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameSerializerTest.cpp View 1 2 3 2 chunks +48 lines, -10 lines 0 comments Download
A third_party/WebKit/Source/web/tests/data/frameserialization/hidden_elements.html View 1 2 3 1 chunk +28 lines, -0 lines 0 comments Download

Messages

Total messages: 41 (21 generated)
jianli
4 years ago (2016-11-30 02:15:39 UTC) #2
dcheng
Drive-by: please provide some more detail in the bug about the motivations for doing this. ...
4 years ago (2016-11-30 02:56:31 UTC) #4
tkent
https://codereview.chromium.org/2538953002/diff/1/third_party/WebKit/Source/web/WebFrameSerializer.cpp File third_party/WebKit/Source/web/WebFrameSerializer.cpp (right): https://codereview.chromium.org/2538953002/diff/1/third_party/WebKit/Source/web/WebFrameSerializer.cpp#newcode106 third_party/WebKit/Source/web/WebFrameSerializer.cpp:106: } Can you check existence of layoutObject(), or check ...
4 years ago (2016-11-30 08:22:34 UTC) #5
carlosk
LGTM with one question. https://codereview.chromium.org/2538953002/diff/1/third_party/WebKit/Source/core/frame/FrameSerializer.cpp File third_party/WebKit/Source/core/frame/FrameSerializer.cpp (right): https://codereview.chromium.org/2538953002/diff/1/third_party/WebKit/Source/core/frame/FrameSerializer.cpp#newcode224 third_party/WebKit/Source/core/frame/FrameSerializer.cpp:224: return m_delegate.shouldIgnoreElement(element); This might be ...
4 years ago (2016-11-30 23:30:22 UTC) #6
jianli
https://codereview.chromium.org/2538953002/diff/1/third_party/WebKit/Source/web/WebFrameSerializer.cpp File third_party/WebKit/Source/web/WebFrameSerializer.cpp (right): https://codereview.chromium.org/2538953002/diff/1/third_party/WebKit/Source/web/WebFrameSerializer.cpp#newcode106 third_party/WebKit/Source/web/WebFrameSerializer.cpp:106: } On 2016/11/30 08:22:34, tkent wrote: > Can you ...
4 years ago (2016-12-01 02:13:09 UTC) #8
jianli
On 2016/11/30 02:56:31, dcheng wrote: > Drive-by: please provide some more detail in the bug ...
4 years ago (2016-12-01 02:17:50 UTC) #9
jianli
https://codereview.chromium.org/2538953002/diff/1/third_party/WebKit/Source/core/frame/FrameSerializer.cpp File third_party/WebKit/Source/core/frame/FrameSerializer.cpp (right): https://codereview.chromium.org/2538953002/diff/1/third_party/WebKit/Source/core/frame/FrameSerializer.cpp#newcode224 third_party/WebKit/Source/core/frame/FrameSerializer.cpp:224: return m_delegate.shouldIgnoreElement(element); On 2016/11/30 23:30:22, carlosk wrote: > This ...
4 years ago (2016-12-01 02:19:38 UTC) #10
tkent
https://codereview.chromium.org/2538953002/diff/40001/third_party/WebKit/Source/web/WebFrameSerializer.cpp File third_party/WebKit/Source/web/WebFrameSerializer.cpp (right): https://codereview.chromium.org/2538953002/diff/40001/third_party/WebKit/Source/web/WebFrameSerializer.cpp#newcode100 third_party/WebKit/Source/web/WebFrameSerializer.cpp:100: return !element.layoutObject(); Though I suggested this, it drops <head>, ...
4 years ago (2016-12-01 14:56:43 UTC) #11
jianli
https://codereview.chromium.org/2538953002/diff/40001/third_party/WebKit/Source/web/WebFrameSerializer.cpp File third_party/WebKit/Source/web/WebFrameSerializer.cpp (right): https://codereview.chromium.org/2538953002/diff/40001/third_party/WebKit/Source/web/WebFrameSerializer.cpp#newcode100 third_party/WebKit/Source/web/WebFrameSerializer.cpp:100: return !element.layoutObject(); On 2016/12/01 14:56:43, tkent wrote: > Though ...
4 years ago (2016-12-07 02:21:02 UTC) #12
jianli
On 2016/12/07 02:21:02, jianli wrote: > https://codereview.chromium.org/2538953002/diff/40001/third_party/WebKit/Source/web/WebFrameSerializer.cpp > File third_party/WebKit/Source/web/WebFrameSerializer.cpp (right): > > https://codereview.chromium.org/2538953002/diff/40001/third_party/WebKit/Source/web/WebFrameSerializer.cpp#newcode100 > ...
4 years ago (2016-12-08 02:23:46 UTC) #13
tkent
On 2016/12/07 at 02:21:02, jianli wrote: > https://codereview.chromium.org/2538953002/diff/40001/third_party/WebKit/Source/web/WebFrameSerializer.cpp > File third_party/WebKit/Source/web/WebFrameSerializer.cpp (right): > > https://codereview.chromium.org/2538953002/diff/40001/third_party/WebKit/Source/web/WebFrameSerializer.cpp#newcode100 ...
4 years ago (2016-12-08 02:29:27 UTC) #14
jianli
On 2016/12/08 02:29:27, tkent wrote: > On 2016/12/07 at 02:21:02, jianli wrote: > > > ...
4 years ago (2016-12-13 02:28:50 UTC) #17
tkent
The code looks ok. Please fix a test failure.
4 years ago (2016-12-14 03:41:27 UTC) #20
jianli
On 2016/12/14 03:41:27, tkent wrote: > The code looks ok. Please fix a test failure. ...
4 years ago (2016-12-14 23:32:50 UTC) #23
jianli
svaldez for save_page_browsertest.cc
4 years ago (2016-12-14 23:33:37 UTC) #25
tkent
third_party/WebKit lgtm
4 years ago (2016-12-14 23:38:07 UTC) #26
svaldez
save_page_browsertest LGTM.
3 years, 12 months ago (2016-12-27 18:00:41 UTC) #33
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/2538953002/140001
3 years, 12 months ago (2016-12-27 19:25:03 UTC) #36
commit-bot: I haz the power
Committed patchset #7 (id:140001)
3 years, 12 months ago (2016-12-27 21:25:09 UTC) #39
commit-bot: I haz the power
3 years, 11 months ago (2017-01-02 15:47:19 UTC) #41
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/6f960b80d7bee61f42b4e95c8f8c2e252dc36739
Cr-Commit-Position: refs/heads/master@{#440790}

Powered by Google App Engine
This is Rietveld 408576698