Commit Graph

1628 Commits

Author SHA1 Message Date
amaitland bb9873d410 Upgrade version numbers to 73.1.12.0
Issue #2706
2019-03-27 15:23:24 +10:00
amaitland 3520581309 Upgrade to CEF 73.1.12+gee4b49f+chromium-73.0.3683.75 / Chromium 73.0.3683.75 2019-03-27 14:00:42 +10:00
Chris 12b27f91d5 Refactoring - Move CefNavigationEntry conversion to TypeConversion (#2682) 2019-03-23 13:15:50 +10:00
Alex Maitland 1a2d4a82f1 TypeConversion - Add null check to NavigationEntry^ FromNative
Also added extra comment to SslStatus
2019-03-23 13:13:34 +10:00
merceyz 58e8a29c77 Refactoring - Move CefNavigationEntry conversion to TypeConversion 2019-03-23 13:11:28 +10:00
campersau d45c5c5926 Add space in exception message (#2700)
also updated spelling to be consistent with new changes.
2019-03-22 20:12:42 +10:00
amaitland 18ef4471ac ManagedCefBrowserAdapter::CreateBrowser - Dispose of WindowInfo after browser Created 2019-03-22 10:48:40 +10:00
amaitland d2d1e6f879 WPF/WinForms/OffScreen - Move BrowserSettings Dispose into ManagedCefBrowserAdapter::CreateBrowser
- Improve BrowserSettings disposed check message

Follow up to #2643
2019-03-22 10:46:54 +10:00
amaitland 988c8ca263 IBrowserHost - Add SetAudioMuted and IsAudioMuted
Resolves #2665
2019-03-21 21:26:17 +10:00
amaitland 3423670740 WinForms/WPF/OffScreen - Dispose of BrowserSettings only if created by CefSharp framework
- 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
2019-03-21 20:13:02 +10:00
amaitland fbe9c556e2 Core - Add LogSeverity.Fatal
Resolves #2639
2019-03-21 13:33:50 +10:00
amaitland 8ffd29fc56 Upgrade version numbers to 73.0.0 2019-03-15 22:13:07 +10:00
amaitland 111439c98e CefSchemeRegistrar->AddCustomScheme - signature changed
https://bitbucket.org/chromiumembedded/cef/commits/cbcbd02638e5b4ccc26bab4a4b45b527c687068b?at=3683

Temp workaround until #2690 is implemented
2019-03-15 21:13:21 +10:00
amaitland 13970fe55c Upgrade to CEF 3.3683.1920.g9f41a27 / Chromium 73.0.3683.75 2019-03-15 20:58:06 +10:00
amaitland 7436d648a5 Upgrade to CEF 3.3626.1895.g7001d56 / Chromium 72.0.3626.121 2019-03-10 11:39:27 +10:00
amaitland e893b04012 WindowInfo.h - Make unmanaged constructor internal 2019-03-06 21:05:35 +10:00
Chris 9c5f9c285d Core - WindowInfo: Fixed memory leak (#2670) 2019-03-05 17:55:17 +10:00
Chris 21e5175fc1 Core - BrowserSettings: Fixed a memory leak (#2669)
* Core - BrowserSettings: Fixed memory leak

* Core - BrowserSettings: Only delete if we created the instance

* Core - BrowserSettings: Always set pointer to null

* Update BrowserSettings.h
2019-03-05 17:55:01 +10:00
amaitland 72ee102bcf V8Serialization - ConvertDateTimeToCefTime convert to UTC time
BindingTest.html - Add QUnit test

Resolves #2662
2019-02-28 20:27:06 +10:00
amaitland 679250ee58 Upgrade version number to 72.0.0 2019-02-25 21:54:25 +10:00
amaitland 8e6cd06956 Upgrade to CEF 3.3626.1891.g52be333 / Chromium 72.0.3626.96 2019-02-25 20:57:44 +10:00
Chris a9b3c36f77 Build.ps1 - Automated more tasks relating to updating CefSharp version and copyright year (#2640)
* 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
2019-02-15 21:40:25 +01:00
amaitland 2c9155f1cb WinForms/WPF - Change browserSettings to use the private field to avoid throw exception in dispose
- 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
2019-02-08 10:14:32 +10:00
amaitland 9f30087870 RequestContext - Improve CEF UI thread xml doc 2019-01-19 13:01:13 +10:00
amaitland 34f29f0323 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-18 12:34:25 +10:00
amaitland 406a2248b8 RequestContext - Throw exception of methods executed on Non CEF UI Thread
Resolves #2608
2019-01-17 08:07:15 +10:00
amaitland 73d6a06284 RequestContext - Fix some xml doc mistakes 2019-01-17 05:36:35 +10:00
amaitland c02591116c 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 14:38:38 +10:00
amaitland 5588cc47c5 Upgrade to CEF 3.3578.1863.gbf8cff2 / Chromium 71.0.3578.98 2019-01-13 20:46:16 +10:00
campersau b31069633e add spaces in exception messages (#2620) 2019-01-11 08:57:28 +10:00
amaitland c004a68c79 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 17:22:01 +10:00
amaitland d5a8108ed1 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 07:07:28 +10:00
amaitland 1d65a8d07e 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-09 22:07:36 +10:00
amaitland 5854abea03 VC++ - Fix up includes and add some more header guards 2019-01-09 21:58:52 +10:00
amaitland 6ea142b114 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-09 21:08:42 +10:00
amaitland a340ebd922 OffScreen - BrowserSettings throw exception if attempting to use Disposed instance 2019-01-09 17:26:39 +10:00
amaitland 2b905c1d01 BrowserSettings - Add command line arg xml doc comment to Javascript property 2019-01-09 14:39:24 +10:00
Alex Maitland ce38ed81f0 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-09 05:57:57 +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
2019-01-01 21:47:51 +10:00
amaitland 49e543f48d Add AbstractCefSettings.EnableNetSecurityExpiration
Resolves #2615
2019-01-01 21:19:33 +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 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