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

Unified Diff: content/renderer/render_view_impl.cc

Issue 2044683002: Prevent crash when resize is sent to a swapped out main frame (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index 26c7ef258201a7ca9bb1c6f5842996d3027052a3..ebd6e72f373fe0164c743d448db9ba41c3501f0a 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -2680,7 +2680,8 @@ void RenderViewImpl::OnResize(const ResizeParams& params) {
TRACE_EVENT0("renderer", "RenderViewImpl::OnResize");
if (webview()) {
webview()->hidePopups();
- if (send_preferred_size_changes_) {
+ if (send_preferred_size_changes_ &&
+ webview()->mainFrame()->isWebLocalFrame()) {
webview()->mainFrame()->setCanHaveScrollbars(
ShouldDisplayScrollbars(params.new_size.width(),
params.new_size.height()));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698