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

Issue 2507023002: Support script modify iframe scrolling, marginWidth and marginHeight attr (Closed)

Created:
4 years, 1 month ago by chaopeng
Modified:
4 years ago
Reviewers:
bokan, alexmos
CC:
chromium-reviews, mlamouri+watch-blink_chromium.org, blink-reviews-html_chromium.org, dcheng, dglazkov+blink, blink-reviews, kinuko+watch, site-isolation-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Support script modify iframe scrolling, marginWidth and marginHeight attr For scrolling: call FrameView::setNeddLayout in LocalFrame to update the behaviour. For marginWidth and marginHeight: call setIntegralAttribute to set the attr This patch works for LocalFrame and RemoteFrame, BUG=642603 Committed: https://crrev.com/2e671cf88d579e7a2392dff0383f47dae2655ab5 Cr-Commit-Position: refs/heads/master@{#434047}

Patch Set 1 #

Patch Set 2 : add test #

Patch Set 3 : add fix for marginWidth and marginHeight #

Total comments: 9

Patch Set 4 : bokan's comment addressed #

Patch Set 5 : add null check #

Total comments: 4

Patch Set 6 : bokan@ comment addressed #

Total comments: 7

Patch Set 7 : bokan@ comment#19 addressed #

Total comments: 3

Patch Set 8 : alexmos@ comment#20 addressed. but layouttest still not working with flag #

Total comments: 1

Patch Set 9 : add postMessage to test #

Total comments: 1

Patch Set 10 : alexmos@ comment#22 addressed #

Patch Set 11 : forgot add files #

Total comments: 1

Patch Set 12 : remove using namespace #

Unified diffs Side-by-side diffs Delta from patch set Stats (+87 lines, -7 lines) Patch
A third_party/WebKit/LayoutTests/http/tests/misc/iframe-script-modify-attr.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +22 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/misc/iframe-script-modify-attr-expected.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/misc/resources/iframe-big.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +9 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.h View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.cpp View 1 2 3 4 5 6 7 8 1 chunk +14 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLFrameElementBase.cpp View 1 2 3 4 5 6 3 chunks +21 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/web/WebFrame.cpp View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +11 lines, -0 lines 0 comments Download

Messages

Total messages: 38 (17 generated)
chaopeng
4 years, 1 month ago (2016-11-18 19:54:28 UTC) #3
bokan
+alexmos@ to double check the OOPIF changes. https://codereview.chromium.org/2507023002/diff/40001/third_party/WebKit/LayoutTests/fast/frames/script-modify-iframe-attr-expected.html File third_party/WebKit/LayoutTests/fast/frames/script-modify-iframe-attr-expected.html (right): https://codereview.chromium.org/2507023002/diff/40001/third_party/WebKit/LayoutTests/fast/frames/script-modify-iframe-attr-expected.html#newcode6 third_party/WebKit/LayoutTests/fast/frames/script-modify-iframe-attr-expected.html:6: a Nit: ...
4 years, 1 month ago (2016-11-18 20:56:18 UTC) #5
chaopeng
https://codereview.chromium.org/2507023002/diff/40001/third_party/WebKit/Source/core/html/HTMLFrameElementBase.cpp File third_party/WebKit/Source/core/html/HTMLFrameElementBase.cpp (left): https://codereview.chromium.org/2507023002/diff/40001/third_party/WebKit/Source/core/html/HTMLFrameElementBase.cpp#oldcode161 third_party/WebKit/Source/core/html/HTMLFrameElementBase.cpp:161: // FIXME: If we are already attached, this has ...
4 years, 1 month ago (2016-11-18 21:25:03 UTC) #6
bokan
https://codereview.chromium.org/2507023002/diff/40001/third_party/WebKit/Source/core/html/HTMLFrameElementBase.cpp File third_party/WebKit/Source/core/html/HTMLFrameElementBase.cpp (left): https://codereview.chromium.org/2507023002/diff/40001/third_party/WebKit/Source/core/html/HTMLFrameElementBase.cpp#oldcode161 third_party/WebKit/Source/core/html/HTMLFrameElementBase.cpp:161: // FIXME: If we are already attached, this has ...
4 years, 1 month ago (2016-11-18 21:37:04 UTC) #7
chaopeng
On 2016/11/18 21:37:04, bokan wrote: > https://codereview.chromium.org/2507023002/diff/40001/third_party/WebKit/Source/core/html/HTMLFrameElementBase.cpp > File third_party/WebKit/Source/core/html/HTMLFrameElementBase.cpp (left): > > https://codereview.chromium.org/2507023002/diff/40001/third_party/WebKit/Source/core/html/HTMLFrameElementBase.cpp#oldcode161 > ...
4 years, 1 month ago (2016-11-20 21:20:56 UTC) #16
bokan
https://codereview.chromium.org/2507023002/diff/80001/third_party/WebKit/LayoutTests/fast/frames/script-modify-iframe-attr.html File third_party/WebKit/LayoutTests/fast/frames/script-modify-iframe-attr.html (right): https://codereview.chromium.org/2507023002/diff/80001/third_party/WebKit/LayoutTests/fast/frames/script-modify-iframe-attr.html#newcode8 third_party/WebKit/LayoutTests/fast/frames/script-modify-iframe-attr.html:8: var ifr = document.getElementById('ifr'); This should still be in ...
4 years, 1 month ago (2016-11-21 13:21:52 UTC) #17
chaopeng
Updated, PTAL
4 years, 1 month ago (2016-11-21 15:51:08 UTC) #18
bokan
Ok, this looks fine to me but I'd like someone OOPIF knowledgeable to look it ...
4 years, 1 month ago (2016-11-21 16:11:36 UTC) #19
alexmos
https://codereview.chromium.org/2507023002/diff/100001/third_party/WebKit/Source/core/dom/Document.cpp File third_party/WebKit/Source/core/dom/Document.cpp (right): https://codereview.chromium.org/2507023002/diff/100001/third_party/WebKit/Source/core/dom/Document.cpp#newcode4316 third_party/WebKit/Source/core/dom/Document.cpp:4316: DCHECK(localOwner()); On 2016/11/21 16:11:36, bokan wrote: > The owner ...
4 years, 1 month ago (2016-11-21 17:56:56 UTC) #20
chaopeng
On 2016/11/21 17:56:56, alexmos wrote: > https://codereview.chromium.org/2507023002/diff/100001/third_party/WebKit/Source/core/dom/Document.cpp > File third_party/WebKit/Source/core/dom/Document.cpp (right): > > https://codereview.chromium.org/2507023002/diff/100001/third_party/WebKit/Source/core/dom/Document.cpp#newcode4316 > ...
4 years, 1 month ago (2016-11-22 01:54:38 UTC) #21
alexmos
https://codereview.chromium.org/2507023002/diff/140001/third_party/WebKit/LayoutTests/http/tests/frames/script-modify-iframe-attr.html File third_party/WebKit/LayoutTests/http/tests/frames/script-modify-iframe-attr.html (right): https://codereview.chromium.org/2507023002/diff/140001/third_party/WebKit/LayoutTests/http/tests/frames/script-modify-iframe-attr.html#newcode1 third_party/WebKit/LayoutTests/http/tests/frames/script-modify-iframe-attr.html:1: <!DOCTYPE html> Perhaps this should go under http/tests/misc instead? ...
4 years, 1 month ago (2016-11-22 05:13:11 UTC) #22
chaopeng
On 2016/11/22 05:13:11, alexmos wrote: > https://codereview.chromium.org/2507023002/diff/140001/third_party/WebKit/LayoutTests/http/tests/frames/script-modify-iframe-attr.html > File > third_party/WebKit/LayoutTests/http/tests/frames/script-modify-iframe-attr.html > (right): > > ...
4 years, 1 month ago (2016-11-22 15:10:02 UTC) #23
alexmos
On 2016/11/22 15:10:02, chaopeng wrote: > On 2016/11/22 05:13:11, alexmos wrote: > > > https://codereview.chromium.org/2507023002/diff/140001/third_party/WebKit/LayoutTests/http/tests/frames/script-modify-iframe-attr.html ...
4 years, 1 month ago (2016-11-22 17:21:03 UTC) #24
chaopeng
On 2016/11/22 17:21:03, alexmos wrote: > On 2016/11/22 15:10:02, chaopeng wrote: > > On 2016/11/22 ...
4 years, 1 month ago (2016-11-22 19:36:35 UTC) #25
alexmos
LGTM
4 years, 1 month ago (2016-11-22 19:41:40 UTC) #26
alexmos
https://codereview.chromium.org/2507023002/diff/200001/third_party/WebKit/Source/web/WebFrame.cpp File third_party/WebKit/Source/web/WebFrame.cpp (right): https://codereview.chromium.org/2507023002/diff/200001/third_party/WebKit/Source/web/WebFrame.cpp#newcode29 third_party/WebKit/Source/web/WebFrame.cpp:29: using namespace HTMLNames; Is this necessary, along with the ...
4 years, 1 month ago (2016-11-22 19:43:35 UTC) #27
chaopeng
On 2016/11/22 19:43:35, alexmos wrote: > https://codereview.chromium.org/2507023002/diff/200001/third_party/WebKit/Source/web/WebFrame.cpp > File third_party/WebKit/Source/web/WebFrame.cpp (right): > > https://codereview.chromium.org/2507023002/diff/200001/third_party/WebKit/Source/web/WebFrame.cpp#newcode29 > ...
4 years, 1 month ago (2016-11-22 21:06:28 UTC) #28
bokan
LGTM
4 years, 1 month ago (2016-11-22 22:31:56 UTC) #29
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/2507023002/220001
4 years, 1 month ago (2016-11-22 23:06:37 UTC) #32
commit-bot: I haz the power
Committed patchset #12 (id:220001)
4 years, 1 month ago (2016-11-23 00:56:02 UTC) #35
commit-bot: I haz the power
4 years, 1 month ago (2016-11-23 00:58:53 UTC) #37
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/2e671cf88d579e7a2392dff0383f47dae2655ab5
Cr-Commit-Position: refs/heads/master@{#434047}

Powered by Google App Engine
This is Rietveld 408576698