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

Issue 2928033002: Move GetDocument method from WebFrame to WebLocalFrame. (Closed)

Created:
3 years, 6 months ago by Łukasz Anforowicz
Modified:
3 years, 6 months ago
CC:
chromium-reviews, vakh+watch_chromium.org, posciak+watch_chromium.org, rogerm+autofillwatch_chromium.org, nasko+codewatch_chromium.org, browser-components-watch_chromium.org, dcheng, dougt+watch_chromium.org, dmazzoni+watch_chromium.org, subresource-filter-reviews_chromium.org, kinuko+watch, extensions-reviews_chromium.org, aboxhall, aboxhall+watch_chromium.org, grt+watch_chromium.org, sebsg+autofillwatch_chromium.org, jam, Peter Beverloo, dglazkov+blink, je_julie, darin-cc_chromium.org, chfremer+watch_chromium.org, vabr+watchlistautofill_chromium.org, chromium-apps-reviews_chromium.org, blink-reviews-api_chromium.org, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, vabr+watchlistpasswordmanager_chromium.org, rouslan+autofill_chromium.org, timvolodine, feature-media-reviews_chromium.org, dmazzoni, yuzo+watch_chromium.org, haraken, gcasto+watchlist_chromium.org, jochen+watch_chromium.org, mlamouri+watch-test-runner_chromium.org, mathp+autofillwatch_chromium.org, nektar+watch_chromium.org, mlamouri+watch-blink_chromium.org, nektarios, blink-reviews, dtseng+watch_chromium.org, estade+watch_chromium.org, platform-architecture-syd+reviews-web_chromium.org, einbinder+watch-test-runner_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Move GetDocument method from WebFrame to WebLocalFrame. BUG=416660 Review-Url: https://codereview.chromium.org/2928033002 Cr-Commit-Position: refs/heads/master@{#481731} Committed: https://chromium.googlesource.com/chromium/src/+/bedb4b202b4b909e7e1f79439cadd2842f105470

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : Rebasing... #

Patch Set 5 : . #

Patch Set 6 : . #

Patch Set 7 : . #

Patch Set 8 : . #

Patch Set 9 : Rebasing... #

Total comments: 20

Patch Set 10 : Addressed CR feedback from dcheng@. #

Patch Set 11 : Rebasing... #

Total comments: 3

Patch Set 12 : Rebasing... #

Total comments: 7

Patch Set 13 : Addressed CR feedback from alexmos@. #

Total comments: 5

Patch Set 14 : Rebasing... #

Patch Set 15 : Split a DCHECK in two as suggested by boliu@. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+512 lines, -428 lines) Patch
M android_webview/renderer/aw_render_frame_ext.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +11 lines, -9 lines 0 comments Download
M chrome/browser/web_applications/web_app_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +1 line, -4 lines 0 comments Download
M chrome/renderer/autofill/form_autocomplete_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/autofill/form_autofill_browsertest.cc View 60 chunks +60 lines, -60 lines 0 comments Download
M chrome/renderer/autofill/page_click_tracker_browsertest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/renderer/autofill/password_autofill_agent_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/chrome_content_renderer_client.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/renderer/chrome_content_renderer_client.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/renderer/content_settings_observer.cc View 6 chunks +6 lines, -6 lines 0 comments Download
M chrome/renderer/safe_browsing/phishing_dom_feature_extractor.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/renderer/web_apps.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/renderer/web_apps.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/renderer/worker_content_settings_client.h View 1 2 chunks +1 line, -3 lines 0 comments Download
M chrome/renderer/worker_content_settings_client.cc View 1 1 chunk +3 lines, -3 lines 0 comments Download
M components/autofill/content/renderer/form_autofill_util.h View 3 chunks +3 lines, -3 lines 0 comments Download
M components/autofill/content/renderer/form_autofill_util.cc View 5 chunks +6 lines, -4 lines 0 comments Download
M components/autofill/content/renderer/form_cache.h View 3 chunks +3 lines, -3 lines 0 comments Download
M components/autofill/content/renderer/form_cache.cc View 3 chunks +6 lines, -3 lines 0 comments Download
M components/autofill/content/renderer/password_autofill_agent.cc View 4 chunks +5 lines, -4 lines 0 comments Download
M components/autofill/content/renderer/password_form_conversion_utils.h View 1 3 chunks +4 lines, -2 lines 0 comments Download
M components/autofill/content/renderer/password_form_conversion_utils.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M components/autofill/content/renderer/password_form_conversion_utils_browsertest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M components/autofill/content/renderer/password_generation_agent.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M components/safe_browsing/renderer/threat_dom_details.cc View 3 chunks +3 lines, -2 lines 0 comments Download
M content/public/renderer/associated_resource_fetcher.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -2 lines 0 comments Download
M content/public/renderer/content_renderer_client.h View 1 1 chunk +1 line, -2 lines 0 comments Download
M content/public/renderer/content_renderer_client.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M content/renderer/accessibility/render_accessibility_impl_browsertest.cc View 7 chunks +7 lines, -6 lines 0 comments Download
M content/renderer/browser_plugin/browser_plugin.cc View 2 chunks +9 lines, -1 line 0 comments Download
M content/renderer/dom_serializer_browsertest.cc View 13 chunks +17 lines, -16 lines 0 comments Download
M content/renderer/fetchers/associated_resource_fetcher_impl.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/fetchers/associated_resource_fetcher_impl.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/fetchers/manifest_fetcher.h View 3 chunks +3 lines, -3 lines 0 comments Download
M content/renderer/fetchers/manifest_fetcher.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +3 lines, -3 lines 0 comments Download
M content/renderer/fetchers/multi_resolution_image_resource_fetcher.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/fetchers/multi_resolution_image_resource_fetcher.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -3 lines 0 comments Download
M content/renderer/media/android/media_info_loader.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/media/android/media_info_loader.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -3 lines 0 comments Download
M content/renderer/media/android/media_info_loader_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/media/peer_connection_tracker.h View 1 2 chunks +8 lines, -8 lines 0 comments Download
M content/renderer/media/peer_connection_tracker.cc View 1 8 chunks +9 lines, -7 lines 0 comments Download
M content/renderer/media/rtc_peer_connection_handler.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +3 lines, -3 lines 0 comments Download
M content/renderer/media/rtc_peer_connection_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/media/webrtc/mock_peer_connection_dependency_factory.h View 1 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/media/webrtc/mock_peer_connection_dependency_factory.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/media/webrtc/peer_connection_dependency_factory.h View 1 2 chunks +5 lines, -6 lines 0 comments Download
M content/renderer/media/webrtc/peer_connection_dependency_factory.cc View 1 3 chunks +4 lines, -3 lines 0 comments Download
M content/renderer/pepper/pepper_file_system_host.cc View 1 2 chunks +4 lines, -3 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_instance_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +8 lines, -4 lines 0 comments Download
M content/renderer/pepper/url_request_info_util.h View 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/pepper/url_request_info_util.cc View 4 chunks +34 lines, -35 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +6 lines, -4 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -2 lines 0 comments Download
M content/renderer/savable_resources.h View 2 chunks +3 lines, -3 lines 0 comments Download
M content/renderer/savable_resources.cc View 6 7 3 chunks +5 lines, -5 lines 0 comments Download
M content/shell/renderer/layout_test/blink_test_runner.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +6 lines, -1 line 0 comments Download
M content/shell/test_runner/accessibility_controller.h View 1 chunk +2 lines, -0 lines 0 comments Download
M content/shell/test_runner/accessibility_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +23 lines, -7 lines 0 comments Download
M content/shell/test_runner/pixel_dump.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +5 lines, -1 line 0 comments Download
M content/shell/test_runner/test_runner.cc View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +16 lines, -4 lines 0 comments Download
M content/shell/test_runner/test_runner_for_specific_view.cc View 1 1 chunk +7 lines, -1 line 0 comments Download
M content/shell/test_runner/text_input_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -0 lines 0 comments Download
M content/test/layouttest_support.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +8 lines, -2 lines 0 comments Download
M extensions/renderer/api/automation/automation_api_helper.cc View 2 chunks +10 lines, -3 lines 0 comments Download
M extensions/renderer/script_context.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M extensions/renderer/script_context.cc View 1 2 3 4 5 6 7 8 9 3 chunks +10 lines, -6 lines 0 comments Download
M extensions/renderer/script_context_browsertest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M extensions/renderer/script_context_set.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -4 lines 0 comments Download
M extensions/renderer/script_context_set.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/exported/WebRemoteFrameImpl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/exported/WebRemoteFrameImpl.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/modules/exported/WebAXObject.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/web/tests/BrowserControlsTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/TouchActionTest.cpp View 1 2 3 4 5 6 7 8 9 10 8 chunks +11 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/web/tests/VisualViewportTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/WebDocumentTest.cpp View 1 2 chunks +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 15 chunks +24 lines, -23 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebPluginContainerTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 36 chunks +46 lines, -42 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebSearchableFormDataTest.cpp View 1 3 chunks +8 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebViewTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 19 chunks +27 lines, -26 lines 0 comments Download
M third_party/WebKit/public/web/WebAXObject.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +0 lines, -2 lines 0 comments Download
M third_party/WebKit/public/web/WebFrame.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +0 lines, -3 lines 0 comments Download
M third_party/WebKit/public/web/WebLocalFrame.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 83 (63 generated)
Łukasz Anforowicz
dcheng@, could you PTAL? https://codereview.chromium.org/2928033002/diff/160001/android_webview/renderer/aw_render_frame_ext.cc File android_webview/renderer/aw_render_frame_ext.cc (right): https://codereview.chromium.org/2928033002/diff/160001/android_webview/renderer/aw_render_frame_ext.cc#newcode192 android_webview/renderer/aw_render_frame_ext.cc:192: DCHECK(frame && !frame->Parent()); 1) AwRenderFrameExt ...
3 years, 6 months ago (2017-06-15 20:15:59 UTC) #28
dcheng
https://codereview.chromium.org/2928033002/diff/160001/chrome/renderer/chrome_content_renderer_client.cc File chrome/renderer/chrome_content_renderer_client.cc (right): https://codereview.chromium.org/2928033002/diff/160001/chrome/renderer/chrome_content_renderer_client.cc#newcode787 chrome/renderer/chrome_content_renderer_client.cc:787: app_url = frame->Top()->ToWebLocalFrame()->GetDocument().Url(); On 2017/06/15 20:15:59, Łukasz A. wrote: ...
3 years, 6 months ago (2017-06-15 23:17:00 UTC) #29
Łukasz Anforowicz
Thanks for reviewing - can you take another look please? https://codereview.chromium.org/2928033002/diff/160001/chrome/renderer/chrome_content_renderer_client.cc File chrome/renderer/chrome_content_renderer_client.cc (right): https://codereview.chromium.org/2928033002/diff/160001/chrome/renderer/chrome_content_renderer_client.cc#newcode787 ...
3 years, 6 months ago (2017-06-16 19:39:24 UTC) #36
dcheng
lgtm https://codereview.chromium.org/2928033002/diff/160001/content/shell/renderer/layout_test/blink_test_runner.cc File content/shell/renderer/layout_test/blink_test_runner.cc (right): https://codereview.chromium.org/2928033002/diff/160001/content/shell/renderer/layout_test/blink_test_runner.cc#newcode1054 content/shell/renderer/layout_test/blink_test_runner.cc:1054: leak_detector_->TryLeakDetection(main_frame); On 2017/06/16 19:39:24, Łukasz A. wrote: > ...
3 years, 6 months ago (2017-06-20 09:02:21 UTC) #39
dcheng
https://codereview.chromium.org/2928033002/diff/200001/third_party/WebKit/Source/web/tests/WebFrameTest.cpp File third_party/WebKit/Source/web/tests/WebFrameTest.cpp (right): https://codereview.chromium.org/2928033002/diff/200001/third_party/WebKit/Source/web/tests/WebFrameTest.cpp#newcode7731 third_party/WebKit/Source/web/tests/WebFrameTest.cpp:7731: WebLocalFrame* frame = web_view_helper.WebView()->MainFrameImpl(); On 2017/06/20 09:02:21, dcheng wrote: ...
3 years, 6 months ago (2017-06-20 09:03:13 UTC) #40
Łukasz Anforowicz
alexmos@, could you PTAL at //content? https://codereview.chromium.org/2928033002/diff/200001/third_party/WebKit/Source/web/tests/WebFrameTest.cpp File third_party/WebKit/Source/web/tests/WebFrameTest.cpp (right): https://codereview.chromium.org/2928033002/diff/200001/third_party/WebKit/Source/web/tests/WebFrameTest.cpp#newcode7731 third_party/WebKit/Source/web/tests/WebFrameTest.cpp:7731: WebLocalFrame* frame = ...
3 years, 6 months ago (2017-06-20 16:59:44 UTC) #42
alexmos
Awesome cleanup, content/ LGTM! https://codereview.chromium.org/2928033002/diff/220001/chrome/browser/web_applications/web_app_unittest.cc File chrome/browser/web_applications/web_app_unittest.cc (right): https://codereview.chromium.org/2928033002/diff/220001/chrome/browser/web_applications/web_app_unittest.cc#newcode24 chrome/browser/web_applications/web_app_unittest.cc:24: using content::RenderViewHostTester; nit: not needed ...
3 years, 6 months ago (2017-06-20 22:44:11 UTC) #47
Łukasz Anforowicz
https://codereview.chromium.org/2928033002/diff/220001/chrome/browser/web_applications/web_app_unittest.cc File chrome/browser/web_applications/web_app_unittest.cc (right): https://codereview.chromium.org/2928033002/diff/220001/chrome/browser/web_applications/web_app_unittest.cc#newcode24 chrome/browser/web_applications/web_app_unittest.cc:24: using content::RenderViewHostTester; On 2017/06/20 22:44:11, alexmos wrote: > nit: ...
3 years, 6 months ago (2017-06-20 23:19:15 UTC) #50
Łukasz Anforowicz
+rdevlin.cronin@ for extensions/renderer/ +sebsg@ for components/autofill/content/renderer/ +thakis@ for chrome/ +michaelbai@ for android_webview/renderer/ +jialiul@ for components/safe_browsing/renderer/
3 years, 6 months ago (2017-06-20 23:25:48 UTC) #52
Łukasz Anforowicz
Really adding jialiul@ this time... :-)
3 years, 6 months ago (2017-06-20 23:26:41 UTC) #54
michaelbai
boliu@ would you like to review webview change?
3 years, 6 months ago (2017-06-21 00:28:02 UTC) #60
boliu
android_webview lgtm https://codereview.chromium.org/2928033002/diff/240001/android_webview/renderer/aw_render_frame_ext.cc File android_webview/renderer/aw_render_frame_ext.cc (right): https://codereview.chromium.org/2928033002/diff/240001/android_webview/renderer/aw_render_frame_ext.cc#newcode192 android_webview/renderer/aw_render_frame_ext.cc:192: DCHECK(frame && !frame->Parent()); nit: split into two ...
3 years, 6 months ago (2017-06-21 00:49:56 UTC) #61
Devlin
https://codereview.chromium.org/2928033002/diff/240001/extensions/renderer/script_context.cc File extensions/renderer/script_context.cc (right): https://codereview.chromium.org/2928033002/diff/240001/extensions/renderer/script_context.cc#newcode325 extensions/renderer/script_context.cc:325: parent_document = parent && parent->IsWebLocalFrame() This actually seems like ...
3 years, 6 months ago (2017-06-21 00:57:55 UTC) #62
Jialiu Lin
Thanks! chrome/renderer/safe_browsing/* lgtm
3 years, 6 months ago (2017-06-21 02:20:44 UTC) #65
Łukasz Anforowicz
Devlin - I tried to address your concerns below - PTAL? https://codereview.chromium.org/2928033002/diff/240001/android_webview/renderer/aw_render_frame_ext.cc File android_webview/renderer/aw_render_frame_ext.cc (right): ...
3 years, 6 months ago (2017-06-21 16:54:35 UTC) #68
Devlin
extensions lgtm https://codereview.chromium.org/2928033002/diff/240001/extensions/renderer/script_context.cc File extensions/renderer/script_context.cc (right): https://codereview.chromium.org/2928033002/diff/240001/extensions/renderer/script_context.cc#newcode325 extensions/renderer/script_context.cc:325: parent_document = parent && parent->IsWebLocalFrame() On 2017/06/21 ...
3 years, 6 months ago (2017-06-21 19:24:51 UTC) #73
sebsg
autofill LGTM
3 years, 6 months ago (2017-06-21 21:10:40 UTC) #76
Nico
chrome lgtm
3 years, 6 months ago (2017-06-22 19:19:44 UTC) #77
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/2928033002/280001
3 years, 6 months ago (2017-06-22 19:39:59 UTC) #80
commit-bot: I haz the power
3 years, 6 months ago (2017-06-23 00:00:40 UTC) #83
Message was sent while issue was closed.
Committed patchset #15 (id:280001) as
https://chromium.googlesource.com/chromium/src/+/bedb4b202b4b909e7e1f79439cad...

Powered by Google App Engine
This is Rietveld 408576698