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

Issue 19585004: <webview>: Fix resize. (Closed)

Created:
7 years, 5 months ago by Fady Samuel
Modified:
7 years, 5 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

<webview>: Fix resize. BrowserPluginHostMsg_UpdateRect_ACK ships BrowserPluginHostMsg_ResizeGuest_Params in the message. Most of the time this struct is uninitialized, and unused. However, BrowserPluginGuest::OnResizeGuest is called regardless. This resets resize flags, and occasionally confuses RenderWidgetHostImpl by calling WasResized indirectly. On certain websites, this breaks resize, or may cause resize to be delayed until a mouse movement is performed over the content. This patch addresses the issue by adding a size_changed field to the struct. All other fields are ignored unless that field is true. BUG=263027 Test=manually, visit http://www.html5rocks.com/en/tutorials/pointerlock/intro in the Chrome Apps Browser demo Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=213021

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -1 line) Patch
M content/browser/browser_plugin/browser_plugin_guest.cc View 2 chunks +2 lines, -1 line 2 comments Download
M content/common/browser_plugin/browser_plugin_messages.h View 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/browser_plugin/browser_plugin.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Fady Samuel
7 years, 5 months ago (2013-07-22 18:59:11 UTC) #1
alexst (slow to review)
lgtm
7 years, 5 months ago (2013-07-22 19:09:02 UTC) #2
Fady Samuel
+cdn@ for small browser_plugin_messages.h change.
7 years, 5 months ago (2013-07-22 19:43:33 UTC) #3
Cris Neckar
https://codereview.chromium.org/19585004/diff/1/content/browser/browser_plugin/browser_plugin_guest.cc File content/browser/browser_plugin/browser_plugin_guest.cc (right): https://codereview.chromium.org/19585004/diff/1/content/browser/browser_plugin/browser_plugin_guest.cc#newcode1252 content/browser/browser_plugin/browser_plugin_guest.cc:1252: if (!params.size_changed) I don't understand why you need to ...
7 years, 5 months ago (2013-07-22 19:56:05 UTC) #4
Fady Samuel
https://codereview.chromium.org/19585004/diff/1/content/browser/browser_plugin/browser_plugin_guest.cc File content/browser/browser_plugin/browser_plugin_guest.cc (right): https://codereview.chromium.org/19585004/diff/1/content/browser/browser_plugin/browser_plugin_guest.cc#newcode1252 content/browser/browser_plugin/browser_plugin_guest.cc:1252: if (!params.size_changed) On 2013/07/22 19:56:05, Cris Neckar wrote: > ...
7 years, 5 months ago (2013-07-22 20:20:46 UTC) #5
Cris Neckar
On 2013/07/22 20:20:46, Fady Samuel wrote: > https://codereview.chromium.org/19585004/diff/1/content/browser/browser_plugin/browser_plugin_guest.cc > File content/browser/browser_plugin/browser_plugin_guest.cc (right): > > https://codereview.chromium.org/19585004/diff/1/content/browser/browser_plugin/browser_plugin_guest.cc#newcode1252 ...
7 years, 5 months ago (2013-07-22 20:44:21 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/19585004/1
7 years, 5 months ago (2013-07-22 20:45:20 UTC) #7
commit-bot: I haz the power
7 years, 5 months ago (2013-07-23 01:13:33 UTC) #8
Message was sent while issue was closed.
Change committed as 213021

Powered by Google App Engine
This is Rietveld 408576698