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

Issue 2940863005: Move loading methods from WebFrame to WebLocalFrame. (Closed)

Created:
3 years, 6 months ago by Łukasz Anforowicz
Modified:
3 years, 6 months ago
Reviewers:
alexmos, dcheng
CC:
chromium-reviews, subresource-filter-reviews_chromium.org, mlamouri+watch-content_chromium.org, Yoav Weiss, gavinp+prerender_chromium.org, mlamouri+watch-test-runner_chromium.org, Peter Beverloo, jam, blink-reviews-api_chromium.org, dglazkov+blink, einbinder+watch-test-runner_chromium.org, blink-reviews, darin-cc_chromium.org, blink-reviews-frames_chromium.org, kinuko+watch, jochen+watch_chromium.org, platform-architecture-syd+reviews-web_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Move loading methods from WebFrame to WebLocalFrame. This CL moves 3 methods from WebFrame to WebLocalFrame: - Reload - ReloadWithOverrideURL - LoadRequest All callers except tests already call through WebLocalFrame. No expected behavior change in the product code. BUG=416660 Review-Url: https://codereview.chromium.org/2940863005 Cr-Commit-Position: refs/heads/master@{#480692} Committed: https://chromium.googlesource.com/chromium/src/+/96c9582ab93d94dd07dfe3ff21133082a798728a

Patch Set 1 #

Total comments: 2

Patch Set 2 : Accidental rebasing AND putting BlinkTestRunner's IsWebLocalFrame into DCHECK(...), instead of if(...). #

Patch Set 3 : Rebasing... #

Patch Set 4 : Fixing build problems introduced by rebasing... #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+125 lines, -126 lines) Patch
M content/shell/browser/layout_test/blink_test_controller.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M content/shell/browser/layout_test/blink_test_controller.cc View 1 2 chunks +7 lines, -5 lines 1 comment Download
M content/shell/renderer/layout_test/blink_test_runner.cc View 1 2 1 chunk +6 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/exported/WebAssociatedURLLoaderImplTest.cpp View 1 2 2 chunks +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/exported/WebRemoteFrameImpl.h View 1 1 chunk +0 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/exported/WebRemoteFrameImpl.cpp View 1 1 chunk +0 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FrameTestHelpers.h View 1 2 1 chunk +7 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FrameTestHelpers.cpp View 1 2 3 chunks +7 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/web/tests/ActivityLoggerTest.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/CompositorWorkerTest.cpp View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/FrameSerializerTest.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/ImeOnFocusTest.cpp View 1 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/tests/MHTMLTest.cpp View 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/PrerenderingTest.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/tests/ScreenWakeLockTest.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/ScrollingCoordinatorTest.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/VisualViewportTest.cpp View 1 4 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebDocumentSubresourceFilterTest.cpp View 1 2 chunks +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameTest.cpp View 1 2 41 chunks +45 lines, -45 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebInputEventConversionTest.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/WebViewTest.cpp View 1 2 3 7 chunks +12 lines, -12 lines 0 comments Download
M third_party/WebKit/public/web/WebFrame.h View 1 1 chunk +0 lines, -13 lines 0 comments Download
M third_party/WebKit/public/web/WebLocalFrame.h View 1 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (21 generated)
Łukasz Anforowicz
dcheng@, could you PTAL?
3 years, 6 months ago (2017-06-16 23:39:57 UTC) #8
dcheng
LGTM. Though I feel uncertain about the blink test runner change... maybe there's some work ...
3 years, 6 months ago (2017-06-16 23:54:13 UTC) #9
Łukasz Anforowicz
https://codereview.chromium.org/2940863005/diff/1/content/shell/renderer/layout_test/blink_test_runner.cc File content/shell/renderer/layout_test/blink_test_runner.cc (right): https://codereview.chromium.org/2940863005/diff/1/content/shell/renderer/layout_test/blink_test_runner.cc#newcode1030 content/shell/renderer/layout_test/blink_test_runner.cc:1030: if (render_view()->GetWebView()->MainFrame()->IsWebLocalFrame()) { On 2017/06/16 23:54:13, dcheng wrote: > ...
3 years, 6 months ago (2017-06-19 22:30:42 UTC) #12
Łukasz Anforowicz
alexmos@, could you PTAL at content/shell/browser/layout_test/blink_test_controller.cc content/shell/browser/layout_test/blink_test_controller.h content/shell/renderer/layout_test/blink_test_runner.cc ?
3 years, 6 months ago (2017-06-19 22:32:38 UTC) #14
alexmos
content/ LGTM
3 years, 6 months ago (2017-06-19 22:56:47 UTC) #19
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/2940863005/60001
3 years, 6 months ago (2017-06-19 23:20:09 UTC) #24
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/chromium/src/+/96c9582ab93d94dd07dfe3ff21133082a798728a
3 years, 6 months ago (2017-06-20 02:34:14 UTC) #28
Łukasz Anforowicz
3 years, 6 months ago (2017-06-22 16:45:46 UTC) #29
Message was sent while issue was closed.
Just wanted to add a comment pointing out a part of this CL that has introduced
a test-only crash / regression.  I am trying to fix this in
https://crrev.com/2946103003.

https://codereview.chromium.org/2940863005/diff/60001/content/shell/browser/l...
File content/shell/browser/layout_test/blink_test_controller.cc (right):

https://codereview.chromium.org/2940863005/diff/60001/content/shell/browser/l...
content/shell/browser/layout_test/blink_test_controller.cc:698:
main_window_->web_contents()->GetRenderViewHost()->GetRoutingID()));
It turns out that |main_window_| can be null here - see
https://codereview.chromium.org/2946103003.

Powered by Google App Engine
This is Rietveld 408576698