diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj
index 6261032f3..a582e82f9 100644
--- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj
+++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj
@@ -1,6 +1,6 @@
-
+
Debug
@@ -67,7 +67,7 @@
- f7925841
+ feb99166
true
diff --git a/CefSharp.BrowserSubprocess.Core/packages.config b/CefSharp.BrowserSubprocess.Core/packages.config
index 5fc8e484e..2278db0cb 100644
--- a/CefSharp.BrowserSubprocess.Core/packages.config
+++ b/CefSharp.BrowserSubprocess.Core/packages.config
@@ -1,4 +1,4 @@
-
+
\ No newline at end of file
diff --git a/CefSharp.Core/CefSharp.Core.vcxproj b/CefSharp.Core/CefSharp.Core.vcxproj
index b0c399228..b06b3e7e7 100644
--- a/CefSharp.Core/CefSharp.Core.vcxproj
+++ b/CefSharp.Core/CefSharp.Core.vcxproj
@@ -1,6 +1,6 @@
-
+
Debug
@@ -67,7 +67,7 @@
<_ProjectFileVersion>11.0.51106.1
- 2ce946f2
+ 5afa3199
bin\$(Platform)\$(Configuration)\
diff --git a/CefSharp.Core/RequestContextHandler.h b/CefSharp.Core/RequestContextHandler.h
index c62075236..73c14c5f0 100644
--- a/CefSharp.Core/RequestContextHandler.h
+++ b/CefSharp.Core/RequestContextHandler.h
@@ -45,6 +45,7 @@ namespace CefSharp
virtual bool OnBeforePluginLoad(const CefString& mime_type,
const CefString& plugin_url,
+ bool is_main_frame,
const CefString& top_origin_url,
CefRefPtr plugin_info,
CefRequestContextHandler::PluginPolicy* plugin_policy) OVERRIDE
@@ -56,6 +57,7 @@ namespace CefSharp
auto result = _requestContextHandler->OnBeforePluginLoad(StringUtils::ToClr(mime_type),
StringUtils::ToClr(plugin_url),
+ is_main_frame,
StringUtils::ToClr(top_origin_url),
pluginInfo,
pluginPolicy);
diff --git a/CefSharp.Core/packages.config b/CefSharp.Core/packages.config
index 5fc8e484e..2278db0cb 100644
--- a/CefSharp.Core/packages.config
+++ b/CefSharp.Core/packages.config
@@ -1,4 +1,4 @@
-
+
\ No newline at end of file
diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj
index a124694e4..2315547b0 100644
--- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj
+++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj
@@ -13,7 +13,7 @@
512
- 0d9430cd
+ 437304d9
true
@@ -95,6 +95,6 @@
-
-
+
+
\ No newline at end of file
diff --git a/CefSharp.OffScreen.Example/packages.config b/CefSharp.OffScreen.Example/packages.config
index 4c03e6d78..a51aa027f 100644
--- a/CefSharp.OffScreen.Example/packages.config
+++ b/CefSharp.OffScreen.Example/packages.config
@@ -1,5 +1,5 @@
-
-
+
+
\ No newline at end of file
diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj
index af51df443..d7d62eb7d 100644
--- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj
+++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj
@@ -21,7 +21,7 @@
3.5
Client
- a2503883
+ 1e004422
x64
@@ -185,6 +185,6 @@
-
-
+
+
\ No newline at end of file
diff --git a/CefSharp.WinForms.Example/packages.config b/CefSharp.WinForms.Example/packages.config
index 4c03e6d78..a51aa027f 100644
--- a/CefSharp.WinForms.Example/packages.config
+++ b/CefSharp.WinForms.Example/packages.config
@@ -1,5 +1,5 @@
-
-
+
+
\ No newline at end of file
diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj
index 4aa9fe22a..060aeff1a 100644
--- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj
+++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj
@@ -21,7 +21,7 @@
3.5
Client
- 7a75bfb3
+ b61df991
true
@@ -186,6 +186,6 @@
-
-
+
+
\ No newline at end of file
diff --git a/CefSharp.Wpf.Example/Handlers/RequestContextHandler.cs b/CefSharp.Wpf.Example/Handlers/RequestContextHandler.cs
index 53b901764..8f1267bf6 100644
--- a/CefSharp.Wpf.Example/Handlers/RequestContextHandler.cs
+++ b/CefSharp.Wpf.Example/Handlers/RequestContextHandler.cs
@@ -6,7 +6,7 @@ namespace CefSharp.Wpf.Example.Handlers
{
public class RequestContextHandler : IRequestContextHandler
{
- bool IRequestContextHandler.OnBeforePluginLoad(string mimeType, string url, string topOriginUrl, WebPluginInfo pluginInfo, ref PluginPolicy pluginPolicy)
+ bool IRequestContextHandler.OnBeforePluginLoad(string mimeType, string url, bool isMainFrame, string topOriginUrl, WebPluginInfo pluginInfo, ref PluginPolicy pluginPolicy)
{
//pluginPolicy = PluginPolicy.Disable;
//return true;
diff --git a/CefSharp.Wpf.Example/packages.config b/CefSharp.Wpf.Example/packages.config
index 4d05da08e..abb9e5cc6 100644
--- a/CefSharp.Wpf.Example/packages.config
+++ b/CefSharp.Wpf.Example/packages.config
@@ -1,7 +1,7 @@
-
-
+
+
\ No newline at end of file
diff --git a/CefSharp/IRequestContextHandler.cs b/CefSharp/IRequestContextHandler.cs
index 9931423f9..af975ee0d 100644
--- a/CefSharp/IRequestContextHandler.cs
+++ b/CefSharp/IRequestContextHandler.cs
@@ -27,10 +27,11 @@ namespace CefSharp
///
/// is the mime type of the plugin that will be loaded
/// is the content URL that the plugin will load and may be empty
+ /// will be true if the plugin is being loaded in the main (top-level) frame
/// is the URL for the top-level frame that contains the plugin
/// includes additional information about the plugin that will be loaded
/// Modify and return true to change the policy.
/// Return false to use the recommended policy. Modify and return true to change the policy.
- bool OnBeforePluginLoad(string mimeType, string url, string topOriginUrl, WebPluginInfo pluginInfo, ref PluginPolicy pluginPolicy);
+ bool OnBeforePluginLoad(string mimeType, string url, bool isMainFrame, string topOriginUrl, WebPluginInfo pluginInfo, ref PluginPolicy pluginPolicy);
}
}