Commit Graph

4985 Commits

Author SHA1 Message Date
amaitland da898cc93b RequestContextHandler - Add CookieManager type checking
Type check that ICookieManager is of type CookieManager, not currently possible to provide a custom implementation.
Changes in response to #2189
2017-12-20 09:52:01 +10:00
amaitland b35ed7cdc0 Fix ICookieManager xml doc
It's not necessary to delete cookies on IO thread any more (it was long ago)
2017-12-20 09:46:53 +10:00
amaitland 1d0c231d64 Add Issue Template to CefSharp3.sln 2017-12-20 09:44:42 +10:00
amaitland 3a60e69928 Update RequestHandler Example
Instead of throwing exception cancel the request - calls are made by unmanaged code, we shouldn't be throwing a managed exception
2017-12-19 14:48:24 +10:00
amaitland 22edf02103 Update ISSUE_TEMPLATE.md
Add Please only create an issue if you can reproduce the problem with the latest version.
2017-12-19 14:32:26 +10:00
Martinek Vilmos 021d780de1 Added default implementation of IRequestHandler (#2157)
* Added default implementation of IRequestHandler

* Functions made virtual

* Include DefaultRequestHandler in csproj (merge fix)

* Moved DefaultRequestHandler to CefSharp.Handler namespace; added comments
2017-12-19 14:29:04 +10:00
amaitland 4f621c197a Untabify
[skip ci]
2017-12-19 11:48:56 +10:00
amaitland 2c935268e6 Upgrade to CEF 3.3239.1700
Update version numbers to 63.x
Remove EnsureNuGetPackageBuildImports targets (newer nuget restore method should always be used)
cef.redist targets updated as package structure changed with commit https://github.com/cefsharp/cef-binary/commit/982a6330e70a75860bc6ecb6f84d55456b847d68
(Swiftshader should now be supported)
2017-12-19 11:44:34 +10:00
amaitland 98f31c0a5b CefSharp.Wpf/ChromiumWebBrowser.cs - Simplify OnTooltipTimerTick Disposed check 2017-12-14 15:24:27 +10:00
amaitland c4c14b4ae3 IRequest - Remove SetFlags and replace with Flags property (get and set) 2017-12-14 15:23:16 +10:00
Per Lundberg 9d959a518b appveyor.yml: Update api_key
The previous key belonged to Alex Maitland, who has revoked it. Updating to use my own key instead.
2017-12-12 21:09:02 +02:00
Per Lundberg 55a3f6ad7c README.md: Fixed typo
Doh!
2017-12-12 15:13:44 +02:00
Per Lundberg eb3cbe8b5e Add 62.0.0 branch details 2017-12-12 15:10:55 +02:00
nisbus bff333a201 Change the targets to BeforeBuild (#2130)
When the copying of files is done after build and you sign a clickonce distribution the copied files will not match the manifests hash anymore.
Changing it to BeforeBuild got it working again for me.
2017-12-01 23:00:17 +02:00
Per Lundberg a15986979e Upgraded to CEF 62 (#2203)
* Upgraded to CEF 62.
* Upgraded CEF version in README.md
* Bumped appveyor etc versions to 62.0.0.
2017-11-30 21:43:11 +02:00
AgapovAlexsey ff749d0f13 Add copyright 2017-11-30 10:12:11 +11:00
AgapovAlexsey 7876b42288 Add support UrlRequestFlags 2017-11-30 10:12:11 +11:00
Jeroen Janssen 049181b2bd VS2017 build support (using the VS2015 tooling) (#2179)
* initial vs2017 build support

* update nuget retrieval url

apparently http://nuget.org/nuget.exe is version 2.8, which is fairly
old

* enable child process debugging
2017-11-29 22:47:39 +02:00
Per Lundberg 6b9f91178a README.md: Fixed AppVeyor badge
Previously, it didn't link to AppVeyor. I think it should, since it makes it much easier for people to see why the builds are failing.

[ci skip]
2017-11-29 22:29:06 +02:00
Julian Verdurmen 06287a5d46 README.md: Badges for all releases (#2072)
* Badges for all releases
* Update README.md
2017-11-29 22:14:00 +02:00
Per Lundberg 8dd46377be Fixed typos + whitespace cleanups. 2017-11-28 00:07:47 +02:00
Per Lundberg b77878e2fd Update CONTRIBUTING.md (#2198)
Added note about short commit messages.

I believe this is a good habit, since it makes `git log` output etc much easier to skim through.
2017-11-15 14:27:48 +01:00
GrabzIt 93b08f1c12 Upgraded CEF to version 60 (#2159)
* Fixed pointer problem.

* Upgrade to CEF version 60

* Fix for invalid cookie date time

Error and stacktrace:

Year, Month, and Day parameters describe an un-representable DateTime.
   at System.DateTime.DateToTicks(Int32 year, Int32 month, Int32 day)
   at System.DateTime..ctor(Int32 year, Int32 month, Int32 day, Int32 hour, Int32 minute, Int32 second, Int32 millisecond)
   at CefSharp.ResourceHandlerWrapper.GetCookie(ResourceHandlerWrapper* , CefStructBase<CefCookieTraits>* cookie)
   at CefSharp.ResourceHandlerWrapper.CanGetCookie(ResourceHandlerWrapper* , CefStructBase<CefCookieTraits>* cookie)

Fixed by copying the same solution found here:

https://github.com/cefsharp/CefSharp/blob/cd934267c65f494ceb9ee75995cd2a1ca0954543/CefSharp.Core/Internals/CookieVisitor.cpp
2017-11-08 13:08:59 +02:00
amaitland 9407ba1828 Due to limitations of VC++ we must run our tests in the default appdomain, it's possible to use xunit for testing.
Readd CefSharp.Test.csproj to solution
Add some very basic unit tests using xunit, DisableTestParallelization, Set xunit.appDomain to denied in app.config to disable using appdomains (https://xunit.github.io/docs/configuring-with-xml.html)
Add xunit vs test running packages, using 2.2.0 version as 2.3.0 was throwing an exception similar to https://github.com/xunit/xunit/issues/1514
TODO: Take a look at https://github.com/NuGet/NuGetGallery/tree/master/tests/NuGetGallery.Facts for some ideas on structuring xunit tests (look at implementing Theory)

NOTE: I am not providing this as a definitive set of tests, it's simply here to get someone else started in creating tests as it appears people have trouble dealing with AppDomain problem
Only includes Tests for the OffScreen version at this stage.
2017-10-25 10:44:38 +10:00
jankurianski 65808ae8a4 Fix formatting in BindingTest.html 2017-10-24 09:52:43 +11:00
ieremyashev f029a22f45 Fix return value serialization for async JS bindings (#2167) 2017-10-24 09:48:58 +11:00
amaitland a4a1cd8ea1 Untabify AsyncExtensions 2017-10-08 08:34:31 +10:00
amaitland d6844e0b3b AsyncExtensions - incorrectly returned null for the async extension methods, now return a Task as expected when awaiting the method directly
Issue #2154
2017-10-08 08:31:42 +10:00
GrabzIt 653896a5b3 Merge pull request #2114 from GrabzIt/master
Update to Cef Version 59.0.0
2017-10-07 08:16:54 +01:00
GrabzIt f76f4d9436 Updated pointer 2017-10-06 09:04:33 +01:00
GrabzIt 62ae9ed36f Fixed pointer 2017-10-06 08:26:59 +01:00
GrabzIt f82d7440ac Put target back to 2013 2017-10-06 08:09:51 +01:00
GrabzIt fb5a0bb9ac Removed EnsureNuGetPackageBuildImports 2017-10-06 08:08:31 +01:00
GrabzIt 22b67f0d30 Removed EnsureNuGetPackageBuildImports 2017-10-06 08:05:50 +01:00
GrabzIt b5ade5102b Removed EnsureNuGetPackageBuildImports 2017-10-06 08:05:12 +01:00
GrabzIt 3d45c10b28 Remove EnsureNuGetPackageBuildImports target 2017-10-06 08:04:25 +01:00
GrabzIt ea7d2c8082 Removed EnsureNuGetPackageBuildImports 2017-10-06 08:03:19 +01:00
Chris 8a144050ee WPF: Possible fix for NullReferenceException in OnTooltipTimerTick
Resolves #2134
2017-08-31 18:13:01 +02:00
Chris bad729ee0d WPF: Added support for back and forward mouse buttons
Resolves #2133
2017-08-31 15:19:34 +02:00
Chris 244aab0408 Fixed a deadlock and a possible race condition in MethodRunnerQueue
Resolves #2105
2017-08-30 23:48:23 +02:00
Chris 7e2594d2e3 Added CefCustomScheme.IsCspBypassing
Resolves #2038
2017-08-29 18:00:36 +02:00
Oscar.One b82ce0787d Prevent merging of header values when using custom handlers (#2099) 2017-08-28 11:10:20 +02:00
ymccready 2bdaa17d64 Prevent VS from always rebuilding projects that reference CefSharp when using AnyCPU platform (#2083)
* Replacing Condition with <Choose> tag

* Replacing Condition on references with <Choose> tag

* Replacing Condition on references with <Choose> tag

* Replacing Condition on references with <Choose> tag
2017-08-25 17:55:50 +02:00
Chris 2cb368016a WPF: Removed debug code for mouse events 2017-08-25 17:20:22 +02:00
GrabzIt 2f680f01b7 Updated version 59.0.0 to latest build 3.3071.1649 2017-08-18 20:37:41 +01:00
GrabzIt 08444fe035 Updated to version 59.0.0 2017-08-18 16:07:03 +01:00
GrabzIt 35f9cc3377 Update to Cef Version 59.0.0
Note that there is one breaking change as offscreen windows are now automatically transparent due to this cef change: https://bitbucket.org/chromiumembedded/cef/commits/3f71138d64586d774f645a6db5283b5205ea9df4

To make a offscreen window non-transparent you need to set the background colour as shown below were it is set to white:

browserSettings.BackgroundColor = 0255255255;
2017-08-18 15:45:52 +01:00
James Pearce 2c14ac6919 Prevent unhandled exception in PointToScreen when not yet visible (#2107)
* Fix exception when PresentationSource not set

Prevent PointToScreen() being called if the visual is not yet connected
to a presentation source

* Fix typo

Fix typo
2017-08-11 13:31:06 +02:00
Julian Verdurmen 8057f322ad Changed labels of badges (#2071) 2017-06-19 14:04:05 +02:00
amaitland d1681162a6 WPF - Manually calculate GetScreenPoint
Using PointToScreen(point) on the UI thread (had to be called in a sync fashion) made it easy for users to cause a deadlock
Resolve #1915
2017-06-02 11:47:24 +10:00