4848 Commits

Author SHA1 Message Date
amaitland 7d24861e7a Upgrade to CEF 3.3578.1870.gc974488 / Chromium 71.0.3578.98 v71.0.2 2019-03-09 13:46:33 +10:00
amaitland 485353147a WindowInfo.h - Make unmanaged constructor internal v71.0.1 2019-03-06 20:30:12 +10:00
Chris 5757f587c3 Core - WindowInfo: Fixed memory leak (#2670) 2019-03-06 11:51:58 +10:00
Chris 27f1ff1e3d 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-06 11:51:57 +10:00
amaitland f3877be19a V8Serialization - ConvertDateTimeToCefTime convert to UTC time
BindingTest.html - Add QUnit test

Resolves #2662
2019-02-28 20:29:58 +10:00
Alex Maitland fd9d52ebeb WinForms ChromiumWebBrowser - Change BrowserSettings property to use IBrowserSettings
Should resolve issue with WinForms Designer

Also make IBrowserSettings inherit from IDisposable.

Issue #2667
2019-02-28 15:01:57 +10:00
amaitland 5e83050ae0 Upgrade version numbers to 71.0.1 2019-02-23 14:46:58 +10:00
Chris 2ae1c34b44 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-23 14:44:25 +10:00
amaitland cb374cb12f ManagedCefBrowserAdapter - Throw exception if attempting to call CreateBrowser with a Disposed BrowserSettings instance 2019-02-22 12:21:58 +10:00
amaitland 707db8bb6e appveyor.yml - Take two at updating myget api key 2019-02-22 12:21:56 +10:00
Alex Maitland f7c39101d1 Update myget API key 2019-02-22 12:21:55 +10:00
Alex Maitland 6209bbdcdf build.ps1 - Remove incorrect $env:VS141COMNTOOLS -eq $null check when building VS2017
There is no such environment variable, VS2017 uses vswhere to locate the installed version.

Move checks into the MSVS function and make the error message consistent
2019-02-22 11:11:32 +10:00
amaitland fc7a9a7672 Upgrade to CEF 3.3578.1869.gcc1dc0f / Chromium 71.0.3578.98 2019-02-08 21:50:40 +10:00
amaitland 8df97b8b3f WPF Example - Change to using DataUri (LoadHtml extension method) for showing errors instead of LoadString
- Add new IFrame.LoadHtml extension method.

Related `upstream` issue is https://bitbucket.org/chromiumembedded/cef/issues/2586/loadstring-results-in-terminating-renderer
2019-02-08 11:28:23 +10:00
amaitland a448b11f37 CefSharp.Common.props - Remove <None/> entries from targets
Should have been removed in https://github.com/cefsharp/CefSharp/commit/d5593bbffb23dff216571dc8f12b55458b788352#diff-7ce5a629cd14a698d255731fe97f9f1d
2019-02-08 11:28:22 +10:00
Alex Maitland ccb4761023 Update ISSUE_TEMPLATE.md
Testing with `cefclient` should be done using the same version as `CefSharp` is based on, provide users with instructions on how to determine version.
2019-02-08 11:28:21 +10:00
Mike Bragg 468ebea598 WinForms avoid throwing exception when setting BrowserSettings to null (#2637) 2019-02-07 15:08:42 +10:00
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