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

Unified Diff: ui/views/controls/webview/webview.cc

Issue 584743004: Fix a crash which occurs while dragging tabs back to the window where they originated from. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed unused variable Created 6 years, 3 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
Index: ui/views/controls/webview/webview.cc
diff --git a/ui/views/controls/webview/webview.cc b/ui/views/controls/webview/webview.cc
index e7885005272b60c12fd514ee434102bb64d7c9ba..23cea821b056137b2c9d0fcefb74c0909e05f1b7 100644
--- a/ui/views/controls/webview/webview.cc
+++ b/ui/views/controls/webview/webview.cc
@@ -303,13 +303,13 @@ void WebView::AttachWebContents() {
if (holder_->native_view() == view_to_attach)
return;
+ holder_->Attach(view_to_attach);
+
// Fullscreen widgets are not parented by a WebContentsView. Their visibility
// is controlled by content i.e. (RenderWidgetHost)
if (!is_embedding_fullscreen_widget_)
view_to_attach->Show();
- holder_->Attach(view_to_attach);
-
// The view will not be focused automatically when it is attached, so we need
// to pass on focus to it if the FocusManager thinks the view is focused. Note
// that not every Widget has a focus manager.

Powered by Google App Engine
This is Rietveld 408576698