Commit Graph

277 Commits

Author SHA1 Message Date
João Neves 274e841f35 Close CefSharp.BrowserSubprocess.exe if parent process exits (#2375)
* Close cefsharp subprocess if main process dies

* Code review

* Await before exiting

* Update Program.cs
2018-06-09 21:39:23 +10:00
amaitland 56ce91fa9d Upgrade version numbers to 66 and update README.md 2018-05-03 12:20:45 +10:00
amaitland f2fcbf0add Always pass through Process Id to subprocess
Improve command line parsing

Partial import of changes from #2375
2018-04-30 12:45:15 +10:00
amaitland c37dbcd06a Remove Geolocation API and Upgrade version numbers to 65 2018-03-17 21:31:25 +10:00
amaitland a38df4a268 Default builds to using VS2015
Builds are now done using VS2015 which will require VC++ 2015 (or VC++ 2017 as they are compatible)

Remove VS2013 target from build.ps1
2018-02-05 17:23:34 +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
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
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 08444fe035 Updated to version 59.0.0 2017-08-18 16:07:03 +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 3bc9ca1898 Move Enums into their own folder (again not changing the namespace as to avoid breaking the public API, at least for now)
Add copyright disclaimer to JavascriptResponse
Remove Kernel32.OutputDebugString calls and replace with Debug.WriteLine
Removed ScriptException and ResponseAction - unused classes
Rename CefCursorType to CursorType - wasn't exposed as part of the public API so can rename
2017-03-21 10:05:38 +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 cd934267c6 Updated copyright year and made sure it used same format everywhere (#1966) 2017-03-06 08:44:37 +10:00
Chris c0ec00953a Re-sign x86 assembly in post build (#1914) 2017-02-01 16:28:03 +10:00
amaitland b30d615c6d Update to 55 version number - don't get too excited we're still 2-3 months away 2016-09-25 20:42:45 +10:00
amaitland 3084e3b4b3 Upgrade versions to 53.0.0 2016-09-07 13:35:32 +10:00
amaitland a44dc9b2db Follow up to https://github.com/cefsharp/CefSharp/commit/e41c097de98f9ce9d1a79d045df79f58f7338a0c 2016-08-27 07:10:13 +10:00
amaitland e41c097de9 Resolve #1774 2016-08-26 19:39:00 +10:00
amaitland e48d0f7bd6 Set per monitor DPI aware attribute in app.manifest
Resolves #1720
2016-07-13 09:12:55 +10:00
amaitland bccfc17e3e Build for x64 didn't work as it couldn't find the vsvars64.bat
Simplify and call editbin directly instead
Remove unnecessary changes to end of file from last commit
2016-06-16 07:37:32 +10:00
JJO30 42caa772f5 Windows Server 2008 R2 TerminalServices BEX Access Violation (#1703)
* Access Violation of BEX or APPCRASH occurrs on Windows Server 2008 R2 with Terminal Service

Hi,
I have AppCrash with CefSharpSubProcess in Windows Server 2008 R2 with Terminal Service.
I can not disable Data Execution Prevention (DEP) for CefSharpSubProcess.exe.
I have this message : " the execution of data protection must be activated to execute this program. You can not disable the protection of data execution for this program."

I think to activate TSAWARE for CefSharpSubprocess.exe. See : https://support.microsoft.com/en-us/kb/2279689 
Option 3

Thanks

* call vsvars64.bat when building the x64 version

* We write only once the target

https://msdn.microsoft.com/en-us/library/8e77sz74.aspx
2016-06-16 07:14:01 +10:00
amaitland d8704c5d8c Add app.manifest compatibility/application section to BrowserSubProcess 2016-06-08 09:27:04 +10:00
amaitland 28f6abd508 Update to 51.0.0 2016-05-30 07:59:51 +10:00
amaitland c8934a3964 Rename RenderSubProcess to WcfEnabledSubProcess - a much more descriptive name 2016-05-16 20:22:08 +10:00
amaitland 533911a507 Remove the cef prefix from class names - going for a more consistent naming overall - should these classes be used by someone else, better to rename now 2016-05-16 19:56:15 +10:00
amaitland 7bbcf162f9 Remove CefSubProcess.cpp - having such trivial cpp files seems silly
Convert CefRenderProcess into a cpp class - this should theoretically allow users to add CefSharp.BrowserSubprocess.Core as a reference then use their own process to spawn it
Move CefRenderProcess and CefSubProcess into CefSharp.BrowserSubprocess namespace - otherclasses should really be moved as well

Only use our custom subProcess when type is render, for gpu and plugin processes the standard implementation is just fine

Remove CefSubProcess
Rename CefAppWrapper to CefSubProcess
2016-05-16 19:46:30 +10:00
amaitland 54f7fccdaa Upgrade to .Net 4.5.2
Resolve #1572
2016-05-10 20:28:21 +10:00
amaitland 7937d4d1dc Only call editbin /largeaddressaware for x86 configuration - probably not necessary 2016-03-23 09:06:13 +10:00
amaitland 4745f45f18 BrowserSubProcess set largeaddressaware - resolves #1348 2016-03-23 08:18:26 +10:00
amaitland be593403b2 Upgrade version numbers to 49.0.0 - less confusion when downloading the packages from MyGet
Obviously the Chromium version hasn't been updated as yet, still waiting on cefbuilds.com to output the relevant packages.
2016-02-26 14:39:32 +10:00
amaitland 1722914300 Re-add dpiAware to app.manifest for BrowserSubProcess 2016-01-16 09:11:40 +10:00
amaitland bae3c28e92 Update copyright to 2016 2016-01-11 14:11:30 +10:00
amaitland 36b0b95d55 Remove dpiAware tag from app.manifest for both WinForms example and BrowserSubProcess
Use new CefEnableHighDPISupport method for on all processes
2016-01-06 11:50:18 +10:00
amaitland d33c41ec5d Remove unused include
No need to wrap bool in gcroot
Move command line parsing into c# land - can be reused in a few places.
Reduce code duplication in OnProcessMessageReceived - kOnFocusedNodeChanged handler
Minor changes for code consistency/formatting
2015-12-09 11:23:06 +10:00
amaitland 0ecd64dfd2 Upgrade to 3.2526.1347
Upgrade 45.0.0 references to 47.0.0
Remove BrowserSettings.Java as it's an NPAPI plugin and support was removed in version 45
2015-10-30 09:10:12 +10:00
amaitland 4dbc90333d CefAppWrapper no longer inherits from DisposableResource
No need for CefRenderProcess to keep a list of browsers any more, one less  thing to cleanup
2015-10-15 21:00:27 +10:00
amaitland 68b2c461b5 Remove unused references 2015-10-15 21:00:26 +10:00
amaitland 80c629e58b Fix small build error - had to do a full rebuild before compiler showed a problem 2015-09-24 18:51:07 +10:00
amaitland e492c0d21e Fixes #1263
Pass in CefCustomScheme as command line argument, as they're registered correctly in all processes
2015-09-15 15:15:26 +10:00
amaitland 614bb08fca Cleanup project references - removed some unused ones 2015-09-15 13:13:08 +10:00
amaitland bf96cafab1 Remove unused project references
Remove CallbackBehavior attribute - not used that WCF feature anymore
2015-09-15 13:11:19 +10:00
amaitland 54b8076043 Remove CefGpuProcess - wasn't used for anything
Simplify the class structure for the render/gpu subprocesses
2015-09-15 13:08:17 +10:00
amaitland 6e49e11af2 Update string version numbers to 45 2015-09-01 22:07:44 +10:00
amaitland 3861ebec3d Remove some unused WCF pieces now that native IPC is used to register js binding objects 2015-08-07 13:24:50 +10:00
amaitland fc58a7db32 Cleanup some compiler warnings by making classes private
Remove unused using statements
2015-08-07 13:21:09 +10:00
David Serfozo 5a76864ad0 uneeded method removed from IBrowserProcess 2015-08-06 10:28:06 +02:00
amaitland 41d300f330 Update AssemblyInfo and other version numbers to 43 2015-07-30 08:53:51 +10:00
David Serfozo d6661df344 removed unnecessary code from previous js callback implementation 2015-07-07 19:30:50 +02:00
David Serfozo 93a61c1442 removed unneeded eval script related methods 2015-06-27 19:01:52 +02:00
amaitland 898668aab2 Move wcfEnabled check from CefRenderProcess out into main program - launch the generic CefSubProcess instance if WCF is disabled 2015-06-25 10:45:28 +10:00