4831 Commits

Author SHA1 Message Date
amaitland 750dbcd25b RequestContext - Improve CEF UI thread xml doc v71.0.0 2019-01-19 13:02:09 +10:00
amaitland 904ae0c3be TypeConversion - Improve ToNative type checking when converting from Object to CefValue
Previously you had to used a fixed type, now the type checking is more flexible.

Move the Dictionary check to before the collection check as a dictionary is technically a collection

Resolves #2625
2019-01-19 13:02:08 +10:00
amaitland e7b192e7c9 RequestContext - Fix some xml doc mistakes 2019-01-17 05:35:45 +10:00
amaitland 3065f2051d CefSharp.shfbproj - Upgrade to version 71.0.0 2019-01-16 09:23:31 +10:00
amaitland bbfe998ffa DependencyChecker - Switch to using Uri.TryCreate as is more fault tolerant 2019-01-15 12:15:42 +10:00
amaitland 23a724935c RenderClientAdapter - Update GetViewRect to default to using width/height as 1 instead of 0 as CEF doesn't like 0
cefclient performs the same checks
2019-01-14 20:42:05 +10:00
amaitland ec527c14a4 Upgrade to CEF 3.3578.1863.gbf8cff2 / Chromium 71.0.3578.98 2019-01-13 20:39:59 +10:00
campersau 6e82717f3f add spaces in exception messages (#2620) 2019-01-12 08:00:07 +10:00
amaitland 8c93b8bfbf OffScreen - Add CefSettings.EnableAudio
Just a helper method to remove the mute-audio command line arg
2019-01-12 06:39:42 +10:00
amaitland 4525b51c28 RequestContext.cpp - LoadExtension resolve issues with CefPostTask
For the x86 version we define and undefine CEF_INCLUDE_BASE_INTERNAL_CEF_BIND_INTERNAL_WIN_H_
as the /clr compliation option attempts to be helpful and convers all the __fastcall versions
to __stdcall which already exist, so we just use the standard calling convention and ignore
the optimised ones. The original error is
warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
(compiling source file RequestContext.cpp)
2019-01-10 18:59:32 +10:00
amaitland 627d0497cb RequestContext.h - Split method implementation out into RequestContext.cpp
Also fix up some other includes that were broken as a result. Still a lot more code cleanup to do.
2019-01-10 18:59:31 +10:00
amaitland 94b30728a9 VC++ - More header guards
See if I can reduce the number of errors in https://ci.appveyor.com/project/cefsharp/cefsharp/builds/21490716
2019-01-10 18:59:30 +10:00
amaitland 09653848a1 VC++ - Fix up includes and add some more header guards 2019-01-10 18:59:29 +10:00
amaitland 0b965ca109 RequestContext.h - Invoke LoadExtension on CEF UI Thread using CefPostTask
Previously this failed when building with VS2015 (VS2017 was successful)

https://ci.appveyor.com/project/cefsharp/cefsharp/builds/21300703

Add header guard to see if that resolves the issue.
2019-01-10 18:59:29 +10:00
amaitland 7aeaa3baf5 Xml doc improvements/fixes 2019-01-10 18:59:28 +10:00
amaitland b05439b862 WPF - BrowserSettings dispose after browser created
Additionally throw exception if BrowserSettings set after BrowserCreated
2019-01-10 18:59:27 +10:00
amaitland f9428c1aba OffScreen - BrowserSettings throw exception if attempting to use Disposed instance 2019-01-10 18:59:26 +10:00
amaitland ee666b3cb6 WinForms - Dispose of BrowserSettings after browser created
BrowserSettings must be set before the call to CefBrowserHost::CreateBrowser for this reason we enforce these checks.
Throw exception if attempt to set BrowserSettings after browser has been created

Initially I was going to make BrowserSettings a private set, unfortunately that probably won't work if you are using the designer
as there would be no way to instantiate a new instance. It was possible to lazy initialize in the get method, that doesn't really provide
a descriptive error message, I could have updated the documentation to describe the behaviour, unfortunately people just don't really the docs.
2019-01-10 18:59:26 +10:00
amaitland e0bab6fad2 BrowserSettings - Add command line arg xml doc comment to Javascript property 2019-01-10 18:59:25 +10:00
amaitland eec6285213 LoadExtension - Add additional comments about loading crx files
They must be unzipped first.
2019-01-10 18:59:25 +10:00
amaitland 9d1dadc199 appveyor.yml - Skip building if commit only contains md/js/html files 2019-01-10 18:59:24 +10:00
amaitland 43a4331385 Readme.md - Add cefsharp/71 release branch 2019-01-10 18:59:23 +10:00
Alex Maitland 2572715407 Add IApp interface and DefaultApp implementation (#2616)
* Core - Add IApp interface and DefaultApp implementation

Move code from Cef.Initialize into CefSharpApp

Working towards #2139

* CefSharpApp.h - Allow CefCustomScheme->SchemeHandlerFactory to be null

If cefCustomScheme->SchemeHandlerFactory is null then we no longer attempt to call CefRegisterSchemeHandlerFactory
You can then choose which RequestContext you wish to register your handler for, no longer forcing you to register
in the global context

Remove null checks in OnScheduleMessagePumpWork as we're throwing an exception if they're null when the CefApp is created
2019-01-10 18:59:22 +10:00
amaitland f8349db9af Cef.h - Remove ThrowIfCefNotInitialized
As IsInitialized is set when CefInitialize returns and it appears to be possible the OnContextInitialized is called
before it returns then this exception wasn't going to work.

Testing with Cef.GetGlobalRequestContext and Cef.GetGlobalCookieManager and they both return null if called before Cef.Initialize
So it shouldn't be possible to actually access the cookie manager/RequestContext. Improved the xml doc

Resolves #2600
v71.0.0-pre01
2019-01-01 21:47:51 +10:00
amaitland 49e543f48d Add AbstractCefSettings.EnableNetSecurityExpiration
Resolves #2615
2019-01-01 21:19:33 +10:00
amaitland 821a44fecc WinForms - ChromiumWebBrowser remove workaround for address not always loading correctly when passed into CreateBrowser
Manually reverts commit https://github.com/cefsharp/CefSharp/commit/1ab416895845e07706d8b798a78945d72b72871f
2018-12-31 13:27:50 +10:00
Alex Maitland 02e3084af3 Add Chromium Extension Support (#2613)
* Add Chromium Extension Support

Add IRequestContext.LoadExtension
Add IExtensionHandler
Add IExtension
Add example (import from cefclient) - was added to CefSharp.WinForms.Example projct
Add RequestContextExtensions - to make loading an extension slightly easier
2018-12-31 13:12:10 +10:00
amaitland 90054f9497 Cef.h - Temporarily comment out ThrowIfCefNotInitialized
There appears to be a timing issue/race condition, see https://github.com/cefsharp/CefSharp/issues/2600#issuecomment-450551309 for details
2018-12-30 21:56:28 +10:00
amaitland 809a7859b6 Update version numbers to 71.0.0 2018-12-28 13:52:03 +10:00
amaitland 38934a1d64 AbstractCefSettings - Default to using the process-per-site-instance process model
Resolves #2553
2018-12-28 13:51:46 +10:00
amaitland 2612c68002 Add IBrowserHost.RunFileDialog
Demo added to WinForms project

Resolves #2594
2018-12-28 13:39:33 +10:00
campersau 2942f71d32 Fix OffScreen spelling (#2614) 2018-12-28 07:01:52 +11:00
amaitland 416c4d7f9f DependencyChecker.AssertAllDependenciesPresent - Update how base path calculated
If browserSubProcessPath is an absolute Uri then use the folder as the base path
otherwise use the old behaviour and use the executing assembly

Resolves #2603
2018-12-27 21:56:44 +10:00
amaitland a1ccca77b8 WPF - Keyboard handlers make Dispose/Setup methods virtual
Allows for extension of the existing keyboard handler
2018-12-27 21:45:03 +10:00
amaitland 6540813849 Cef.h - Improve error message when calling method before Cef Initialized
- InitializedCheck renamed to ThrowIfCefNotInitialized
- ThrowIfCefNotInitialized added to more methods

Follow up to #2605
2018-12-27 21:33:17 +10:00
Chris 5d658c7eb0 Cef - Added initialized checks to Cef.Get* (#2605) 2018-12-27 22:16:18 +11:00
amaitland 9c742e0aac IBrowserHost.ImeSetComposition/ImeCommitText - Add ReplacementRange
IBrowserHost.ImeCommitText - Add relativeCursorPos

The CEF doc https://magpcss.org/ceforum/apidocs3/projects/(default)/CefBrowserHost.html says they should be optional params and only required on Mac OSX
Reports suggest they are required.

Resolves #2599
2018-12-27 21:14:36 +10:00
amaitland 11a8371e19 Rename CefExtension to V8Extension
Resolves #2612
2018-12-27 15:47:29 +10:00
amaitland ee7a7c2b34 OffScreen - Fill in missing xml doc
Hopefully this is the whole CefSharp.OffScreen namespaces now documented
2018-12-17 13:50:29 +10:00
amaitland 3cb5c119fa OffScreen - Remove obsolete methods
- Removed ChromiumWebBrowser methods OnPaint, OnCursorChange, StartDragging, UpdateDragCursor, OnPopupShow, OnPopupSize, OnImeCompositionRangeChanged
Access to that functionality is available through CefSharp.OffScreen.IRenderHandler, you can subclass the DefaultRenderHandler implementation should you require.
- Improve the xml doc for OnPaintEventArgs and some other methods

Resolves #2598
2018-12-17 13:41:05 +10:00
amaitland c7501cd5a3 IResponse - Remove ResponseHeaders
Was marked as Obsolate, has been replaced by Headers property

Resolves #2607
2018-12-16 21:53:11 +10:00
amaitland bbf7795d80 WPF/OffScreen - Add OnAcceleratedPaint
Exposes the CEF API for Shared D3D11 Texture support. This should be considered experimental as there are quite a few known bugs in the CEF implementation
(PDF Viewer not working correctly)

OffScreen.ChromiumWebBrowser.CreateBrowser API changed (breaking change) now pass in `WindowInfo` to customise settings
Refactor CreateBrowser to support windowed and OSR rendering (now accepts IWindowInfo)

Resolves #2527
2018-12-16 19:37:12 +10:00
amaitland 1c657c4e1b README.md - Update BountySource link 2018-12-16 11:24:29 +10:00
amaitland 9a88fb9a78 appveyor.yml - Update MyGet api key 2018-12-16 11:13:39 +10:00
amaitland c618dc155b RenderClientAdapter.h - GetViewRect must return a CefRect
CEF API Change see https://bitbucket.org/chromiumembedded/cef/commits/09afa3a843531a1768896bed3f64fb49ed81b525?at=3578
2018-12-16 10:48:52 +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 98d7262987 Refactoring - Move CefCookie conversion to TypeConversion (#2597) 2018-12-13 10:59:05 +01: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
amaitland 6a4fab2c87 PassThruResponseFilter/MemoryStreamResponseFilter - Rewrite to deal with DataIn being greater than DataOut
In some cases DataIn is greater than data out, the previous implementations simply copied all data, which doesn't work
in some specific instances (the files appear to have compression enabled).

Should resolve #2433
2018-12-11 13:29:22 +10:00
amaitland ccd721c98f OffScreen - Add xml doc to ChromiumWebBrowser.JavascriptObjectRepository property 2018-12-10 14:14:07 +10:00