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

Issue 2923433002: Move ExecuteScript method from WebFrame to WebLocalFrame. (Closed)

Created:
3 years, 6 months ago by Łukasz Anforowicz
Modified:
3 years, 6 months ago
CC:
chromium-reviews, skanuj+watch_chromium.org, vakh+watch_chromium.org, viettrungluu+watch_chromium.org, jered+watch_chromium.org, yzshen+watch_chromium.org, kinuko+watch, qsr+mojo_chromium.org, extensions-reviews_chromium.org, Yoav Weiss, melevin+watch_chromium.org, grt+watch_chromium.org, jam, abarth-chromium, dglazkov+blink, darin-cc_chromium.org, blink-reviews, chromium-apps-reviews_chromium.org, blink-reviews-api_chromium.org, mlamouri+watch-content_chromium.org, timvolodine, jfweitz+watch_chromium.org, dcheng, jochen+watch_chromium.org, gavinp+prerender_chromium.org, mlamouri+watch-blink_chromium.org, donnd+watch_chromium.org, Aaron Boodman, David Black, samarth+watch_chromium.org, kmadhusu+watch_chromium.org, darin (slow to review), platform-architecture-syd+reviews-web_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Move ExecuteScript method from WebFrame to WebLocalFrame. Many callers already were calling through WebLocalFrame. For 4 callers that can't guarantee at compile-time that the target frame is a local frame, this CL: - preserves the NOTREACHED() / no-op behavior (in case of components/plugins/renderer/loadable_plugin_placeholder.cc) - or does the same, but upgrading NOTREACHED() to a CHECK() (in case of content/shell/test_runner/test_runner.cc) No intended behavior change. BUG=416660 TBR=mattm@chromium.org, dcblack@chromium.org, scottbyer@chromium.org, avi@chromium.org Review-Url: https://codereview.chromium.org/2923433002 Cr-Commit-Position: refs/heads/master@{#477333} Committed: https://chromium.googlesource.com/chromium/src/+/bb4fe6d5aa4d9584944c2223dcd7f3b92da42e9a

Patch Set 1 #

Total comments: 4

Patch Set 2 : Addressed CR feedback. #

Total comments: 3

Patch Set 3 : Tweaked a comment in WebViewPlugin::WebViewHelper::main_frame [as suggested in CR feedback] #

Unified diffs Side-by-side diffs Delta from patch set Stats (+104 lines, -91 lines) Patch
M chrome/renderer/safe_browsing/phishing_dom_feature_extractor_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/searchbox/searchbox_extension.h View 2 chunks +11 lines, -11 lines 0 comments Download
M chrome/renderer/searchbox/searchbox_extension.cc View 4 chunks +11 lines, -11 lines 0 comments Download
M components/plugins/renderer/loadable_plugin_placeholder.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M components/plugins/renderer/webview_plugin.h View 1 4 chunks +5 lines, -1 line 0 comments Download
M components/plugins/renderer/webview_plugin.cc View 1 2 4 chunks +10 lines, -8 lines 0 comments Download
M components/printing/renderer/print_web_view_helper.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/mojo_main_runner.h View 3 chunks +4 lines, -3 lines 0 comments Download
M content/renderer/mojo_main_runner.cc View 2 chunks +3 lines, -4 lines 0 comments Download
M content/shell/test_runner/test_runner.cc View 2 chunks +14 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/WebRemoteFrameImpl.h View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp View 1 chunk +0 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/web/tests/PrerenderingTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/ViewportTest.cpp View 5 chunks +5 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/tests/VisualViewportTest.cpp View 3 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameTest.cpp View 17 chunks +25 lines, -29 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebViewTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/public/web/WebFrame.h View 1 chunk +0 lines, -3 lines 0 comments Download
M third_party/WebKit/public/web/WebLocalFrame.h View 1 2 chunks +5 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 31 (16 generated)
Łukasz Anforowicz
dcheng@, could you PTAL?
3 years, 6 months ago (2017-06-02 23:45:50 UTC) #4
dcheng
https://codereview.chromium.org/2923433002/diff/1/components/plugins/renderer/loadable_plugin_placeholder.cc File components/plugins/renderer/loadable_plugin_placeholder.cc (right): https://codereview.chromium.org/2923433002/diff/1/components/plugins/renderer/loadable_plugin_placeholder.cc#newcode149 components/plugins/renderer/loadable_plugin_placeholder.cc:149: if (!main_frame->IsWebLocalFrame()) { As this is a WebViewPlugin, which ...
3 years, 6 months ago (2017-06-04 10:37:23 UTC) #7
Łukasz Anforowicz
Daniel - thanks for the review and feedback. https://codereview.chromium.org/2923433002/diff/1/components/plugins/renderer/loadable_plugin_placeholder.cc File components/plugins/renderer/loadable_plugin_placeholder.cc (right): https://codereview.chromium.org/2923433002/diff/1/components/plugins/renderer/loadable_plugin_placeholder.cc#newcode149 components/plugins/renderer/loadable_plugin_placeholder.cc:149: if ...
3 years, 6 months ago (2017-06-05 17:10:57 UTC) #10
dcheng
LGTM https://codereview.chromium.org/2923433002/diff/20001/components/plugins/renderer/webview_plugin.cc File components/plugins/renderer/webview_plugin.cc (right): https://codereview.chromium.org/2923433002/diff/20001/components/plugins/renderer/webview_plugin.cc#newcode276 components/plugins/renderer/webview_plugin.cc:276: // - this will always be a local ...
3 years, 6 months ago (2017-06-05 18:20:51 UTC) #11
Łukasz Anforowicz
https://codereview.chromium.org/2923433002/diff/20001/components/plugins/renderer/webview_plugin.cc File components/plugins/renderer/webview_plugin.cc (right): https://codereview.chromium.org/2923433002/diff/20001/components/plugins/renderer/webview_plugin.cc#newcode276 components/plugins/renderer/webview_plugin.cc:276: // - this will always be a local frame. ...
3 years, 6 months ago (2017-06-05 19:02:38 UTC) #12
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/2923433002/40001
3 years, 6 months ago (2017-06-05 19:03:14 UTC) #15
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/455820)
3 years, 6 months ago (2017-06-05 19:14:11 UTC) #17
Łukasz Anforowicz
tommycli@ can you PTAL at the changes in components/plugins/ ?
3 years, 6 months ago (2017-06-05 19:43:11 UTC) #19
tommycli
plugins changes look harmless lgtm
3 years, 6 months ago (2017-06-06 16:32:10 UTC) #20
Łukasz Anforowicz
I'll TBR the rest of the CL (which just changes WebFrame to WebLocalFrame in a ...
3 years, 6 months ago (2017-06-06 16:58:20 UTC) #23
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/2923433002/40001
3 years, 6 months ago (2017-06-06 16:58:56 UTC) #25
Avi (use Gerrit)
lgtm stamp
3 years, 6 months ago (2017-06-06 17:04:02 UTC) #26
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/bb4fe6d5aa4d9584944c2223dcd7f3b92da42e9a
3 years, 6 months ago (2017-06-06 17:47:03 UTC) #29
mattm
safe_browsing lgtm
3 years, 6 months ago (2017-06-06 19:37:52 UTC) #30
Scott Byer
3 years, 6 months ago (2017-06-07 15:48:50 UTC) #31
Message was sent while issue was closed.
On 2017/06/06 at 19:37:52, mattm wrote:
> safe_browsing lgtm

printing lgtm

Powered by Google App Engine
This is Rietveld 408576698