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

Issue 2369613003: Require WebLocalFrame to be created with a non-null client (Closed)

Created:
4 years, 2 months ago by dcheng
Modified:
4 years, 2 months ago
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, dglazkov+blink, esprehn, kinuko+watch
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Require WebLocalFrame to be created with a non-null client This simplifies the invariants around WebLocalFrames in Blink: the client is only ever null once the frame is detached. In theory, this should allow the removal of a bunch of random WebFrameClient null checks. BUG=none Committed: https://crrev.com/9f8e2f611e44753f7d8de5a2a6716bd030bc7283 Cr-Commit-Position: refs/heads/master@{#421832}

Patch Set 1 #

Patch Set 2 : fix lots of things #

Patch Set 3 : rebase? #

Patch Set 4 : Add new file #

Patch Set 5 : oops #

Total comments: 11
Unified diffs Side-by-side diffs Delta from patch set Stats (+119 lines, -172 lines) Patch
M components/plugins/renderer/webview_plugin.h View 1 1 chunk +0 lines, -5 lines 0 comments Download
M components/plugins/renderer/webview_plugin.cc View 1 2 chunks +3 lines, -6 lines 0 comments Download
M components/printing/renderer/print_web_view_helper.cc View 1 4 chunks +7 lines, -18 lines 2 comments Download
M content/renderer/media/android/media_info_loader_unittest.cc View 1 3 chunks +5 lines, -8 lines 0 comments Download
M content/renderer/render_frame_impl.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M content/test/BUILD.gn View 1 2 1 chunk +0 lines, -1 line 0 comments Download
D content/test/mock_webframeclient.h View 1 1 chunk +0 lines, -16 lines 0 comments Download
M extensions/renderer/scoped_web_frame.h View 1 2 chunks +10 lines, -6 lines 0 comments Download
M extensions/renderer/scoped_web_frame.cc View 1 1 chunk +2 lines, -3 lines 0 comments Download
M media/blink/BUILD.gn View 1 1 chunk +0 lines, -1 line 0 comments Download
D media/blink/mock_webframeclient.h View 1 1 chunk +0 lines, -16 lines 0 comments Download
M media/blink/multibuffer_data_source_unittest.cc View 1 3 chunks +7 lines, -9 lines 0 comments Download
M media/blink/resource_multibuffer_data_provider_unittest.cc View 1 5 chunks +7 lines, -9 lines 0 comments Download
M media/blink/webmediaplayer_impl_unittest.cc View 1 3 chunks +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/core/loader/EmptyClients.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoader.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoaderClient.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/ChromeClientImpl.cpp View 1 2 2 chunks +7 lines, -9 lines 3 comments Download
M third_party/WebKit/Source/web/FrameLoaderClientImpl.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download
A third_party/WebKit/Source/web/WebFrameClient.cpp View 1 2 3 4 1 chunk +23 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.cpp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/tests/ChromeClientImplTest.cpp View 1 4 chunks +2 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/web/tests/FrameLoaderClientImplTest.cpp View 1 2 chunks +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/web/tests/FrameTestHelpers.h View 1 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/web/tests/FrameTestHelpers.cpp View 1 1 chunk +2 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameTest.cpp View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebViewTest.cpp View 1 5 chunks +6 lines, -7 lines 0 comments Download
M third_party/WebKit/public/web/WebFrameClient.h View 1 5 chunks +17 lines, -17 lines 4 comments Download
M third_party/WebKit/public/web/WebLocalFrame.h View 1 chunk +1 line, -1 line 2 comments Download

Messages

Total messages: 45 (30 generated)
dcheng
WDYT? I don't think we'll be able to get rid of all the WebFrameClient null ...
4 years, 2 months ago (2016-09-29 04:13:28 UTC) #22
dglazkov
lgtm
4 years, 2 months ago (2016-09-29 04:27:06 UTC) #23
esprehn
https://codereview.chromium.org/2369613003/diff/80001/components/printing/renderer/print_web_view_helper.cc File components/printing/renderer/print_web_view_helper.cc (right): https://codereview.chromium.org/2369613003/diff/80001/components/printing/renderer/print_web_view_helper.cc#newcode530 components/printing/renderer/print_web_view_helper.cc:530: blink::WebFrameClient frame_client; This scares me, the WebLocalFrame(Impl) below is ...
4 years, 2 months ago (2016-09-29 04:28:42 UTC) #24
dcheng
https://codereview.chromium.org/2369613003/diff/80001/components/printing/renderer/print_web_view_helper.cc File components/printing/renderer/print_web_view_helper.cc (right): https://codereview.chromium.org/2369613003/diff/80001/components/printing/renderer/print_web_view_helper.cc#newcode530 components/printing/renderer/print_web_view_helper.cc:530: blink::WebFrameClient frame_client; On 2016/09/29 04:28:42, esprehn wrote: > This ...
4 years, 2 months ago (2016-09-29 04:42:38 UTC) #25
esprehn
lgtm, okay seems legit.
4 years, 2 months ago (2016-09-29 05:09:15 UTC) #28
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/2369613003/80001
4 years, 2 months ago (2016-09-29 05:59:16 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/269355)
4 years, 2 months ago (2016-09-29 06:04:35 UTC) #32
dcheng
+jochen, mind reviewing components, content/test, and extensions/renderer as an OWNER?
4 years, 2 months ago (2016-09-29 15:14:44 UTC) #34
jochen (gone - plz use gerrit)
lgtm
4 years, 2 months ago (2016-09-29 15:17:15 UTC) #35
dcheng
+liberato for //media owners
4 years, 2 months ago (2016-09-29 15:26:32 UTC) #37
liberato (no reviews please)
lgtm.
4 years, 2 months ago (2016-09-29 15:39:43 UTC) #38
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/2369613003/80001
4 years, 2 months ago (2016-09-29 15:50:38 UTC) #40
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 2 months ago (2016-09-29 15:55:13 UTC) #42
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/9f8e2f611e44753f7d8de5a2a6716bd030bc7283 Cr-Commit-Position: refs/heads/master@{#421832}
4 years, 2 months ago (2016-09-29 15:59:34 UTC) #44
dcheng
4 years, 2 months ago (2016-10-01 02:10:11 UTC) #45
Message was sent while issue was closed.
A revert of this CL (patchset #5 id:80001) has been created in
https://codereview.chromium.org/2389493002/ by dcheng@chromium.org.

The reason for reverting is: Also just testing..

Powered by Google App Engine
This is Rietveld 408576698