Commit Graph

4586 Commits

Author SHA1 Message Date
amaitland 9fedc1255d CefWriteHandlerWrapper - Revert accidental change to Write method
Might look at changing the code later
2018-04-20 12:32:27 +10:00
amaitland f6e58283a6 LegacyBinding - Remove objects from cache if key already exists
Temp fix for #2301 Will be resolved properly in #2306
2018-04-20 10:45:52 +10:00
amaitland 7490b53490 IDragData.GetFileContents - update to properly closer represent the CEF API
Pass in null to get the stream size, pass in a valid stream (typically MemoryStream) to get the actual contents
2018-04-19 17:39:21 +10:00
James Coyle 4c555d7223 Handle URL escaped paths correctly (#2364)
Allows for the FolderSchemeHandler to correctly parse encoded URLs such as URLs containing spaces in requests from the currently loaded page.
2018-04-19 14:20:54 +10:00
amaitland 066f5a92b2 Upgrade to CEF 3.3325.1758.g9aea513 / Chromium 65.0.3325.181 2018-04-17 15:14:42 +10:00
amaitland 11564becca WPF - Improve DragDrop implementation
Improved for when drag/drop both originate and end within the browser. Reuse the CEF IDragData for DragTargetDragEnter call

No improvement has been made to dragging external items
2018-04-16 17:26:23 +10:00
amaitland ccc549ba1f IRenderWebBrowser - Add StartDragging xml doc 2018-04-16 17:26:23 +10:00
amaitland a17150c40d IDragData - Add Clone method 2018-04-16 17:26:22 +10:00
amaitland ce51bfb7ca CefDragDataWrapper - Implement GetFileContents
Based on #1331
2018-04-16 17:26:22 +10:00
amaitland 82630ec396 CefDrawData - Add Image
Add IImage interface and supporting structs/enums
2018-04-16 17:26:21 +10:00
Ondrej Medek 791c42cff3 Example LifespanHandler.OnAfterCreated fix eperimental code rare crash (#2354) 2018-04-13 20:00:25 +10:00
amaitland d99d6d87fe Set event handlers to null in Dispose
Not all event handlers were set to null on Dispose in ChromiumWebBrowser instances and JavascriptObjectRepository

Resolves #2307
2018-04-13 16:18:57 +10:00
amaitland b97c0c54b5 WPF - Add ByteArrayWritableBitmapRenderHandler
Copies every bitmap into a unique byte[], no locking is used.
Will use lots of memory
2018-04-05 16:53:55 +10:00
amaitland 1a3dc5b7a9 Example Projects - Add Microsoft.Net.Compilers Nuget package
Adding Microsoft.Net.Compilers so we can use C#7+ syntax in the example projects.
Will limit to the example projects for now.

For anyone using VS2015, you should still be able to compile, just intellisense won't like the new keywords and syntax
2018-04-05 12:41:10 +10:00
Martin Chrástek 11fe9203e9 Fixed a typo (#2345) 2018-04-05 06:52:53 +10:00
amaitland dd9ba1472e WinForms Example - Update LifeSpanHandler implementation to support closing Tabs vis window.close() javascript 2018-04-04 13:18:21 +10:00
amaitland 2fbc0bb5a1 WebBrowserExtensions - Rename ExecuteScriptAsyncEncodeString to EncodeScriptParam
Method is used by both eval and execute so make name more generic. Improve xmldoc slightly
2018-04-03 14:22:32 +10:00
amaitland 431fe76a39 WebBrowserExtensions - Add ExecuteScriptAsyncEncodeString to allow for custom encoding of string params used with ExecuteScriptAsync overload
Also rename test case and add comment

Follow up to #2340
2018-04-03 14:12:10 +10:00
Garr Godfrey 7e30861bc2 Encode string parameters to pass unchanged.
enter the commit message for your changes. Lines starting
2018-03-28 22:28:01 -07:00
amaitland cfb0db1c3f RequestEventHandler - Add CanGetCookies and CanSetCookie 2018-03-28 14:40:26 +10:00
amaitland a87d834409 Add Cef.GetBlockingCookieManager, IRequestHandler.CanGetCookies and IRequestHandler.CanSetCookie
RequestEventHandler example implementation is incomplete
2018-03-28 14:28:38 +10:00
amaitland efff50bf7e Upgrade to CEF 3.3325.1751.ge5b78a5 / Chromium 65.0.3325.181 2018-03-28 13:50:42 +10:00
amaitland 447cce66bb WPF - Update ZoomLevelProperty when browser becomes visible.
Resolves #1778
2018-03-27 12:08:46 +10:00
Alex Maitland 8ac3f95419 Update CONTRIBUTING.md
cefbuilds.com link removed as site no longer available.
2018-03-23 16:48:25 +10:00
amaitland c3729bce9d build.ps1 - Set assemblyversion to same as version when appveyor tagged build (release build) 2018-03-23 15:37:25 +10:00
amaitland c3746d3115 WPF - Expose GetBrowserScreenLocation as protected virtual
Allow for custom implementation
2018-03-23 15:01:04 +10:00
amaitland c843317e33 WPF - Capture mouse when left button down so scrollbar works correctly outside of browser
Quick fix for #2258
2018-03-23 14:53:38 +10:00
amaitland 44b9f14599 WinForms - Add UseParentFormMessageInterceptor property, defaults to true
Allow for disabling of parentFormMessageInterceptor, should only be required for multithreademessageloop = true
2018-03-23 14:53:37 +10:00
Alex Maitland 546bb8dca3 Create config.yml
Recently added https://probot.github.io/apps/welcome/

Let's see how it behaves
2018-03-22 15:56:49 +10:00
WarWithinMe dace5d8f47 Serialize Dictionary type to V8 object (#2303)
* Serialize Dictionary type to V8 object

Handle Dictionary type, otherwise it will be treated as class/structs and cause exception.

* Make the testcase covert IDictionary interface & ensure consistent bracket style.
2018-03-22 11:00:52 +10:00
Marinko edb0bc9983 check if the visual is connected (#2321) 2018-03-21 15:45:15 +10:00
amaitland 895ad8d94f WPF OSR - Rename IBitmapFactory to IRenderHandler
At some point it would be nice to expose the whole of the CefRenderHandler API, this should at some point make that easier.

Issue #2237
2018-03-21 14:36:30 +10:00
amaitland 59c6da399c WPF OSR - WritableBitmapFactory Add checks for a valid sourceBuffer 2018-03-21 14:11:21 +10:00
amaitland 73894a592d WPF OSR Rendering - InteropBitmapFactory split the experimental resize on increase option into IncreaseBufferInteropBitmapFactory
Also some minor threading improvements and buffer validation (check if closed and invalid)
2018-03-18 00:07:37 +10:00
amaitland c37dbcd06a Remove Geolocation API and Upgrade version numbers to 65 2018-03-17 21:31:25 +10:00
amaitland 8eb9860cac Upgrade to CEF 3.3325.1749.ga42963a / Chromium 65.0.3325.146 2018-03-17 21:29:21 +10:00
amaitland 8d642df363 CefSharp3.sln - Remove .nuget folder from solution
Hasn't existed in the project for a while now
2018-03-07 16:44:43 +10:00
amaitland 837506dd91 Nuget - Copy the x86 libs before the x64 libs for AnyCPU target
Hopefully this resolves the issue with the VS Designer picking up the x64 ones.

Issue #2276
2018-03-07 16:43:52 +10:00
amaitland 298e4c224a Nuget - CefSharp.Common use the props file to copy the files 2018-03-07 13:31:37 +10:00
amaitland baf8058aeb Nuget - First attempt at removing targets files for OffScreen, WinForms and WPF packages
Should now just be copied in the props files, using a <None/> target to copy the AnyCPU files with copy local false (private = false) and
x86 and x64 using copy local true

Hopefully only need a targets file for the CefSharp.Common package as it copies the cef.redist(x86|x64) files
2018-03-07 13:15:43 +10:00
amaitland 8dd27ab03d Nuget Props - Another attempt at #2276 2018-03-07 11:35:44 +10:00
João Neves 5a713fdf7d Support uncaught exception handling (#2244)
* Added support for uncaught javascript exception in Render Process Message Handler
* Fixed typo
* Added stack frame column numbers
* Code review
* Code review
* Update JavascriptException.cs
2018-03-07 10:21:31 +10:00
amaitland ad9944aa6f Update MyGet API Key
Previous key expired
2018-03-06 17:03:55 +10:00
amaitland 894787f877 Nuget props - invert when and otherwise so x86 comes first
Problem with VS was always picking up the x64 version when attempting to use designer

Attempt to fix #2276
2018-03-06 15:32:35 +10:00
amaitland 9c62fa4d46 InteropBitmapFactory and WritableBitmapFactory - Add ability to customise the dispatcherPriority 2018-03-06 10:59:06 +10:00
amaitland 5e6addc0c9 CefTime.GetDoubleT returns invalid .Net date
Issue #2283
2018-03-05 16:55:11 +10:00
amaitland 7d720c6f80 ResourceHandler.FromFilePath - Remove Obsolete attribute
Update to use File.OpenRead and FromStream method instead
2018-03-05 16:36:22 +10:00
amaitland f67ff89e44 Geolocation - Mark as obsolete/deprecated
See #2293 for details
2018-03-05 16:34:35 +10:00
amaitland fb374c0f94 CefExample - Add CefSharpSettings.Proxy example 2018-03-05 16:18:25 +10:00
amaitland 5a5ba89ebf ResourceHandler.FromFilePath - Mark as Obsolete
There are problems with multiple concurrent calls to the underlying CefResourceHandler

See #2041 for background
2018-03-05 16:14:19 +10:00