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

Issue 2520823003: Don't use isURLAllowed() to determine if a frame element gets a LayoutObject. (Closed)

Created:
4 years, 1 month ago by dcheng
Modified:
4 years, 1 month ago
Reviewers:
CC:
chromium-reviews
Target Ref:
refs/pending/branch-heads/2924
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 Review-Url: https://codereview.chromium.org/2504573002 Cr-Commit-Position: refs/heads/master@{#433341} (cherry picked from commit 8a8505dc2c0cd9d4b3e347b7a9ccd9fb3e62491b) Committed: https://chromium.googlesource.com/chromium/src/+/4e0c05dd02715b177c56fcf85654bb28b246ecda

Patch Set 1 #

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

Messages

Total messages: 2 (1 generated)
dcheng
4 years, 1 month ago (2016-11-21 22:34:08 UTC) #2
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
4e0c05dd02715b177c56fcf85654bb28b246ecda.

Powered by Google App Engine
This is Rietveld 408576698