The network services requires that custom schemes be registered, previously we only registered them in render processes.
Add SubProcessApp to handle scheme registration
CefAppUnmanagedWrapper inherits SubProcessApp now
#2743
* 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
* Applied formatting
* Fixed file encoding + Updated copyright year
* Updated License
* Fixed more file encoding
* Copyright notice now shows the year the file was created
Cherry-pick of #2449 which was approved by Alex.
I was seeing instances of the subprocess being spawned this way when running the CefSharp.Wpf.Example project. Debugging showed me that no such argument was being passed to the process. This PR works around the issue by opting out from getting the parent process ID for such processes.
* 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
* 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
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
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
* 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
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