[Win] Crash in MiniBrowser.
authorpvollan@apple.com <pvollan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 9 Aug 2016 20:59:16 +0000 (20:59 +0000)
committerpvollan@apple.com <pvollan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 9 Aug 2016 20:59:16 +0000 (20:59 +0000)
https://bugs.webkit.org/show_bug.cgi?id=160686

Reviewed by Sam Weinig.

We need to specify a plugin info provider object in the page configuration.

* WebView.cpp:
(WebView::initWithFrame):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@204293 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit/win/ChangeLog
Source/WebKit/win/WebView.cpp

index 0248094..fb2cde9 100644 (file)
@@ -1,3 +1,15 @@
+2016-08-09  Per Arne Vollan  <pvollan@apple.com>
+
+        [Win] Crash in MiniBrowser.
+        https://bugs.webkit.org/show_bug.cgi?id=160686
+
+        Reviewed by Sam Weinig.
+
+        We need to specify a plugin info provider object in the page configuration.
+
+        * WebView.cpp:
+        (WebView::initWithFrame):
+
 2016-08-09  Anders Carlsson  <andersca@apple.com>
 
         Fix build.
index 4c57355..ec8a0e4 100644 (file)
@@ -67,6 +67,7 @@
 #include "WebMutableURLRequest.h"
 #include "WebNotificationCenter.h"
 #include "WebPlatformStrategies.h"
+#include "WebPluginInfoProvider.h"
 #include "WebPreferences.h"
 #include "WebResourceLoadScheduler.h"
 #include "WebScriptWorld.h"
@@ -2938,6 +2939,7 @@ HRESULT WebView::initWithFrame(RECT frame, _In_ BSTR frameName, _In_ BSTR groupN
     configuration.progressTrackerClient = static_cast<WebFrameLoaderClient*>(configuration.loaderClientForMainFrame);
     configuration.userContentProvider = &m_webViewGroup->userContentController();
     configuration.visitedLinkStore = &m_webViewGroup->visitedLinkStore();
+    configuration.pluginInfoProvider = &WebPluginInfoProvider::singleton();
 
     m_page = new Page(WTFMove(configuration));
     provideGeolocationTo(m_page, new WebGeolocationClient(this));