2018-10-24 18:24:11 +00:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
2018-09-21 00:30:26 +00:00
|
|
|
From: Tomas Rycl <torycl@microsoft.com>
|
|
|
|
Date: Thu, 20 Sep 2018 17:47:25 -0700
|
|
|
|
Subject: browser_plugin_guest.patch
|
|
|
|
|
|
|
|
|
2018-09-14 05:02:16 +00:00
|
|
|
diff --git a/content/browser/browser_plugin/browser_plugin_guest.cc b/content/browser/browser_plugin/browser_plugin_guest.cc
|
2018-10-24 18:24:11 +00:00
|
|
|
index f56ce93c3d5b1b46b706800a12a21f29cabafb33..19c302c2714fb8ce89b261dd44d9939d3345a803 100644
|
2018-09-14 05:02:16 +00:00
|
|
|
--- a/content/browser/browser_plugin/browser_plugin_guest.cc
|
|
|
|
+++ b/content/browser/browser_plugin/browser_plugin_guest.cc
|
2018-09-21 00:30:26 +00:00
|
|
|
@@ -206,8 +206,11 @@ void BrowserPluginGuest::Init() {
|
2018-09-14 05:02:16 +00:00
|
|
|
|
|
|
|
WebContentsImpl* owner_web_contents = static_cast<WebContentsImpl*>(
|
|
|
|
delegate_->GetOwnerWebContents());
|
|
|
|
- owner_web_contents->CreateBrowserPluginEmbedderIfNecessary();
|
|
|
|
- InitInternal(BrowserPluginHostMsg_Attach_Params(), owner_web_contents);
|
|
|
|
+ if (nullptr != owner_web_contents)
|
|
|
|
+ {
|
|
|
|
+ owner_web_contents->CreateBrowserPluginEmbedderIfNecessary();
|
|
|
|
+ InitInternal(BrowserPluginHostMsg_Attach_Params(), owner_web_contents);
|
|
|
|
+ }
|
|
|
|
}
|
|
|
|
|
|
|
|
base::WeakPtr<BrowserPluginGuest> BrowserPluginGuest::AsWeakPtr() {
|