4338 Commits

Author SHA1 Message Date
amaitland 71409abc9a Upgrade to CEF 3.2987.1601 v57.0.0 2017-04-11 10:44:50 +10:00
amaitland 40a719ede3 Upgrade to CEF 3.2987.1599 2017-04-06 16:18:30 +10:00
Chris 325ec0f3cf Fixed NullReferenceException in DoClose (#1980)
* Fixed NullReferenceException in DoClose
2017-03-31 07:30:14 +10:00
amaitland d0ce4ea20f Add 57.0.0 branch details (branch to follow) v57.0.0-pre01 2017-03-30 10:38:26 +10:00
amaitland 6ded700373 Add Recaptcha test - https://cefsharp.com/Recaptcha.html 2017-03-30 07:55:47 +10:00
amaitland 6d7e21bb62 Revert "Disable VS hosting process for x64"
This reverts commit 26574eb2f6.
2017-03-29 16:15:04 +10:00
amaitland 6d88927be8 Upgrade to CEF 3.2987.1597 2017-03-29 16:12:49 +10:00
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
Alex Maitland 223334b025 Update Readme.txt
Update Designer support comment
Add MSDN reference for changing solution platform.
2017-03-22 12:05:44 +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 488b1d091a WPF - Minor internal method name changes and tweak a few comments 2017-03-21 10:13:44 +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
Chris a35a030ee8 Added minimal WPF designer support (#1989) 2017-03-20 11:35:09 +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
amaitland a86e03b6ef Update appveyor.yml to 57.0.0
Add appveyor.yml to CefSharp3.sln so it's easier to find and replace the version number
2017-03-14 06:11:46 +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 26574eb2f6 Disable VS hosting process for x64 2017-03-13 11:08:40 +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 e596199c6c Merge branch 'mouse-capture-crash' of https://github.com/taylorjonl/CefSharp 2017-03-08 10:24:56 +10:00
amaitland d3a8f3a432 Revert "WPF - Remove Mouse.Capture and directly forward popup mouse events Resolves #1723"
This reverts commit c0e8e8ef8d.
2017-03-08 10:20:04 +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 04ff93817e Add https://pixabay.com/en/beach-pacific-coastline-ocean-coast-2089936/ to CefSharp.Example as embedded resource - test loading of image using browser.RegisterResourceHandler 2017-03-06 08:57:11 +10:00
amaitland e130d7e36b WPF - Remove volatile keyword from disposeCount and browserInitialized - switch to using Interlocked class 2017-03-06 08:56:32 +10:00
amaitland 760d81dc23 Change PostDataAjaxTest.html to use https scheme and add CrossOriginWhilstList entry (AJAX post data for custom schemes stopped working ages ago, this just works around the problem). 2017-03-06 08:55:08 +10:00
amaitland d3e5249b9f Move most of the logic from CefSharpSchemeHandler into CefSharpSchemeHandlerFactory and use the ResourceHandler.FromStream/FromString methods instead
People keep implement IResourceHandler directly, so update the examples in hopes they use the build in methods
2017-03-06 08:55:08 +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
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
amaitland eee0a9e9d1 Add example of new CookieManager code 2017-03-06 08:55:07 +10:00
amaitland 6a437710b6 WinForms example use args.IsLoading rather than !args.CanReload 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
amaitland 20b1200010 WinForms Example - Add httpbin.org url to test menu 2017-02-24 09:02:04 +10:00
Alex Maitland 65adaa1846 Update README.md
Update funding link for 57.0.0
2017-02-24 08:42:27 +10:00
Chris 144dbe8f8a Made GetViewRect always round up (#1962) 2017-02-24 06:57:26 +10:00
amaitland c0e8e8ef8d WPF - Remove Mouse.Capture and directly forward popup mouse events Resolves #1723 2017-02-22 12:24:54 +10:00
Jonathan Taylor 5c70fb4fb8 Removed Mouse capture in mouse events 2017-02-21 19:05:09 -07: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 ad29104605 Fixed WPF browser going blank when connecting over RDP (#1952) 2017-02-20 13:30:46 +11:00
amaitland c827af48b3 Re-add call to Cef.RemoveDisposable 2017-02-16 19:24:49 +10:00
amaitland a9c29ae279 Refactor Dispose pattern - remove new Dispose override and destructor
Design time checks are now implemented in the protected Dispose override
Rename some methods
2017-02-16 19:14:09 +10:00