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 2862031: Add click-to-load functionality for blocked plugins. (Closed)

Created:
10 years, 5 months ago by Bernhard Bauer
Modified:
9 years, 7 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, brettw-cc_chromium.org, jam
Base URL:
git://codf21.jail/chromium.git
Visibility:
Public.

Description

Add click-to-load functionality for blocked plugins. BUG=35316 TEST=Disable plugins, go to a site with a flash animation. You should see a placeholder for the flash animation. When you click on it, the animation should load. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=52899

Patch Set 1 #

Patch Set 2 : Remove unnecessary file. #

Patch Set 3 : Fix compile error. #

Patch Set 4 : Remove plugin.png for testing. #

Patch Set 5 : Fix Skia compile error. #

Patch Set 6 : fix win compile error? #

Patch Set 7 : '' #

Patch Set 8 : fix a typo #

Patch Set 9 : Move blocked plugin initialization into BlockedPlugin #

Total comments: 2

Patch Set 10 : fix a crash #

Patch Set 11 : add virtual destructor to domuiplugindelegate #

Total comments: 21

Patch Set 12 : feedback #

Patch Set 13 : '' #

Total comments: 3

Patch Set 14 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+496 lines, -29 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +6 lines, -1 line 0 comments Download
M chrome/chrome_renderer.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
A chrome/renderer/blocked_plugin.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +39 lines, -0 lines 0 comments Download
A chrome/renderer/blocked_plugin.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +85 lines, -0 lines 0 comments Download
M chrome/renderer/render_view.h View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +11 lines, -1 line 0 comments Download
M chrome/renderer/render_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 8 chunks +44 lines, -27 lines 0 comments Download
M chrome/renderer/renderer_resources.grd View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
A chrome/renderer/resources/blocked_plugin.html View 1 2 3 4 5 6 7 8 9 1 chunk +57 lines, -0 lines 0 comments Download
A webkit/glue/plugins/webview_plugin.h View 12 13 1 chunk +107 lines, -0 lines 0 comments Download
A webkit/glue/plugins/webview_plugin.cc View 12 13 1 chunk +142 lines, -0 lines 0 comments Download
M webkit/glue/webkit_glue.gypi View 12 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
Bernhard Bauer
Could you please review this?
10 years, 5 months ago (2010-07-05 18:11:43 UTC) #1
Nico
Drive-by bikeshed http://codereview.chromium.org/2862031/diff/21001/22001 File chrome/app/generated_resources.grd (right): http://codereview.chromium.org/2862031/diff/21001/22001#newcode3704 chrome/app/generated_resources.grd:3704: Click here to load plugin Just "Load ...
10 years, 5 months ago (2010-07-07 00:02:32 UTC) #2
darin (slow to review)
One thing occurred to me about the design of this. We have previously tried to ...
10 years, 5 months ago (2010-07-08 06:34:39 UTC) #3
darin (slow to review)
On 2010/07/08 06:34:39, darin wrote: > One thing occurred to me about the design of ...
10 years, 5 months ago (2010-07-08 06:35:08 UTC) #4
Bernhard Bauer
http://codereview.chromium.org/2862031/diff/21001/22001 File chrome/app/generated_resources.grd (right): http://codereview.chromium.org/2862031/diff/21001/22001#newcode3704 chrome/app/generated_resources.grd:3704: Click here to load plugin On 2010/07/07 00:02:32, Nico ...
10 years, 5 months ago (2010-07-08 08:49:54 UTC) #5
Bernhard Bauer
On 2010/07/08 06:35:08, darin wrote: > On 2010/07/08 06:34:39, darin wrote: > > One thing ...
10 years, 5 months ago (2010-07-08 09:23:32 UTC) #6
darin (slow to review)
On 2010/07/08 09:23:32, Bernhard Bauer wrote: > On 2010/07/08 06:35:08, darin wrote: > > On ...
10 years, 5 months ago (2010-07-13 20:26:19 UTC) #7
Bernhard Bauer
Ping?
10 years, 5 months ago (2010-07-15 18:38:31 UTC) #8
darin (slow to review)
really sorry... this fell off my radar :( http://codereview.chromium.org/2862031/diff/31001/32003 File chrome/renderer/blocked_plugin.cc (right): http://codereview.chromium.org/2862031/diff/31001/32003#newcode48 chrome/renderer/blocked_plugin.cc:48: NOTREACHED() ...
10 years, 5 months ago (2010-07-15 23:55:51 UTC) #9
Bernhard Bauer
On 2010/07/15 23:55:51, darin wrote: > really sorry... this fell off my radar :( > ...
10 years, 5 months ago (2010-07-16 15:15:18 UTC) #10
darin (slow to review)
On Fri, Jul 16, 2010 at 8:15 AM, <bauerb@chromium.org> wrote: > On 2010/07/15 23:55:51, darin ...
10 years, 5 months ago (2010-07-16 15:51:42 UTC) #11
darin (slow to review)
On Fri, Jul 16, 2010 at 8:51 AM, Darin Fisher <darin@chromium.org> wrote: > On Fri, ...
10 years, 5 months ago (2010-07-16 15:53:40 UTC) #12
Bernhard Bauer
On 2010/07/16 15:51:42, darin wrote: > See > http://dev.chromium.org/developers/coding-style#TOC-CHECK-vs-DCHECK-and-NOTREACHED- > > Is this an error ...
10 years, 5 months ago (2010-07-16 16:35:12 UTC) #13
darin (slow to review)
On Fri, Jul 16, 2010 at 9:35 AM, <bauerb@chromium.org> wrote: > On 2010/07/16 15:51:42, darin ...
10 years, 5 months ago (2010-07-16 17:12:50 UTC) #14
Bernhard Bauer
Okay, done and done. (Seeing as the CL seems to be converging (and the feature ...
10 years, 5 months ago (2010-07-16 21:26:06 UTC) #15
darin (slow to review)
LGTM w/ nits: http://codereview.chromium.org/2862031/diff/47001/44006 File chrome/renderer/render_view.cc (right): http://codereview.chromium.org/2862031/diff/47001/44006#newcode3741 chrome/renderer/render_view.cc:3741: BlockedPlugin* blocked_plugin = new BlockedPlugin(this, frame, ...
10 years, 5 months ago (2010-07-17 02:58:49 UTC) #16
Nico
One conceptual question (doesn't block this CL): Some sites check navigator.plugins and don't even put ...
10 years, 5 months ago (2010-07-19 05:13:51 UTC) #17
darin (slow to review)
Yeah, I think we need to undo that behavior. We should make it look like ...
10 years, 5 months ago (2010-07-19 05:44:03 UTC) #18
Bernhard Bauer
That's actually already a side effect of this CL (otherwise we wouldn't get the necessary ...
10 years, 5 months ago (2010-07-19 05:50:31 UTC) #19
Peter Kasting
On Sun, Jul 18, 2010 at 10:43 PM, Darin Fisher <darin@chromium.org> wrote: > Yeah, I ...
10 years, 5 months ago (2010-07-19 17:01:17 UTC) #20
Nico
On 2010/07/19 17:01:17, Peter Kasting wrote: > On Sun, Jul 18, 2010 at 10:43 PM, ...
10 years, 5 months ago (2010-07-19 17:07:05 UTC) #21
Bernhard Bauer
10 years, 5 months ago (2010-07-19 17:09:34 UTC) #22
If a plugin is disabled via about:plugins, then it doesn't show up in
navigator.plugins. I can't think of another (non-pathological) case
where a plugin doesn't appear and there's also no click-to-play.

On Mon, Jul 19, 2010 at 19:00, Peter Kasting <pkasting@chromium.org> wrote:
> On Sun, Jul 18, 2010 at 10:43 PM, Darin Fisher <darin@chromium.org> wrote:
>>
>> Yeah, I think we need to undo that behavior.  We should make it look like
>> the plugins
>> exist.  I know this breaks some sites if we then do not actually let the
>> plugins load,
>> but that might be the lesser of the two issues.
>
> I haven't paid attention to the UI changes in this review.  Is there still a
> mode where a plugin is disabled and doesn't have click-to-play (it's just
> permanently off, like today)?  If so, then in that mode, we should probably
> not revert the behavior you describe.  For the click-to-play mode, I agree
> that we should probably revert this.
>>>
>>> http://codereview.chromium.org/2862031/show
>>
>
>

Powered by Google App Engine
This is Rietveld 408576698