Commit Graph

4871 Commits

Author SHA1 Message Date
amaitland db306a64c9 CefExample - Add autoplay-policy example 2019-03-20 21:51:18 +10:00
kurtzky aaa5054d6c Added QUnit tests for DateTime serialization (#2695)
* Added QUnit tests for DateTime serialization

Related to Issue #2662
2019-03-20 21:15:50 +10:00
Alex Maitland 70de3a6d9c Add Initial IRenderProcessHandler.OnContextCreated/Released implementation (#2697)
* 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
2019-03-20 20:33:10 +10:00
amaitland 1c5d4000fa WinForms/WPF - Dispose of IFrame after calling LoadUrl 2019-03-18 20:11:48 +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
Chris 165d2beaf9 Added config for no-response and support bot (#2684) 2019-03-10 01:50:43 +01: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 b1ef9e8bc2 OffScreen - ChromiumWebBrowser.Dispose add comment for Interlocked.CompareExchange 2019-03-01 14:10:27 +10:00
merceyz 58fac3865b OffScreen - Cleanup and improvements to the dispose pattern
- Added thread safe dispose pattern

Issue #1954
2019-03-01 13:38:29 +10:00
amaitland 4a145bf363 WPF ByteArrayWritableBitmapRenderHandler - Remove base class
AbstractRenderHandler - change pixel properties to internal so they can be shared ByteArrayWritableBitmapRenderHandler
WritableBitmapRenderHandler - run Format Document (changed fields to read only)

Follow up to #2652
2019-03-01 13:19:35 +10:00
Chris 5c292cd707 WPF - Refactor RenderHandler implementations (#2652)
* WPF - Refactored the RenderHandler implementations

* Added a AbstractRenderHandler
* Refactored the RenderHandlers to inherit from AbstractRenderHandler
* Implemented the correct and thread safe dispose pattern

* WPF - AbstractRenderHandler updated xml documentation

* WPF - ByteArrayWritableBitmapRenderHandler: Removed incorrect PixelFormat

* WPF - AbstractRenderHandler: Added missing GC.SuppressFinalize
2019-03-01 13:03:52 +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
Alex Maitland 574bc16db2 BrowserTabUserControl - Add xml doc to SetupMessageInterceptor 2019-02-28 15:16:08 +10:00
Alex Maitland 8fd431154d Merge branch 'message-interceptor-fix' of https://github.com/merceyz/CefSharp 2019-02-28 15:04:41 +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 4f67c2acef Merge branch 'master' into message-interceptor-fix 2019-02-22 13:18:52 +01:00
Robinicks a5be9e4ed8 Readme.md Add SharpBrowser (#2659)
Readme.md - Add SharpBrowser
2019-02-22 16:33:47 +10:00
Alex Maitland 196c0932df 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 12:23:47 +10:00
amaitland 2684f9cd04 appveyor.yml - Take two at updating myget api key 2019-02-20 20:28:57 +10:00
amaitland fde8fc67e7 Nuget packages - Move the item groups that contain folders into the props files
Props are included before targets (usually top of build file), so this makes them more accessible.
Previously you'd have to include user code after the .targets file to access the item groups
2019-02-20 18:48:49 +10:00
Alex Maitland dc05c21ec4 Update myget API key 2019-02-20 14:26:03 +10:00
Alex Maitland accca5739c Merge branch 'master' into message-interceptor-fix 2019-02-19 19:52:51 +10:00
Alex Maitland 9d2c66f584 Cefexample Add link to cef specific command line args 2019-02-19 10:07:11 +10:00
Chris 3ddb280be7 Merge branch 'master' into message-interceptor-fix 2019-02-17 20:39:39 +01:00
merceyz 3eee0d6787 WinForms.Example - Fixed message interceptor not working after a render process switch 2019-02-17 20:24:27 +01: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
Chris 8d23dc711b WPF - Fix compile error because of IDE1006 Naming rule violation (#2649) 2019-02-13 21:19:23 +01:00
amaitland 6f6ca94ea9 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 10:42:15 +10: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 3c650a0121 CefSharp.Common.props - Remove <None/> entries from targets
Should have been removed in https://github.com/cefsharp/CefSharp/commit/d5593bbffb23dff216571dc8f12b55458b788352#diff-7ce5a629cd14a698d255731fe97f9f1d
2019-02-07 13:22:38 +10:00
amaitland a350f963f4 Nuget update copyright year 2019-02-07 13:22:37 +10:00
Alex Maitland 0b0f6116b8 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-02 20:28:45 +10:00
amaitland e1779a22f7 README.md - Update as 71.0.0 as been released 2019-01-22 20:40:18 +10:00
amaitland da06d3786e Add LegacyResourceHandlerFactory - for backwards compatibility with old behaviour. 2019-01-22 15:25:19 +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 2706f13b1a DependencyChecker - Switch to using Uri.TryCreate as is more fault tolerant 2019-01-15 12:14:29 +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
amaitland b2acd4ad76 OffScreen - Add CefSettings.EnableAudio
Just a helper method to remove the mute-audio command line arg
2019-01-12 06:40:34 +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