1615 Commits

Author SHA1 Message Date
amaitland d60d1b73c8 SetCanExecuteJavascriptOnMainFrame was only being set when there was a RenderProcessMessageHandler assigned, change so it's always set
Improve the formatting of the exception thrown
2017-03-28 10:03:21 +10:00
amaitland eecf3aded9 Add IWebBrowser.CanExecuteJavascriptInMainFrame property, set to true/false when V8Context is created/released
Added checks in the execute/eval javscript methods in WebBrowserExtensions
Made possibly by the addition of OnContextReleased IPC message being added
2017-03-28 09:43:59 +10:00
amaitland 0a2693fa9b IsCorsEnabled should be true in most cases where IsStandard is true (we default IsStandard to true)
Default IsSecure = true - seems like a logical default
2017-03-27 15:46:35 +10:00
amaitland b432d5aa38 Change IBrowserHost.SendMouse* to use the MouseEvent struct (added some extension methods to maintain API compatibility)
Review classes and structs
Added constructor to structs where all fields were required
Made some classes sealed, mostly those that are passed into the framework where subclassing and adding methods/properties wouldn't make sense
2017-03-27 15:46:34 +10:00
Chris 5132883d9e Changed from Uri.ToString to Uri.AbsoluteUri (#1994) 2017-03-27 09:27:54 +10:00
amaitland aba002a8d7 Start of class/struct cleanup - classes like WebPluginInfo should really have private setters, make it clearer than the values provided are readonly
Remove Plugin and replace with WebPluginInfo - resolves #1991
Still need to revisit the class/struct debate
2017-03-21 12:26:35 +10:00
amaitland 3bc9ca1898 Move Enums into their own folder (again not changing the namespace as to avoid breaking the public API, at least for now)
Add copyright disclaimer to JavascriptResponse
Remove Kernel32.OutputDebugString calls and replace with Debug.WriteLine
Removed ScriptException and ResponseAction - unused classes
Rename CefCursorType to CursorType - wasn't exposed as part of the public API so can rename
2017-03-21 10:05:38 +10:00
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
João Neves bc83d6c247 Allow calling managed methods from objects bound with RegisterAsyncJsObject that return arrays of structs (#1981)
* Fixed problem when calling CefV8Value::CreateArray. Needs prior call to V8 context enter
* Call callback dispose in case of failure
* Support serialization of struct arrays to JS side
* Fixed formatting
2017-03-13 21:37:55 +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 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 7bf33f4a36 Expose ResourceH.GetMemoryStream - turns a string into a memory stream and optionally appends a BOM to the beginning 2017-03-06 08:55:07 +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 55f2c82ac7 Fixed LoadHtml loading the Url even if RegisterHandler returns false (#1943) 2017-02-15 10:01:35 +10:00
Mike Bragg 74be8c8edf Remove SuppressOpen enum value to line up with CEF (#1942) 2017-02-15 07:27:28 +10:00
amaitland e6bcbe4111 Finish cookie manager rewrite, resolves #1936 2017-02-14 13:15:12 +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 960c5953ba Continue with CefSharp.csproj restructure - move more classes into subfolders (again no namespace change for backwards compatibility) 2017-02-14 12:08:58 +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 33416b009b Move callback interfaces into Callback folder - leave in the CefSharp namespace to maintain backwards compatibility 2017-02-14 11:52:57 +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 84930b0784 Update sandcastle help file version numbers to 55.0.0
Fix some other xml comments and remove some unused fields - still lots of comments that could be added
2017-02-06 15:00:45 +10:00
amaitland e515cc0bfa background_color should be BackgroundColor 2017-02-02 11:21:15 +10:00
amaitland 01e7e6f3d7 Add LoadHtml extensions method - use data uri to load the html 2017-02-02 11:21:14 +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 314b3a00c7 IGeolocationHandler.OnRequestGeolocationPermission - improve comment
GeolocationHandler Example - upgrade to properly use the callback.
2017-01-30 10:05:44 +10:00
amaitland d4ef1519b9 Add IRenderWebBrowser.GetScreenPoint - basic WPF implementation 2017-01-18 07:26:05 +10:00
amaitland 11fd871547 Add chrome_elf.dll to DependencyChecker (crashpad support) 2017-01-09 14:13:13 +10:00
Chris 08bc409047 Added a missing space and made two letters lowercase (#1909) 2017-01-07 07:23:41 +10:00
amaitland 43f2a3faba WinForms LifeSpanHandler - Check browser.IsDisposed (should only happen when disposing)
Update ILifeSpanHandler.DoClose comment
2017-01-06 13:08:39 +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
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
amaitland 9df1bc132c Add RegisterResourceHandler and UnRegisterResourceHandler to simplify using the DefaultResourceHandlerFactory 2016-12-08 22:14:09 +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
GrabzIt 1f18ba9c6e Minor Typo (#1854) 2016-11-09 08:07:45 +10:00
amaitland 1c0fb61932 Change WCF timeout from 10 seconds to 2 seconds 2016-10-24 10:43:01 +10:00
amaitland 1ccb55e9e0 Add IBrowserHost::GetVisibleNavigationEntry - step one in implementing #1793 2016-10-20 19:15:05 +10:00