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

Issue 2164753003: WebViewPlugin: Post geometry-update actions to a task to run async. (Closed)

Created:
4 years, 5 months ago by tommycli
Modified:
4 years, 5 months ago
Reviewers:
esprehn, dcheng
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

WebViewPlugin: Post geometry-update actions to a task to run async. WebViewPlugin resizes itself and actually may load a new plugin in response to a geometry update. Geometry updates are triggered during layout, and Blink assumes these things can't happen during layout. Therefore, post these actions to a task to run asynchronously. This is the same approach that PepperPluginInstanceImpl takes. BUG=628629 Committed: https://crrev.com/d16e91647e4238b13301fdfc3dce960427f4d18e Cr-Commit-Position: refs/heads/master@{#406908}

Patch Set 1 #

Patch Set 2 : update comment #

Patch Set 3 : reformat #

Total comments: 2

Patch Set 4 : fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -17 lines) Patch
M components/plugins/renderer/webview_plugin.h View 1 2 3 chunks +7 lines, -0 lines 0 comments Download
M components/plugins/renderer/webview_plugin.cc View 1 2 3 6 chunks +35 lines, -17 lines 0 comments Download

Messages

Total messages: 16 (8 generated)
tommycli
esprehn OR dcheng: PTAL - this fixes the plugin updates during Blink layout crash. (I ...
4 years, 5 months ago (2016-07-20 17:45:13 UTC) #4
dcheng
https://codereview.chromium.org/2164753003/diff/40001/components/plugins/renderer/webview_plugin.cc File components/plugins/renderer/webview_plugin.cc (right): https://codereview.chromium.org/2164753003/diff/40001/components/plugins/renderer/webview_plugin.cc#newcode357 components/plugins/renderer/webview_plugin.cc:357: web_view_->resize(newSize); I think you can just say rect_.size() here: ...
4 years, 5 months ago (2016-07-21 01:51:46 UTC) #7
dcheng
oops, meant to lgtm as well
4 years, 5 months ago (2016-07-21 01:52:40 UTC) #8
tommycli
dcheng: thanks! https://codereview.chromium.org/2164753003/diff/40001/components/plugins/renderer/webview_plugin.cc File components/plugins/renderer/webview_plugin.cc (right): https://codereview.chromium.org/2164753003/diff/40001/components/plugins/renderer/webview_plugin.cc#newcode357 components/plugins/renderer/webview_plugin.cc:357: web_view_->resize(newSize); On 2016/07/21 01:51:46, dcheng wrote: > ...
4 years, 5 months ago (2016-07-21 17:42:23 UTC) #9
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/2164753003/60001
4 years, 5 months ago (2016-07-21 17:42:47 UTC) #12
esprehn
lgtm thanks!
4 years, 5 months ago (2016-07-21 17:54:21 UTC) #13
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 5 months ago (2016-07-21 18:23:08 UTC) #14
commit-bot: I haz the power
4 years, 5 months ago (2016-07-21 18:25:22 UTC) #16
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/d16e91647e4238b13301fdfc3dce960427f4d18e
Cr-Commit-Position: refs/heads/master@{#406908}

Powered by Google App Engine
This is Rietveld 408576698