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

Issue 2504573002: Don't call isURLAllowed() from layout. (Closed)

Created:
4 years, 1 month ago by dcheng
Modified:
4 years, 1 month ago
Reviewers:
esprehn
CC:
blink-reviews, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink, pdr.
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't use isURLAllowed() to determine if a frame element gets a LayoutObject. What the style recalc code really wants to do is avoid creating a LayoutObject if the frame load was blocked. The best way to detect this is checking if contentFrame() is non-null. Since this breaks some unit tests that manually bootstrap child frame creation, this CL also remove the custom bootstrapping code in favor of using the standard FrameLoaderClient interfaces: this removes a bunch of code duplication for setting up the FrameView of a child frame. BUG=618138 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Committed: https://crrev.com/8a8505dc2c0cd9d4b3e347b7a9ccd9fb3e62491b Cr-Commit-Position: refs/heads/master@{#433341}

Patch Set 1 #

Patch Set 2 : Rebaseline #

Patch Set 3 : Fix all the unit tests. #

Patch Set 4 : Fix child frame detach and remove more logging #

Patch Set 5 : Fix everything #

Total comments: 3

Patch Set 6 : Make isURLAllowed private #

Total comments: 4

Patch Set 7 : Address comments and fix some new tests. #

Patch Set 8 : Fix bad formatting that caused clang-format-diff to get confused. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+182 lines, -209 lines) Patch
M third_party/WebKit/LayoutTests/http/tests/misc/bubble-drag-events-expected.txt View 1 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/misc/drag-over-iframe-invalid-source-crash-expected.txt View 1 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/misc/iframe-invalid-source-crash-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/security/filesystem-iframe-from-remote-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/security/local-iFrame-from-remote-expected.txt View 1 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/HTMLFrameElement.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/HTMLFrameElementBase.h View 1 2 3 4 5 2 chunks +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLIFrameElement.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObjectTest.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTestHelper.h View 1 2 3 4 5 6 3 chunks +51 lines, -45 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTestHelper.cpp View 1 2 3 4 5 6 4 chunks +25 lines, -33 lines 0 comments Download
M third_party/WebKit/Source/core/layout/MapCoordinatesTest.cpp View 1 2 3 4 5 6 4 chunks +15 lines, -22 lines 0 comments Download
M third_party/WebKit/Source/core/layout/VisualRectMappingTest.cpp View 1 2 3 4 5 6 3 chunks +20 lines, -20 lines 0 comments Download
M third_party/WebKit/Source/core/layout/compositing/CompositedLayerMappingTest.cpp View 1 2 3 4 5 6 4 chunks +19 lines, -23 lines 0 comments Download
M third_party/WebKit/Source/core/layout/compositing/CompositingReasonFinderTest.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/page/PrintContextTest.cpp View 1 2 3 4 5 6 2 chunks +17 lines, -23 lines 0 comments Download
M third_party/WebKit/Source/core/paint/BoxPaintInvalidatorTest.cpp View 1 2 3 4 5 6 4 chunks +4 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayerClipperTest.cpp View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayerScrollableAreaTest.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.cpp View 1 2 3 4 5 6 7 8 chunks +21 lines, -22 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PrePaintTreeWalkTest.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 29 (20 generated)
dcheng
https://codereview.chromium.org/2504573002/diff/80001/third_party/WebKit/LayoutTests/http/tests/misc/bubble-drag-events-expected.txt File third_party/WebKit/LayoutTests/http/tests/misc/bubble-drag-events-expected.txt (left): https://codereview.chromium.org/2504573002/diff/80001/third_party/WebKit/LayoutTests/http/tests/misc/bubble-drag-events-expected.txt#oldcode6 third_party/WebKit/LayoutTests/http/tests/misc/bubble-drag-events-expected.txt:6: These diffs are because we no longer have a ...
4 years, 1 month ago (2016-11-17 08:49:58 UTC) #9
dcheng
ping
4 years, 1 month ago (2016-11-18 19:27:43 UTC) #16
esprehn
What do other browsers do here? Do iframes really not paint their border and backgrounds ...
4 years, 1 month ago (2016-11-18 19:43:02 UTC) #17
dcheng
On 2016/11/18 19:43:02, esprehn wrote: > What do other browsers do here? Do iframes really ...
4 years, 1 month ago (2016-11-18 21:16:40 UTC) #18
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/2504573002/140001
4 years, 1 month ago (2016-11-18 21:17:49 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: linux_layout_tests_slimming_paint_v2 on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL)
4 years, 1 month ago (2016-11-18 23:20:38 UTC) #23
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/2504573002/140001
4 years, 1 month ago (2016-11-18 23:23:50 UTC) #25
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 1 month ago (2016-11-19 00:05:20 UTC) #27
commit-bot: I haz the power
4 years, 1 month ago (2016-11-19 00:08:03 UTC) #29
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/8a8505dc2c0cd9d4b3e347b7a9ccd9fb3e62491b
Cr-Commit-Position: refs/heads/master@{#433341}

Powered by Google App Engine
This is Rietveld 408576698