diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj
index c8b419011..ae3a195c6 100644
--- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj
+++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj
@@ -1,6 +1,6 @@
-
+ Debug
diff --git a/CefSharp.Core/CefSharp.Core.vcxproj b/CefSharp.Core/CefSharp.Core.vcxproj
index d0e6ab47f..1dd2765d8 100644
--- a/CefSharp.Core/CefSharp.Core.vcxproj
+++ b/CefSharp.Core/CefSharp.Core.vcxproj
@@ -1,6 +1,6 @@
-
+ Debug
diff --git a/CefSharp.Core/CefSharp.Core.vcxproj.filters b/CefSharp.Core/CefSharp.Core.vcxproj.filters
index 820bd721e..43366f0f2 100644
--- a/CefSharp.Core/CefSharp.Core.vcxproj.filters
+++ b/CefSharp.Core/CefSharp.Core.vcxproj.filters
@@ -241,6 +241,9 @@
Header Files
+
+ Header Files
+
diff --git a/CefSharp.Core/Internals/CefRequestWrapper.cpp b/CefSharp.Core/Internals/CefRequestWrapper.cpp
index 46c374d6c..3fc9fcfc1 100644
--- a/CefSharp.Core/Internals/CefRequestWrapper.cpp
+++ b/CefSharp.Core/Internals/CefRequestWrapper.cpp
@@ -76,7 +76,11 @@ namespace CefSharp
{
if (_postData == nullptr)
{
- _postData = gcnew CefPostDataWrapper(_wrappedRequest->GetPostData());
+ auto postData = _wrappedRequest->GetPostData();
+ if (postData.get())
+ {
+ _postData = gcnew CefPostDataWrapper(postData);
+ }
}
return _postData;
}
diff --git a/CefSharp.Example/CefSharpSchemeHandler.cs b/CefSharp.Example/CefSharpSchemeHandler.cs
index 553d3ff8c..45a65f247 100644
--- a/CefSharp.Example/CefSharpSchemeHandler.cs
+++ b/CefSharp.Example/CefSharpSchemeHandler.cs
@@ -63,6 +63,28 @@ namespace CefSharp.Example
return true;
}
+ if (string.Equals(fileName, "/PostDataAjaxTest.html", StringComparison.OrdinalIgnoreCase))
+ {
+ var postData = request.PostData;
+ if(postData == null)
+ {
+ var resourceHandler = ResourceHandler.FromString("Post Data: null");
+ stream = (MemoryStream)resourceHandler.Stream;
+ mimeType = "text/html";
+ callback.Continue();
+ }
+ else
+ {
+ var postDataElement = postData.Elements.FirstOrDefault();
+ var resourceHandler = ResourceHandler.FromString("Post Data: " + (postDataElement == null ? "null" : postDataElement.GetBody()));
+ stream = (MemoryStream)resourceHandler.Stream;
+ mimeType = "text/html";
+ callback.Continue();
+ }
+
+ return true;
+ }
+
string resource;
if (ResourceDictionary.TryGetValue(fileName, out resource) && !string.IsNullOrEmpty(resource))
{
diff --git a/CefSharp.Example/RequestHandler.cs b/CefSharp.Example/RequestHandler.cs
index 8725f074e..53c8205f4 100644
--- a/CefSharp.Example/RequestHandler.cs
+++ b/CefSharp.Example/RequestHandler.cs
@@ -68,15 +68,18 @@ namespace CefSharp.Example
{
using (var postData = request.PostData)
{
- var elements = postData.Elements;
+ if(postData != null)
+ {
+ var elements = postData.Elements;
- var charSet = request.GetCharSet();
+ var charSet = request.GetCharSet();
- foreach (var element in elements)
- {
- if (element.Type == PostDataElementType.Bytes)
+ foreach (var element in elements)
{
- var body = element.GetBody(charSet);
+ if (element.Type == PostDataElementType.Bytes)
+ {
+ var body = element.GetBody(charSet);
+ }
}
}
}
diff --git a/CefSharp.Example/Resources/Home.html b/CefSharp.Example/Resources/Home.html
index 1e5a0a6c5..ab30f3ebb 100644
--- a/CefSharp.Example/Resources/Home.html
+++ b/CefSharp.Example/Resources/Home.html
@@ -207,7 +207,7 @@
Support for both x86 and x64
- Chromium 43 supports both x86 and x64, and so do we as of CefSharp 43.0.0 For the time being, it does not
+ Chromium 45 supports both x86 and x64, and so do we as of CefSharp 45.0.0 For the time being, it does not
"auto-detect" the platform being used (since this is quite complex), so you have to choose either one for
your project. This practically means that you will have to compile & package separate
binaries/installers of your app for x86 and x64 respectively if you want/need to support both of them.
diff --git a/CefSharp.Example/Resources/SchemeTest.html b/CefSharp.Example/Resources/SchemeTest.html
index cbabe4543..478fd739e 100644
--- a/CefSharp.Example/Resources/SchemeTest.html
+++ b/CefSharp.Example/Resources/SchemeTest.html
@@ -1,18 +1,62 @@
-
- Scheme Handler Test
-
-
-
Success
-
Scheme Handler Functioned Correctly
+
+ Scheme Handler Test
-
-
+
+
+
+
Success
+
Scheme Handler Functioned Correctly
+
+
+
+
Custom Post using Ajax
+
+
\ No newline at end of file
diff --git a/README.md b/README.md
index 07dc08efa..702981fb3 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
# CefSharp - Embedded Chromium for .NET
-This project contains .NET CLR bindings for The [Chromium Embedded Framework (CEF)](https://bitbucket.org/chromiumembedded/cef) by Marshall A. Greenblatt. A small [Core](https://github.com/cefsharp/CefSharp/tree/master/CefSharp.Core) of the bindings are written in C++/CLI but the majority of code here is C#. It can of course be used from any CLR language, e.g. C# or VB.
+This project contains .NET CLR bindings for The [Chromium Embedded Framework (CEF)](https://bitbucket.org/chromiumembedded/cef) by Marshall A. Greenblatt. A small [Core](https://github.com/cefsharp/CefSharp/tree/master/CefSharp.Core) of the bindings are written in C++/CLI but the majority of code here is C#. It can of course be used from any CLR language, e.g. C# or VB. [The CefSharp GitHub project page](https://github.com/cefsharp/CefSharp) is the recommended starting place. This is the `official` CefSharp fork, as maintained by the CefSharp community. You can also view [the entire network of public forks/branches](https://github.com/cefsharp/CefSharp/network).
CefSharp provides both WPF and WinForms web browser control implementations. See the [CefSharp.Wpf.Example](https://github.com/cefsharp/CefSharp/tree/master/CefSharp.Wpf.Example) or [CefSharp.WinForms.Example](https://github.com/cefsharp/CefSharp/tree/master/CefSharp.WinForms.Example) projects for example web browsers built using this library; they are (at this moment) the best "documentation" of features. In addition see the [CefSharp.MinimalExample](https://github.com/cefsharp/CefSharp.MinimalExample/) repo for how CefSharp can actually be used via NuGet packages.
@@ -8,7 +8,7 @@ This project is [BSD](http://www.opensource.org/licenses/bsd-license.php "BSD Li
# Documentation, Contact etc.
-Apart from code samples mentioned above work-in-progress documentation can be found [in the wiki](https://github.com/cefsharp/CefSharp/wiki). If something is missing/incomplete, please don't hesitate to ask on the [CefSharp Google Group](https://groups.google.com/forum/#!forum/cefsharp). You might also find help by searching the archive to that same Google Group for previous questions.
+Apart from code samples mentioned above work-in-progress documentation can be found [in the wiki](https://github.com/cefsharp/CefSharp/wiki). If something is missing/incomplete, please don't hesitate to ask on the [CefSharp Google Group](https://groups.google.com/forum/#!forum/cefsharp). You might also find help by searching the archive to that same Google Group for previous questions. Before opening an issue or submitting a `PR` please read [Contributing.md](https://github.com/cefsharp/CefSharp/blob/master/CONTRIBUTING.md)
# NuGet Packages
@@ -27,16 +27,12 @@ Every commit on `master` produces a `Nuget` package. Use at your own risk! [CefS
[WinForms](http://www.nuget.org/packages/CefSharp.WinForms/) or
[OffScreen](http://www.nuget.org/packages/CefSharp.OffScreen/) now **including** JS Binding.
-**Ultra stable/LTS** Read "He's dead Jim", based on Chromium 25. See the [CefSharp1](https://github.com/cefsharp/CefSharp/tree/CefSharp1#binary-release) branch README for CefSharp1 info. Please note that this version is no longer supported.
-
# Branches & Forks

* Development is done in the `master` branch. New features are preferably added in feature branches, if the changes are more than trivial.
* When a new release is imminent a `version` branch is created. We try to avoid making public facing `API` changes in release branches (Adding new features is fine, just not breaking changes).
-* Ultra-stable/LTS sources are in `CefSharp1`.
-* [The CefSharp GitHub project page](https://github.com/cefsharp/CefSharp) is the recommended starting place. This is the "official" CefSharp fork, as maintained by the CefSharp community. You can also view [the entire network of public forks/branches](https://github.com/cefsharp/CefSharp/network).
### Version Branches
@@ -48,6 +44,10 @@ Every commit on `master` produces a `Nuget` package. Use at your own risk! [CefS
| [cefsharp/39](https://github.com/cefsharp/CefSharp/tree/cefsharp/39) | 2171 | 2012 | 4.0 |
| [cefsharp/37](https://github.com/cefsharp/CefSharp/tree/cefsharp/37) | 2062 | 2012 | 4.0 |
+#### CefSharp1
+
+**Ultra stable/LTS** Read "He's dead Jim", based on Chromium 25. See the [CefSharp1](https://github.com/cefsharp/CefSharp/tree/CefSharp1#binary-release) branch README for CefSharp1 info. Please note that this version is no longer developed or supported.
+
# Links
- [CefGlue](https://bitbucket.org/xilium/xilium.cefglue/): An alternative .NET CEF wrapper built using P/Invoke.
diff --git a/appveyor.yml b/appveyor.yml
index b79c3cf72..485dd244a 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -1,7 +1,7 @@
environment:
- VisualStudioVersion: 11.0
+ VisualStudioVersion: 12.0
-version: 43.0.0-CI{build}
+version: 45.0.0-CI{build}
shallow_clone: true
diff --git a/build.ps1 b/build.ps1
index a0fb8ff43..98ee17a9e 100644
--- a/build.ps1
+++ b/build.ps1
@@ -1,7 +1,7 @@
param(
[ValidateSet("vs2013", "vs2015", "nupkg-only")]
[Parameter(Position = 0)]
- [string] $Target = "vs2012",
+ [string] $Target = "vs2013",
[Parameter(Position = 1)]
[string] $Version = "45.0.0",
[Parameter(Position = 2)]