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

Issue 2600253003: Fix plugin placeholders not loading (Closed)

Created:
3 years, 12 months ago by Nate Chapin
Modified:
3 years, 11 months ago
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix plugin placeholders not loading I have made a truly wonderful mess of WebViewPlugin, via: https://chromium.googlesource.com/chromium/src/+/8489f1bf78c2c6f296e0df6c529751d29e8a0188 https://chromium.googlesource.com/chromium/src/+/8ed4bf69eca5e2696aeab731a8e9a15e8f379f2b My fundamental misunderstanding (I think!) was regarding what WebViewPlugin is listening to via the various interfaces it subclasses. It uses WebFrameClient and WebViewClient to observe its internal WebView, while it uses WebPlugin and RenderViewObserver to interact with the real external page. In the patches above, I mixed and matched messages from those 2 sources because I thought they were coming from the same context. This patch reverts the damage done in those patches, and restores ReplayReceivedData, more-or-less the way it was before I started breaking stuff. It then continues the work I started in https://chromium.googlesource.com/chromium/src/+/8e1badd5fbc054cf4ffc9303e8cb0aa22ce55ca6 and moves the subclassing of WebViewClient to a private helper class. This helper, renamed to WebViewHelper, now handles all callbacks coming from the internal WebView (i.e., the "WebView" in "WebViewPlugin"), and WebViewPlugin continues subclassing WebPlugin and RenderViewObserver to observe the outside world. This will hopefully make it harder to screw things up in the same way in the future. BUG=675585 Committed: https://crrev.com/b08418cd6d5f472ca454216aab8fd06cf9a19a36 Cr-Commit-Position: refs/heads/master@{#441401}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Address bauerb's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+125 lines, -83 lines) Patch
M components/plugins/renderer/loadable_plugin_placeholder.cc View 1 chunk +1 line, -2 lines 0 comments Download
M components/plugins/renderer/webview_plugin.h View 5 chunks +43 lines, -33 lines 0 comments Download
M components/plugins/renderer/webview_plugin.cc View 1 9 chunks +81 lines, -48 lines 0 comments Download

Messages

Total messages: 22 (16 generated)
Nate Chapin
In which I try to both repair the damage I have done and make it ...
3 years, 12 months ago (2016-12-28 00:16:44 UTC) #8
Bernhard Bauer
LGTM with some nits: https://codereview.chromium.org/2600253003/diff/1/components/plugins/renderer/webview_plugin.cc File components/plugins/renderer/webview_plugin.cc (right): https://codereview.chromium.org/2600253003/diff/1/components/plugins/renderer/webview_plugin.cc#newcode92 components/plugins/renderer/webview_plugin.cc:92: if (focused_) { Nit: It ...
3 years, 11 months ago (2017-01-03 17:01:33 UTC) #9
Nate Chapin
https://codereview.chromium.org/2600253003/diff/1/components/plugins/renderer/webview_plugin.cc File components/plugins/renderer/webview_plugin.cc (right): https://codereview.chromium.org/2600253003/diff/1/components/plugins/renderer/webview_plugin.cc#newcode92 components/plugins/renderer/webview_plugin.cc:92: if (focused_) { On 2017/01/03 17:01:33, Bernhard (just came ...
3 years, 11 months ago (2017-01-03 20:04:26 UTC) #11
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/2600253003/20001
3 years, 11 months ago (2017-01-04 17:30:24 UTC) #17
commit-bot: I haz the power
Committed patchset #2 (id:20001)
3 years, 11 months ago (2017-01-04 17:34:55 UTC) #20
commit-bot: I haz the power
3 years, 11 months ago (2017-01-04 17:37:57 UTC) #22
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/b08418cd6d5f472ca454216aab8fd06cf9a19a36
Cr-Commit-Position: refs/heads/master@{#441401}

Powered by Google App Engine
This is Rietveld 408576698