Chromium Code Reviews

Issue 2752009: Fix media player painting bug. (Closed)

Created:
10 years, 6 months ago by ananta
Modified:
9 years, 6 months ago
Reviewers:
stuartmorgan, jam
CC:
chromium-reviews, jam, darin-cc_chromium.org
Visibility:
Public.

Description

At times the Windows media player plugin would not render video. This would occur if it initially received a geometry update of size 0. The plugin has a bug where it ignores subsequent geometry updates. Based on the webkit plugin implementation they have a quirk which handles this case for media player and divx. To ensure that this quirk works correctly in cases where we only receive one geometry update we send out geometry updates during paint as well if needed. Fix is to mimic this behavior for Chromium. Fixes bug http://code.google.com/p/chromium/issues/detail?id=43916 Bug=43916 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=49841

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 3

Patch Set 4 : '' #

Total comments: 2

Patch Set 5 : '' #

Patch Set 6 : '' #

Total comments: 2

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Patch Set 10 : '' #

Total comments: 5

Patch Set 11 : '' #

Unified diffs Side-by-side diffs Stats (+59 lines, -10 lines)
M webkit/glue/plugins/webplugin_delegate_impl.h View 2 chunks +10 lines, -5 lines 0 comments
M webkit/glue/plugins/webplugin_delegate_impl.cc View 1 chunk +11 lines, -0 lines 0 comments
M webkit/glue/plugins/webplugin_delegate_impl_gtk.cc View 1 chunk +2 lines, -1 line 0 comments
M webkit/glue/plugins/webplugin_delegate_impl_mac.mm View 1 chunk +2 lines, -1 line 0 comments
M webkit/glue/plugins/webplugin_delegate_impl_win.cc View 3 chunks +13 lines, -1 line 0 comments
M webkit/glue/plugins/webplugin_impl.cc View 2 chunks +21 lines, -2 lines 0 comments

Messages

Total messages: 23 (0 generated)
ananta
10 years, 6 months ago (2010-06-11 22:13:16 UTC) #1
stuartmorgan
http://codereview.chromium.org/2752009/diff/11001/12001 File webkit/glue/plugins/webplugin_delegate_impl.cc (right): http://codereview.chromium.org/2752009/diff/11001/12001#newcode145 webkit/glue/plugins/webplugin_delegate_impl.cc:145: return; Do you actually want to bypass the whole ...
10 years, 6 months ago (2010-06-14 21:15:01 UTC) #2
ananta
As per our discussion, changed the quirk to PLUGIN_QUIRK_IGNORE_FIRST_SETWINDOW_CALL and added a comment indicating that ...
10 years, 6 months ago (2010-06-14 21:58:21 UTC) #3
jam
lgtm http://codereview.chromium.org/2752009/diff/18001/19002 File webkit/glue/plugins/webplugin_delegate_impl.h (right): http://codereview.chromium.org/2752009/diff/18001/19002#newcode78 webkit/glue/plugins/webplugin_delegate_impl.h:78: // cause issues. I'm confused as to why ...
10 years, 6 months ago (2010-06-14 22:09:39 UTC) #4
ananta
http://codereview.chromium.org/2752009/diff/18001/19002 File webkit/glue/plugins/webplugin_delegate_impl.h (right): http://codereview.chromium.org/2752009/diff/18001/19002#newcode78 webkit/glue/plugins/webplugin_delegate_impl.h:78: // cause issues. On 2010/06/14 22:09:39, John Abd-El-Malek wrote: ...
10 years, 6 months ago (2010-06-14 22:21:50 UTC) #5
stuartmorgan
On 2010/06/14 22:09:39, John Abd-El-Malek wrote: > I'm confused as to why we should add ...
10 years, 6 months ago (2010-06-14 22:33:39 UTC) #6
jam
On Mon, Jun 14, 2010 at 3:33 PM, <stuartmorgan@chromium.org> wrote: > On 2010/06/14 22:09:39, John ...
10 years, 6 months ago (2010-06-14 22:41:48 UTC) #7
stuartmorgan
On 2010/06/14 22:41:48, John Abd-El-Malek wrote: > > The concern is that the implementation of ...
10 years, 6 months ago (2010-06-14 22:49:07 UTC) #8
ananta
On 2010/06/14 22:49:07, stuartmorgan wrote: > On 2010/06/14 22:41:48, John Abd-El-Malek wrote: > > > ...
10 years, 6 months ago (2010-06-14 23:30:18 UTC) #9
stuartmorgan
http://codereview.chromium.org/2752009/diff/32001/33005 File webkit/glue/plugins/webplugin_delegate_impl_win.cc (right): http://codereview.chromium.org/2752009/diff/32001/33005#newcode327 webkit/glue/plugins/webplugin_delegate_impl_win.cc:327: } else if (instance_->mime_type() == "video/divx") { Oops, I ...
10 years, 6 months ago (2010-06-15 00:13:44 UTC) #10
ananta
http://codereview.chromium.org/2752009/diff/32001/33005 File webkit/glue/plugins/webplugin_delegate_impl_win.cc (right): http://codereview.chromium.org/2752009/diff/32001/33005#newcode327 webkit/glue/plugins/webplugin_delegate_impl_win.cc:327: } else if (instance_->mime_type() == "video/divx") { On 2010/06/15 ...
10 years, 6 months ago (2010-06-15 00:34:43 UTC) #11
stuartmorgan
http://codereview.chromium.org/2752009/diff/53001/38007 File webkit/glue/plugins/webplugin_impl.cc (right): http://codereview.chromium.org/2752009/diff/53001/38007#newcode302 webkit/glue/plugins/webplugin_impl.cc:302: // a geometry update during paint which should go ...
10 years, 6 months ago (2010-06-15 15:59:19 UTC) #12
stuartmorgan
http://codereview.chromium.org/2752009/diff/53001/38006 File webkit/glue/plugins/webplugin_delegate_impl_win.cc (right): http://codereview.chromium.org/2752009/diff/53001/38006#newcode328 webkit/glue/plugins/webplugin_delegate_impl_win.cc:328: std::wstring::npos) { Also, your comment said DivX doesn't need ...
10 years, 6 months ago (2010-06-15 16:00:40 UTC) #13
ananta
http://codereview.chromium.org/2752009/diff/53001/38006 File webkit/glue/plugins/webplugin_delegate_impl_win.cc (right): http://codereview.chromium.org/2752009/diff/53001/38006#newcode328 webkit/glue/plugins/webplugin_delegate_impl_win.cc:328: std::wstring::npos) { On 2010/06/15 16:00:40, stuartmorgan wrote: > Also, ...
10 years, 6 months ago (2010-06-15 17:06:56 UTC) #14
stuartmorgan
http://codereview.chromium.org/2752009/diff/53001/38007 File webkit/glue/plugins/webplugin_impl.cc (right): http://codereview.chromium.org/2752009/diff/53001/38007#newcode302 webkit/glue/plugins/webplugin_impl.cc:302: // a geometry update during paint which should go ...
10 years, 6 months ago (2010-06-15 17:17:59 UTC) #15
ananta
On 2010/06/15 17:17:59, stuartmorgan wrote: > http://codereview.chromium.org/2752009/diff/53001/38007 > File webkit/glue/plugins/webplugin_impl.cc (right): > > http://codereview.chromium.org/2752009/diff/53001/38007#newcode302 > ...
10 years, 6 months ago (2010-06-15 17:42:52 UTC) #16
ananta
On 2010/06/15 17:42:52, ananta wrote: > On 2010/06/15 17:17:59, stuartmorgan wrote: > > http://codereview.chromium.org/2752009/diff/53001/38007 > ...
10 years, 6 months ago (2010-06-15 18:12:59 UTC) #17
stuartmorgan
On 2010/06/15 17:42:52, ananta wrote: > Well we also have checks in the plugin code ...
10 years, 6 months ago (2010-06-15 18:14:12 UTC) #18
jam
lgtm
10 years, 6 months ago (2010-06-15 18:19:54 UTC) #19
ananta
On 2010/06/15 18:14:12, stuartmorgan wrote: > On 2010/06/15 17:42:52, ananta wrote: > > Well we ...
10 years, 6 months ago (2010-06-15 18:20:10 UTC) #20
stuartmorgan
On 2010/06/15 18:20:10, ananta wrote: > We don't support windowless media player plugins in Chrome ...
10 years, 6 months ago (2010-06-15 18:34:14 UTC) #21
ananta
On 2010/06/15 18:34:14, stuartmorgan wrote: > On 2010/06/15 18:20:10, ananta wrote: > > We don't ...
10 years, 6 months ago (2010-06-15 19:02:32 UTC) #22
stuartmorgan
10 years, 6 months ago (2010-06-15 19:03:09 UTC) #23
LGTM

Powered by Google App Engine