Commit Graph

151 Commits

Author SHA1 Message Date
amaitland 4e5aac413f Upgrade to CEF 75.0.11+gf50b3c2+chromium-75.0.3770.100 / Chromium 75.0.3770.100 2019-06-25 19:24:57 +10:00
amaitland fc37e82590 Upgrade to CEF 75.0.3+g699a922+chromium-75.0.3770.80 / Chromium 75.0.3770.80 2019-06-25 19:24:57 +10:00
amaitland 04cff2bf39 Upgrade to CEF 75.0.1+gb5e74dd+chromium-75.0.3770.80 2019-06-25 19:24:57 +10:00
Alex Maitland 1a2c8ffcb6 Add CefSharp.PostMessage (#2799)
- JavascriptMessageReceived event added to ChromiumWebBrowser/IWebBrowser
- CefSharp.PostMessage and cefSharp.postMessage added to V8Context on creation for use in Javascript
- Add PostMessageTest.html
2019-06-03 21:08:03 +10:00
amaitland 40117b0cdb Upgrade to CEF 74.1.13+g98f22d3+chromium-74.0.3729.108 / Chromium 74.0.3729.108 2019-04-25 22:18:54 +10:00
amaitland c5cb465b55 Upgrade to CEF 73.1.13+g6e3c989+chromium-73.0.3683.75 / Chromium 73.0.3683.75 2019-04-25 20:40:11 +10:00
amaitland 3520581309 Upgrade to CEF 73.1.12+gee4b49f+chromium-73.0.3683.75 / Chromium 73.0.3683.75 2019-03-27 14:00:42 +10:00
Alex Maitland 70de3a6d9c Add Initial IRenderProcessHandler.OnContextCreated/Released implementation (#2697)
* WinForms/WPF - Dispose of IFrame after calling LoadUrl

* BrowserProcess - Add initial implementation of IRenderProcessHandler.OnContextCreated/OnContextReleased

- IV8Context.Execute is the only method to be implemented so far (execute script without returning a result)
- Wrappers for CefFrame and CefBrowser have yet to be imported yet, still need to determine if they should be included individually or reference to CefSharp.Core added

* BrowserProcess - Add wrappers for Browser and Frame

Ultimately we should probably remove the CefSharp.BrowserSubprocess.Core project and move all the code into a folder/namespace within CefSharp.Core
This would allow us to share the a lot of existing code, major refactor required

* CefSharp.Common.props - Add CefSharpBrowserProcessCore32/64 properties

Make creating your own custom browser process easier

* BrowserProcess - Remove example and add comments about creating your own custom version
2019-03-20 20:33:10 +10:00
amaitland 13970fe55c Upgrade to CEF 3.3683.1920.g9f41a27 / Chromium 73.0.3683.75 2019-03-15 20:58:06 +10:00
amaitland 7436d648a5 Upgrade to CEF 3.3626.1895.g7001d56 / Chromium 72.0.3626.121 2019-03-10 11:39:27 +10:00
amaitland 8e6cd06956 Upgrade to CEF 3.3626.1891.g52be333 / Chromium 72.0.3626.96 2019-02-25 20:57:44 +10:00
amaitland 5588cc47c5 Upgrade to CEF 3.3578.1863.gbf8cff2 / Chromium 71.0.3578.98 2019-01-13 20:46:16 +10:00
amaitland 8d3eb356a1 Upgrade to CEF 3.3578.1860.g36610bd / Chromium 71.0.3578.80 2018-12-16 05:13:32 +10:00
Chris 4846471d0f Added SourcePath to CefSharp.Core and CefSharp.BrowserSubprocess.Core (#2595)
* Added include path to CefSharp.Core and CefSharp.BrowserSubprocess.Core

* Changed from IncludePath to SourcePath
2018-12-12 08:39:14 +10:00
Chris d5aeb20fda Enabled MultiProcessorCompilation for CefSharp.Core and CefSharp.BrowserSubprocess.Core (#2596) 2018-12-09 13:10:55 +01:00
amaitland 4e50ad8a95 Upgrade to CEF 3.3538.1849.g458cc98 / Chromium 70.0.3538.77 2018-10-28 10:46:02 +10:00
amaitland 23b905dbda Upgrade to CEF 3.3497.1841.g7f37a0a / Chromium 69.0.3497.100 2018-10-23 12:58:37 +10:00
amaitland 8282482758 Upgrade to CEF 3.3497.1840.gcd24143 / Chromium 69.0.3497.100 2018-10-16 12:24:07 +10:00
amaitland 529a463613 Upgrade to CEF 3.3497.1834.g0a87d5f / Chromium 69.0.3497.100 2018-09-30 15:22:53 +10:00
amaitland 557b279093 Upgrade to CEF 3.3497.1833.g13f506f / Chromium 69.0.3497.100 2018-09-23 21:05:06 +10:00
amaitland 732f5851de Upgrade to CEF 3.3497.1829.g004ef91 / Chromium 69.0.3497.81 2018-09-16 13:01:45 +10:00
amaitland b24286d591 Upgrade to CEF 3.3497.1827.ga4f7e36 / Chromium 69.0.3497.81 2018-09-10 12:13:39 +10:00
amaitland 161e1ae0cc Upgrade to CEF 3.3440.1803.gde363ee / Chromium 68.0.3440.75 2018-08-02 10:03:10 +10:00
amaitland 1d94885d75 Upgrade to CEF 3.3396.1786.gd3e36d0 / Chromium 67.0.3396.79 2018-07-31 19:20:56 +10:00
amaitland e7cacffe5a Upgrade to CEF 3.3396.1777.g636f29b / Chromium 67.0.3396.79 2018-06-14 22:33:47 +10:00
amaitland fdc7cc21d5 Upgrade to CEF 3.3359.1772.gd1df190 / Chromium 66.0.3359.117 2018-05-17 12:40:39 +10:00
amaitland 05e67ddc2d Upgrade to CEF 3.3359.1769.gd0bfc4d / Chromium 66.0.3359.117 2018-05-02 17:31:20 +10:00
amaitland 066f5a92b2 Upgrade to CEF 3.3325.1758.g9aea513 / Chromium 65.0.3325.181 2018-04-17 15:14:42 +10:00
amaitland efff50bf7e Upgrade to CEF 3.3325.1751.ge5b78a5 / Chromium 65.0.3325.181 2018-03-28 13:50:42 +10:00
amaitland 8eb9860cac Upgrade to CEF 3.3325.1749.ga42963a / Chromium 65.0.3325.146 2018-03-17 21:29:21 +10:00
amaitland 9f5a7efe70 Upgrade to CEF 3.3282.1731.gfc9a4fa / Chromium 64.0.3282.119 2018-02-05 17:11:41 +10:00
Alex Maitland 9b01b69d2f Implement Javascript Binding v2 (#2247)
* JSB Rewrite - Add CefSharp.RegisterBoundObject javascript method

To get around the problem of IPC timing, I've reversed the communication, now it's the render process requesting
the bound objects, the implementation is incomplete at this stage, more just a basic proof of concept

Rewrite BindingTest.html using QUnit
One of the tests doesn't map correctly as it requires def user interaction

TODO:

- Get objects by name
- Rename Messages.h values that relate to this change so they are more descriptive
- Better error handling
- Caching of objects within a render process
- Investigate global context options, don't think it's possible to call an async method directly in the global context

# Conflicts:
#	CefSharp.Example/Resources/BindingTest.html

* JSB Improve Request/Response message names

* BindingTest.html - Output stress test results

* Remove JavascriptRootObject was leftover from time we used WCF to transmit objects

* JavascriptObjectRepository - Objects are now sent in the same list with an IsAsync flag

Separation when sending over IPC with two unique lists isn't necessary

* JavascriptObjectRepository - Return objects by name or return all by default

Untabify CefAppUnmanagedWrapper.cpp
Add minor comment to CefBrowserWrapper for a reminder that we use Frame Identifier as dictionary key

* Add //TODO: JSB comments for work that's left to be done

Ideally within a render process we cache bound objects once they've been communicated,
It would also be nice to make multiple binding requests so objects can later be added dynamically

* JSB Allow multiple calls to CefSharp.RegisterBoundObject

Update BindingTest.html to name two distinct calls to different bound objects

* JSB - Add some notes about caching, no working implementation yet

* JSB - Dynamically Register object on Request

* JSB Add ability to unbind an object and rename RegisterBoundObject to BindObjectAsync

# Conflicts:
#	CefSharp.Example/Resources/BindingTest.html

* JSB BindObjectAsync - if objects already bound then return false

* JSB - Ignore Indexer properties

Were previously throwing an exception

* JSB - Add LegacyJavascriptBindingEnabled option so preserve existing behaviour

This is only useful for SPA application and those that only navigate to pages
hosting within a single domain. Any sort of cross-site navigation and a new
render process will be spawned and objects won't be bound automatically
(You can use the new methods to request they're bound yourself, at least in theory,
more testing required on this)

* Add LegacyBindingTest.html

Current disabled by default. To enable uncomment CefSharpSettings.LegacyJavascriptBindingEnabled = true;
in CefExample.cs

* RegisterJsObject and RegisterAsyncJsObject can now only be used when CefSharpSettings.LegacyJavascriptBindingEnabled = true

See https://github.com/cefsharp/CefSharp/issues/2246 for details
2018-01-22 10:24:25 +10:00
amaitland 5dfd24bddb Upgrade to CEF 3.3239.1723.g071d1c1 / Chromium 63.0.3239.132 2018-01-12 15:45:50 +10:00
amaitland ea4cafed18 Upgrade to CEF 3.3239.1716.g735b746 / Chromium 63.0.3239.109 2017-12-29 22:10:13 +10:00
amaitland 1ae29bdb78 Upgrade to CEF 3.3239.1709.g093cae4 / Chromium 63.0.3239.109 2017-12-26 09:17:52 +10:00
amaitland a6f20e82bc Upgrade to CEF 3.3239.1705.gf6d6dfc / Chromium 63.0.3239.109 2017-12-21 11:13:02 +10:00
amaitland 6f3016d1a7 Remove additionallibsdirectory references to CefSharp.Core\bin - probably a leftover from years ago before the structure was cleaned up 2017-12-20 10:54:41 +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
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
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
GrabzIt 3d45c10b28 Remove EnsureNuGetPackageBuildImports target 2017-10-06 08:04:25 +01:00
GrabzIt 2f680f01b7 Updated version 59.0.0 to latest build 3.3071.1649 2017-08-18 20:37:41 +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
amaitland 5b472f7258 Upgrade version numbers to 58 - this is for development purposes only, there is no planned 58 version, next version is 59
Upgrade to CEF 3.3029.1611.g44e39a8 / Chromium 58.0.3029.81
2017-05-05 10:46:54 +10:00
amaitland 858bfd3cf6 Upgrade to CEF 3.2987.1601 2017-04-10 11:11:41 +10:00
amaitland 9bbe75f287 Upgrade to CEF 3.2987.1599 2017-04-06 12:20:59 +10:00
amaitland 6d88927be8 Upgrade to CEF 3.2987.1597 2017-03-29 16:12:49 +10:00
amaitland e5ecfde20f Upgrade version number to 57.0.0
Upgrade to cef.redist.x86.3.2987.1591
CefSchemeRegistrar::AddCustomScheme has new params - IsSecure and IsCorsEnabled
Also new CefRawPtr type is used for Scheme registra
2017-03-13 10:58:03 +10:00
Chris a89d4070af Updated build script and added assembly details to the C++CLI projects (#1947)
* Made build script update manifest files
* Made build script update AssemblyFileVersion
* Replaced tabs with spaces
* Added resource files to the C++ CLI projects to be able to set the version
* Added the rest of the resource files

* Fix build script error

* Made build script update version in the C++CLI projects

* Fixed WPF browser going blank when connecting over RDP

* Revert "Fixed WPF browser going blank when connecting over RDP"

This reverts commit 3c2997568d.
2017-02-22 10:56:40 +10:00
amaitland 8a9b0deb60 Upgrade to 3.2883.1552
Add isMainFrame to IRequestContextHandler.OnBeforePluginLoad (CEF API changed)
2017-02-01 13:58:51 +10:00