Now uses IResourceHandler.Open to call IResourceHandler.ProcessRequestAsync
IResourceHandler.ProcessRequestAsync now returns CefReturnValue instead of bool as there are three states
Cookie access can now be controlled using ICookieAccessFilter.CanSendCookie and ICookieAccessFilter.CanSaveCookie
- Remove ResourceHandlerWrapper::GetCookie as it's not used anymore
Compiles, that's about it at this point, there are major CEF breaking changes, and lots to be addressed.
Browser Process (main process)
- Removed IResourceHandlerFactory as it no longer fits with the structure that CEF provides
- New IResourceRequestHandler interface added, not plumbed in yet
- CefSettings - Add RootCachePath and ApplicationClientIdForFileScanning
BrowserSubprocess (render process)
- SendProcessMessage was moved from CefBrowser to CefFrame
- OnBrowserCreated added extraInfo param
The BrowserSubprocess changes for this upgrade should be complete
* Async JavascriptBinding - Add support for returning Task
Remove Parallel Task execution code from MethodRunnerQueue
Add ParallelMethodRunnerQueue
- For the new code path the Func is executed, if the Result is a generic Task we wait for it's completion
- If the task is not generic then we return immediately
This is only enabled when CefSharpSettings.ConcurrentTaskExecution = true;
* MethodRunnerQueue - Display error message when method returns Task
* ParallelMethodRunnerQueue - Rename to ConcurrentMethodRunnerQueue
* MethodRunnerQueue - Improve formatting of error message when method returns Task
* Async JavascriptBinding Return Task - Add Basic xUnit Test
Very quick test, needs to be refined a little. The basics are working as expected.
* Add Binding Test Async Task Example to the WPF Example menu
* Async JSB Task - Add additional tests and improve error messaging
- JavascriptMessageReceived event added to ChromiumWebBrowser/IWebBrowser
- CefSharp.PostMessage and cefSharp.postMessage added to V8Context on creation for use in Javascript
- Add PostMessageTest.html
* Feature Request - Add IAudioHandler
- For performance reasons we return NULL if no audiohandler is assigned
- No example is provided currently
Initial implementation for #2714
* WinForms/Wpf/OffScreen - Reorder Dispose methods
- Set browser initialized to false
- Release event handlers
- Dispose managedCefBrowserAdapter
- Set handlers to null
* WinForms/WPF/OffScreen - Set Handlers to null immediately after event handlers cleared
The one exception is LifeSpanHandler which is released after managedCefBrowserAdapter.Dispose
- Add OffScreen project to internals visible to list for CefSharp.Core
- Add BrowserSettings.FrameworkCreated property which can only be set through an internal constructor
- Dispose of BrowserSettings immediately after call to CreateBrowser if created by CefSharp framework
- managedCefBrowserAdapter::CreateBrowser throw exception if browserSettings already disposed
Resolves#2643
* 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
* build.ps1 - Write version to CefSharp.shfbproj
* build.ps1 - Specify UTF-8 as encoding when reading
* build.ps1 - Save files as UTF-8 without BOM
* build.ps1 - Update copyright year on compiled files
* build.ps1 - Update version in appveyor.yml
* Removed copyright year from the nuspec files
* Updated editorconfig for ps1 files
* Apply changes from build.ps1
* LICENSE - Removed year
- Changed to expose only the public interface (this is better for scenarios where the designer attempts to query the property and subsequently attempts to load libcef and fails).
- Make IBrowserSettings implement IDisposable
- ManagedCefBrowserAdapter::CreateBrowser now throws exception if browserSettings param is null
The WPF version won't actually throw an exception, just standardised it's code so they're both the same.
Issue #2638