Commit Graph

1628 Commits

Author SHA1 Message Date
amaitland 910df4877a Make callback ids unique within the render process to avoid overlay between different contexts - was possible to dispose of a callback on a different context to which it was created as the Ids were the same
Add IJavascriptCallback.Id - mostly for debugging purposes
2017-03-16 15:32:38 +10:00
amaitland e5ecfde20f Upgrade version number to 57.0.0
Upgrade to cef.redist.x86.3.2987.1591
CefSchemeRegistrar::AddCustomScheme has new params - IsSecure and IsCorsEnabled
Also new CefRawPtr type is used for Scheme registra
2017-03-13 10:58:03 +10:00
amaitland 789888f4c9 Merge branch 'remove-caretbrowsing-setting' of https://github.com/mtschoen/CefSharp 2017-03-13 10:26:52 +10:00
amaitland 6173f4db43 Change PluginVisitor to accept the newly added IWebPluginInfoVisitor
Extract PluginVisitor TaskCompletionSource out into TaskWebPluginInfoVisitor
2017-03-10 15:31:25 +10:00
amaitland 43aa8a35ea Remove IBrowserHost.PrintToPdfAsync - code is now implemented in the PrintToPdfAsync extension method 2017-03-10 14:43:35 +10:00
amaitland 423fc2a806 OnBeforePopup - throw exception if newBrowser == _browserControl (should never be) 2017-03-10 11:59:05 +10:00
amaitland 85f80471bb IFrame - Add additional xml comment, the underlying CEF framework will return a invalid frame with a identifier < 0
CefSharpBrowserWrapper::GetFrame - Only return frame if a valid reference is obtained
2017-03-07 11:05:31 +10:00
amaitland 5d459a5d32 Add IRenderProcessMessageHandler.OnContextReleased - native IPC message sent from render process 2017-03-07 09:23:10 +10:00
amaitland 8ff319fdb5 Update ClientAdapter::OnBeforeClose to use auto dispose method and improve the comment 2017-03-06 09:10:38 +10:00
amaitland 699a181f95 Change IResourceHandler.ProcessRequest lifetime handling for IRequest
Previous it was disposed immediately after the method had executed which made it hard to execute
in an async fashion (which is possible with the callback)
2017-03-06 08:55:08 +10:00
Chris cd934267c6 Updated copyright year and made sure it used same format everywhere (#1966) 2017-03-06 08:44:37 +10:00
Matt Schoen 24841e73b4 Remove CaretBrowsing from IBrowserSettings to match latest CEF master cdcdfa99913a01f3617a0d25a2e2f2ed145987bd 2017-02-26 19:28:06 -08:00
Chris a89d4070af Updated build script and added assembly details to the C++CLI projects (#1947)
* Made build script update manifest files
* Made build script update AssemblyFileVersion
* Replaced tabs with spaces
* Added resource files to the C++ CLI projects to be able to set the version
* Added the rest of the resource files

* Fix build script error

* Made build script update version in the C++CLI projects

* Fixed WPF browser going blank when connecting over RDP

* Revert "Fixed WPF browser going blank when connecting over RDP"

This reverts commit 3c2997568d.
2017-02-22 10:56:40 +10:00
Chris e844bed531 Add Minimal WinForms Designer Support (#1946)
* Fixed designer support
* Adapted to feedback
* Revert "Adapted to feedback"
This reverts commit a1541c9cee.
* Adapted to feedback
* Added missing summary
2017-02-16 19:11:33 +10:00
amaitland ff836fdb98 Start spilitting out the Task based callbacks that are implemented in VC++ and implement them in C# with an interface - allow direct access to underlying CEF API 2017-02-14 12:27:07 +10:00
amaitland f4814c4abb Rename Task callbacks for consistency - will move them into a new folder shortly 2017-02-14 11:59:41 +10:00
amaitland 55f5ce44b5 Remove unused using statement from CookieManager
Update  cookieManager.SetSupportedSchemes usage as no longer accepts param array
2017-02-14 11:53:41 +10:00
amaitland 6e443ca091 CookieManager Rewrite - remove all the async wrappers and expose the underlying CEF API
Remove CookieAsyncWrapper as it's no longer required to perform the operations directly on the CEF IO thread.
Async extension methods will be added to maintain existing functionality
2017-02-14 11:40:12 +10:00
amaitland ee5fd34ee6 Comment out Cef example - none of the CefSharp examples have the relevant directory present.
Update xml comments on Cef.RegisterWidevineCdm
Add braces to if check - even single line if statements have braces for consistency
2017-02-13 15:55:44 +10:00
Justin Stenning 2298ea0a93 Implementation of Cef.RegisterWidevineCdm (#1935)
* Added Cef.RegisterWidevineCdm for CEF Widevine CDM registration #1934
* Added test page for WidevineCdm registration and example registration #1934
* Noted additional steps for Widevine and proprietary codecs to CdmSupportTest.html
* Link for more information changed to issue #1934 in CefExample.cs
* replaced Cef.RegisterCdmCallback's async result with IRegisterCdmCallback parameter
* RegisterCdmCallback now uses taskCompletionSource
2017-02-13 15:37:55 +10:00
amaitland 4d697e00c8 ICompletionCallback now implements IDisposable and the CefCompletionCallbackAdapter disposes of the instance when it itself is disposed of. 2017-02-09 13:16:49 +10:00
amaitland e515cc0bfa background_color should be BackgroundColor 2017-02-02 11:21:15 +10:00
amaitland 8a9b0deb60 Upgrade to 3.2883.1552
Add isMainFrame to IRequestContextHandler.OnBeforePluginLoad (CEF API changed)
2017-02-01 13:58:51 +10:00
amaitland 64c6f4410a Update GetScreenPoint - still not ready for use as there has been limited testing 2017-01-30 09:39:11 +10:00
Alex Maitland 08d6fa902b GetScreenPoint changes not ready
Comment out code
2017-01-28 12:46:31 +10:00
amaitland c06a6bbc58 Add NativeMethodWrapper::SetWindowPosition helper method - code is duplicated and should be revisited later 2017-01-23 16:49:14 +10:00
amaitland d4ef1519b9 Add IRenderWebBrowser.GetScreenPoint - basic WPF implementation 2017-01-18 07:26:05 +10:00
amaitland 454be3cfa8 Add Crashreport functions
https://bitbucket.org/chromiumembedded/cef/src/6e0baff75ceeb3e079b1dda4099d81573334d741/include/cef_crash_util.h?at=2883&fileviewer=file-view-default
2017-01-16 11:30:37 +10:00
amaitland 8166a34c88 Upgrade to 3.2883.1545 2017-01-16 11:19:27 +10:00
amaitland db238f0838 Upgrade to 3.2883.1542 2017-01-12 13:09:35 +10:00
amaitland 2415529519 Add calls to CefDoMessageLoopWork before CefShutdown is called when settings.MultiThreadedMessageLoop = false 2017-01-06 14:08:55 +10:00
amaitland 264b42d35b Cef.Shutdown add double check lock - shouldn't be possible as it should always be run on the UI thread. Since we have the lock, best to double check
Add ManagedThreadId checking to Initialize/Shutdown - make sure they're called on the same thread.
2017-01-06 13:22:40 +10:00
amaitland 94820149ae Add IBrowserAdapter.Resize 2017-01-06 10:00:24 +10:00
amaitland fdd08896d7 Expose the IME methods/callback added with https://bitbucket.org/chromiumembedded/cef/commits/f7014be
It should now be possible for someone to implement IME support in the WPF control to resolve #1262
2016-12-14 07:32:03 +10:00
amaitland b7f7cc4dc6 Minor formatting changes to CefCertificateCallbackWrapper
Update WinFormsRequestHandler so the X509Certificate2UI.SelectFromCollection is made on the UI thread and
Follow up to #1878
2016-12-13 10:20:25 +10:00
Smaran Harihar fa41529853 Add IRequestHandler.OnSelectClientCertificate (#1878)
* wip create hooks for onSelectClientCertificate

* create interface and wrapper for callback

* get certificate from CefCertificateList, convert to X509Certificate2, add them to X509CertificateCollection and return this to ClientAdapter

* code review changes. Certificate selection in wrapper requires recreation of certificate in iteration

* added certificate dialog selection to WinFormsRequestHandler. Used VS untabify to remove all the tabs and replaced it with spaces

* missed updating a summary on ISelectClientCertificateCallback

* code review changes
2016-12-13 09:48:15 +10:00
amaitland d30e01fa1d Add ability to retrieve Ssl status from NavigationEntry
Needs to be revised as NavigationEntry and SslStatus are both structs and they should probably be wrappers
2016-12-12 06:34:33 +10:00
amaitland 6d568c7d09 Update CefSslInfoWrapper implementation and ClientAdapter::OnCertificateError so that it's now passed in as the param
(Possible to see the invalid certificate when there is an error)
2016-12-12 06:00:07 +10:00
Philip Beber b47731de5e Added DownloadItem .OriginalUrl (#1877)
* Added "OriginalUrl" property to DownloadItem which wraps "GetOriginalUrl" in CEF.

Added a sidebar to the example app which shows the DownloadItems as received by CefSharp.Core/Internals/TypeConversion.h

Added a View menu for hiding/showing the regular sidebar and the new download info sidebar.

* Pull request feedback
2016-12-04 22:26:49 +10:00
amaitland 490a5bee15 WCF communication was broken as channel argument which we previously parsed to get the parent process Id was removed in https://bitbucket.org/chromiumembedded/cef/issues/1912/notreached-in-logchannelidandcookiestores
Simply append our own command line argument with the process Id.
2016-12-02 06:44:23 +10:00
amaitland f2050a0861 Add scriptUrl and startLine to EvaluateScriptAsync 2016-12-02 06:10:40 +10:00
amaitland 87bec41ec2 Check for valid script name in StringUtils::CreateExceptionString as passing in CefString() to Eval when there is an exception will crash the render process 2016-12-01 23:11:14 +10:00
amaitland 80d6a023df Upgrade to 3.2883.1539 2016-12-01 22:56:06 +10:00
amaitland abd1ad32d8 ILifeSpanHandler.OnBeforeClose the IBrowser wrapper was already disposed, so for now just create a new wrapper and dispose of it immediately after the call 2016-10-24 12:14:07 +10:00
amaitland 1ccb55e9e0 Add IBrowserHost::GetVisibleNavigationEntry - step one in implementing #1793 2016-10-20 19:15:05 +10:00
amaitland cce8cd825d Upgrade to 3.2840.1493 (Chromium 54.0.2840.59)
Add IResponse to IRequestHandler::OnResourceRedirect
2016-10-19 08:17:50 +10:00
amaitland 5f1adc695b Move CookieManager to CefSharp.Core folder 2016-10-18 22:53:34 +10:00
amaitland e17b3383c0 Make CookieManager public and move into CefSharp.Core namespace 2016-10-18 22:47:14 +10:00
amaitland b8d2a755a7 Improve xml doc around Cef.Shutdown and Cef.Initialize 2016-10-14 14:47:14 +10:00
amaitland e59026dba2 Upgrade to 3.2785.1482 2016-10-04 13:55:05 +10:00