Commit Graph

4985 Commits

Author SHA1 Message Date
amaitland 5ec1dbfe78 ResourceHandler - Rename CharSet to CharSet 2019-06-25 19:24:57 +10:00
amaitland 74d6ae1c0e Update version number to 75.0.110 2019-06-25 19:24:57 +10:00
amaitland 7eff7d17c0 ResourceHandler - Add new methods and callbacks
Now uses IResourceHandler.Open to call IResourceHandler.ProcessRequestAsync
IResourceHandler.ProcessRequestAsync now returns CefReturnValue instead of bool as there are three states
2019-06-25 19:24:57 +10:00
amaitland 4bf29cf358 IJavascriptCallback - Add ExecuteWithTimeoutAsync 2019-06-25 19:24:57 +10:00
amaitland 17d8767045 Revert "JavascriptCallback - Hack to work around upstream issue"
This reverts commit 9d47c2ed0f.
2019-06-25 19:24:57 +10:00
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 e2c7a3781c CefCookieAccessFilterAdapter - Add adapter and wire up CefResourceRequestHandlerAdapter
Cookie access can now be controlled using ICookieAccessFilter.CanSendCookie and ICookieAccessFilter.CanSaveCookie
- Remove ResourceHandlerWrapper::GetCookie as it's not used anymore
2019-06-25 19:24:57 +10:00
amaitland 5af8d77c46 CefResourceRequestHandlerAdapter - Deal with CefBrowser and CefFrame being null for ServiceWorker 2019-06-25 19:24:57 +10:00
amaitland da98060300 IResponse - Add Charset property
Maps to CefResponse::GetCharset and CefResponse::SetCharset
2019-06-25 19:24:57 +10:00
amaitland 3f820e4513 IRequest - Add GetHeaderByName and SetHeaderByName 2019-06-25 19:24:57 +10:00
amaitland 8fc2a37a30 JavascriptCallback - Hack to work around upstream issue
JavascriptCallback's are limited to only working in the main frame
Frame ids aren't the same between processes, so makes it almost impossible to handle callbacks in sub frames

https://bitbucket.org/chromiumembedded/cef/issues/2687/cefframe-getidentifier-differs-between
https://github.com/cefsharp/CefSharp/issues/2743#issuecomment-502566136

This should be reverted after the problem has been resolved.
2019-06-25 19:24:57 +10:00
amaitland 8ac2dc36d6 JavascriptCallbackProxy - Remove comment that's no longer relevant 2019-06-25 19:24:57 +10:00
amaitland 1c73a64099 JavascriptObjectRepository - Only return Root objects (toplevel/parent objects)
GetObjects was returning all objects, even those that are sub objects
2019-06-25 19:24:57 +10:00
amaitland ff87529a49 Javascript Legacy Binding - Pass objects on CefBrowserHost::CreateBrowser
Previously objects were sent in OnRenderViewReady, which is only called once for a browser instance, not for process switches
Now objects are passed when the browser is created, still need to check for popup handling
2019-06-25 19:24:57 +10:00
amaitland 5459cc5709 CefExample - Switch to using https://cefsharp.example url instead as custom scheme is broken currently.
Reported upstream at https://bitbucket.org/chromiumembedded/cef/issues/2685/networkservice-custom-scheme-unable-to
2019-06-25 19:24:57 +10:00
amaitland 5a8509dd38 CefSettings/RequestContextSettings - Improve xml doc
Clarifications about empty/non-empty values for CachePath/RootCachePath
2019-06-25 19:24:57 +10:00
amaitland 105cf8f3af CefExample - Register https://cefsharp.example scheme handler factory for testing 2019-06-25 19:24:57 +10:00
amaitland 0542c5138b SendProcessMessage - Remove frame/browserid from messages
Not complete or tested yet
2019-06-25 19:24:57 +10:00
amaitland 3f53f55243 DefaultApp - Make OnRegisterCustomSchemes virtual
Can be overridden
2019-06-25 19:24:57 +10:00
amaitland 88b1d8678d CefCustomScheme - Update xml doc 2019-06-25 19:24:57 +10:00
amaitland c8a85d3fb5 Update version number to 75.0.30 2019-06-25 19:24:57 +10:00
amaitland 62ee664c81 SslVersion - Add TLS 1.3 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 73a156fdc5 Initial version 75 upgrade and NetworkService changes
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
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
Shaojun Li fc00213859 VS2019 build support with VS2017 toolset (#2816)
* VS2019 build support with VS2017 toolset
2019-06-24 22:05:46 +10:00
Alex Maitland f19a8710e4 Update support.yml
Remove Gitter from the list, try directing firstly to stackoverflow.
2019-06-20 17:17:02 +10:00
medoni 4638f8a628 OffScreen - ChromiumWebBrowser constructor change RequestContext to IRequestContext
Changed typeof requestContext to IRequestContext in ChromiumWebBrowser.ctor
2019-06-18 07:06:07 +10:00
amaitland 020404f49b README.md - Update Contact to change stackoverflow text
Make it clearer that questions should be asked on stackoverflow
2019-06-10 13:08:44 +10:00
Alex Maitland fe98124c9b Async JavascriptBinding - Add support for returning Task (#2771)
* 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
2019-06-08 17:21:49 +10:00
Alex Maitland a1eec28f13 Update FUNDING.yml
Comment out GitHub Sponsors line for now
2019-06-07 16:26:09 +10:00
amaitland f725ab3907 WinForms - DefaultFocusHandler now allows browser to take focus on initial load
Previously on LoadUrl etc we didn't take focus, we now take focus on the initial Load so touch screens work
The behaviour when using ChromiumWebBrowser.ActivateBrowserOnCreation = true is still the same as versions prior to 73 (version 73 is the only different version)

Issue #2776
2019-06-04 20:10:47 +10:00
amaitland 7c3d66817b WinForms - Add ChromiumWebBrowser.ActivateBrowserOnCreation
Set ActivateBrowserOnCreation = true to restore the old behaviour where the browser was activated upon creation.

Issue #2776
2019-06-04 19:50:16 +10:00
Alex Maitland f85c34e996 Create pull_request_template.md
Resolves #2794
2019-06-04 08:13:13 +10:00
Alex Maitland a6a78d94c3 Update issue templates 2019-06-04 08:05:39 +10:00
Alex Maitland c1680acbaf Create FUNDING.yml 2019-06-04 07:52:31 +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 302f5b2c83 WinForms Example - Improve Cef.DoMessageLoopWork examples
Change WinFormsBrowserProcessHandler to use a WinForms timer so it's Diposed when the Form is
switch it to using 60fps
2019-06-02 20:35:31 +10:00
amaitland 106277e6ae WinForms Example - Re-enable MultiThreadedMessageLoop as default for the example 2019-06-02 20:08:12 +10:00
amaitland bf222334d1 WinForms Example - Revert to using Tabbed example by default
Accidentally changed in https://github.com/cefsharp/CefSharp/commit/13aefe185728c44ad3c47a99e44e3b0088960362
2019-06-01 09:00:51 +10:00
amaitland 7da18cae4c JavascriptRootObjectWrapper/RegisterBoundObjectRegistry - Make last callback Id static
We make it static so it's unique across the process so long running callbacks

Issue #2792
2019-06-01 09:00:50 +10:00
谭九鼎 9f5d839496 README.md - Use https (#2787) 2019-05-31 11:50:22 +10:00
João Neves 734621592c Kill sub process to avoid hanging forever (#2756)
* Close cefsharp subprocess if main process dies

* Kill subprocess to avoid hanging on close
2019-05-31 10:55:43 +10:00
Michael Olsen ae94efa7df WPF Experimental - Fixed IME window not showing or showing at the wrong location (#2782)
* Fixed IME window not showing at all or sometimes showing at the wrong location.

* Added braces for code consistency.

* Added a few more braces for code consistency.

* Removed unnecessary local variable.

* Removed some implementation specific wording in a comment.
2019-05-31 07:22:31 +10:00
amaitland b09b5fd959 WinForms - Replace EditorBrowsable(EditorBrowsableState.Never) with DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)
Was hiding the methods from Intellisense

Resolves #2784
2019-05-28 13:56:24 +10:00
amaitland d308d45ae4 .editconfig - Add csharp_prefer_braces
Single line if statements should have braces

https://github.com/MicrosoftDocs/visualstudio-docs/blob/master/docs/ide/editorconfig-code-style-settings-reference.md#code-block-preferences
2019-05-23 20:31:10 +10:00
amaitland 0ef6ec3619 Wpf Example - Add StandardTabControlWindow for testing of the built in TabControl 2019-05-21 16:39:29 +10:00
amaitland 13aefe1857 WinForms Example - Split BrowserProcessHandler out into two different examples
ScheduleMessagePumpBrowserProcessHandler - contains a simplistic message pump example
WinFormsBrowserProcessHandler - contains just a timer that calls Cef.DoMessageLoopWork

These are the two options for integrating CEF into WinForms
2019-05-15 21:27:56 +10:00
amaitland d434050a33 SimpleBrowserForm - Set browser.FocusHandler = null; when not using multiThreadedMessageLoop 2019-05-15 09:02:08 +10:00
slozier 203d675519 Refactor to avoid loading System.ServiceModel assembly (#2767)
* Refactor to avoid loading System.ServiceModel assembly

* Add note and __declspec(noinline)
2019-05-14 06:00:34 +10:00