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

Issue 1918183004: Switch the inheritance of WebView from WebWidget to protected. (Closed)

Created:
4 years, 8 months ago by lfg
Modified:
4 years, 7 months ago
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, dglazkov+blink, jam, jochen+watch_chromium.org, mkwst+moarreviews-renderer_chromium.org, mkwst+moarreviews-shell_chromium.org, mlamouri+watch-test-runner_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, Peter Beverloo, site-isolation-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Switch the inheritance of WebView from WebWidget to protected. This change also fixes all the implicit casts from WebView to WebWidget. This is part of a long-term refactor to split WebView and WebWidget. BUG=419087 Committed: https://crrev.com/4fa48dad715b0ba02f91cdd6f63ee5b512196297 Cr-Commit-Position: refs/heads/master@{#392370}

Patch Set 1 #

Patch Set 2 : remove widget from webview #

Patch Set 3 : closing the webview/widget #

Patch Set 4 : a few more fixes #

Patch Set 5 : rebase #

Patch Set 6 : go back to using the webview in RenderWidget #

Patch Set 7 : #

Patch Set 8 : only set the widget when the main frame is local on layout tests #

Patch Set 9 : set webwidget on frame creation instead of view creation #

Total comments: 11

Patch Set 10 : rebase #

Patch Set 11 : addressing comments #

Total comments: 2

Patch Set 12 : adding TODO #

Patch Set 13 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -14 lines) Patch
M components/test_runner/test_runner_for_specific_view.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +9 lines, -2 lines 0 comments Download
M content/renderer/render_view_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +6 lines, -3 lines 0 comments Download
M content/renderer/render_widget.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M content/shell/renderer/layout_test/blink_test_runner.cc View 1 2 3 4 5 1 chunk +5 lines, -1 line 0 comments Download
M content/shell/renderer/layout_test/layout_test_content_renderer_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +12 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.h View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/public/web/WebLocalFrame.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +5 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebView.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +46 lines, -1 line 0 comments Download

Messages

Total messages: 25 (9 generated)
lfg
Daniel, please take a look.
4 years, 7 months ago (2016-04-28 20:10:35 UTC) #4
lfg
I've looked into the failed layout tests in the site isolation bot, and it's a ...
4 years, 7 months ago (2016-04-29 17:20:25 UTC) #5
lfg
All tests are passing now -- the last few tests were failing because on a ...
4 years, 7 months ago (2016-05-02 20:52:10 UTC) #6
dcheng
https://codereview.chromium.org/1918183004/diff/160001/components/test_runner/test_runner.cc File components/test_runner/test_runner.cc (right): https://codereview.chromium.org/1918183004/diff/160001/components/test_runner/test_runner.cc#newcode3115 components/test_runner/test_runner.cc:3115: web_view()->mainFrame()->toWebLocalFrame()->frameWidget(), I think TestRunnerForSpecificView should actually be TestRunnerForLocalFrame: then ...
4 years, 7 months ago (2016-05-03 09:27:13 UTC) #7
Łukasz Anforowicz
Some drive-by comments... https://codereview.chromium.org/1918183004/diff/160001/components/test_runner/test_runner.cc File components/test_runner/test_runner.cc (right): https://codereview.chromium.org/1918183004/diff/160001/components/test_runner/test_runner.cc#newcode3115 components/test_runner/test_runner.cc:3115: web_view()->mainFrame()->toWebLocalFrame()->frameWidget(), On 2016/05/03 09:27:13, dcheng wrote: ...
4 years, 7 months ago (2016-05-03 16:09:55 UTC) #9
lfg
https://codereview.chromium.org/1918183004/diff/160001/components/test_runner/test_runner.cc File components/test_runner/test_runner.cc (right): https://codereview.chromium.org/1918183004/diff/160001/components/test_runner/test_runner.cc#newcode3115 components/test_runner/test_runner.cc:3115: web_view()->mainFrame()->toWebLocalFrame()->frameWidget(), On 2016/05/03 16:09:55, Łukasz Anforowicz wrote: > On ...
4 years, 7 months ago (2016-05-03 21:19:43 UTC) #10
dcheng
lgtm https://codereview.chromium.org/1918183004/diff/160001/content/shell/renderer/layout_test/layout_test_content_renderer_client.cc File content/shell/renderer/layout_test/layout_test_content_renderer_client.cc (right): https://codereview.chromium.org/1918183004/diff/160001/content/shell/renderer/layout_test/layout_test_content_renderer_client.cc#newcode106 content/shell/renderer/layout_test/layout_test_content_renderer_client.cc:106: test_runner::WebTestProxyBase* proxy = On 2016/05/03 at 21:19:43, lfg ...
4 years, 7 months ago (2016-05-04 04:55:30 UTC) #11
lfg
https://codereview.chromium.org/1918183004/diff/200001/third_party/WebKit/Source/web/WebLocalFrameImpl.h File third_party/WebKit/Source/web/WebLocalFrameImpl.h (right): https://codereview.chromium.org/1918183004/diff/200001/third_party/WebKit/Source/web/WebLocalFrameImpl.h#newcode246 third_party/WebKit/Source/web/WebLocalFrameImpl.h:246: WebFrameWidget* frameWidget() const override; On 2016/05/04 04:55:30, dcheng wrote: ...
4 years, 7 months ago (2016-05-04 19:37:33 UTC) #12
lfg
+jochen for content/ and components/test_runner/
4 years, 7 months ago (2016-05-04 19:38:13 UTC) #14
jochen (gone - plz use gerrit)
if the bots were greener, I'd be more confident to approve :)
4 years, 7 months ago (2016-05-06 10:34:02 UTC) #15
lfg
On 2016/05/06 10:34:02, jochen wrote: > if the bots were greener, I'd be more confident ...
4 years, 7 months ago (2016-05-06 20:40:39 UTC) #16
jochen (gone - plz use gerrit)
lgtm
4 years, 7 months ago (2016-05-09 15:24:58 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1918183004/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1918183004/240001
4 years, 7 months ago (2016-05-09 17:06:40 UTC) #20
commit-bot: I haz the power
Committed patchset #13 (id:240001)
4 years, 7 months ago (2016-05-09 18:25:25 UTC) #22
commit-bot: I haz the power
Patchset 13 (id:??) landed as https://crrev.com/4fa48dad715b0ba02f91cdd6f63ee5b512196297 Cr-Commit-Position: refs/heads/master@{#392370}
4 years, 7 months ago (2016-05-09 18:26:38 UTC) #24
Łukasz Anforowicz
4 years, 7 months ago (2016-05-09 23:14:02 UTC) #25
Message was sent while issue was closed.
On 2016/05/09 18:26:38, commit-bot: I haz the power wrote:
> Patchset 13 (id:??) landed as
> https://crrev.com/4fa48dad715b0ba02f91cdd6f63ee5b512196297
> Cr-Commit-Position: refs/heads/master@{#392370}

AFAICT this CL has caused UaF of WebWidget when running some layout tests -
please see https://crbug.com/610513

Powered by Google App Engine
This is Rietveld 408576698