Commit Graph

6179 Commits

Author SHA1 Message Date
amaitland e27ba3da5c Release 63.0.0 and remove financial support section 2018-02-08 15:05:13 +10:00
amaitland 2ea878e0d0 CookieManager - Make unmanaged constructor internal 2018-02-08 10:52:22 +10:00
amaitland 4d4607f24a ICookieManager - Improve xmldoc wording around how methods are executed.
Most methods are executed in an async fashion with a callback that notifies of completion.
Set ICookieManager.DeleteCookies params to null by default (they're optional)
2018-02-08 10:46:52 +10:00
amaitland 72ce8cd87f Nuget\Readme.txt - Update VC++ Requirement 2018-02-07 13:24:49 +10:00
amaitland 91da9ea8a4 JSB - Improve xmldoc for IJavascriptObjectRepository 2018-02-07 12:55:40 +10:00
amaitland df1ab21c01 ScriptedMethodsTest.html - Update to use JSB v2 CefSharp.BindObjectAsync 2018-02-07 10:16:19 +10:00
amaitland e7002a7874 WPF - Fix exception in WritableBitmapFactory
WritableBitmapFactory now works as expected
Add option to invalidate whole bitmap in response to #2035 (default is to invalidate only the dirty rect still)
2018-02-06 11:03:38 +10:00
amaitland 26610e4f35 Readme.md Update Release Branches table. 2018-02-06 09:21:30 +10:00
Chris 6175648e80 WinForms: Prevent designer from setting any default values (#2265) 2018-02-06 09:20:57 +10:00
campersau 7802653fb1 add missing space in exception message (#2263)
https://github.com/cefsharp/CefSharp/commit/a086b4b7802da4d8ddc60a38e309968ba8d4cce6
2018-02-05 19:16:54 +10:00
amaitland 38be769f96 OnConsoleMessage - Add LogSeverity 2018-02-05 17:30:44 +10:00
amaitland a38df4a268 Default builds to using VS2015
Builds are now done using VS2015 which will require VC++ 2015 (or VC++ 2017 as they are compatible)

Remove VS2013 target from build.ps1
2018-02-05 17:23:34 +10:00
amaitland 9f5a7efe70 Upgrade to CEF 3.3282.1731.gfc9a4fa / Chromium 64.0.3282.119 2018-02-05 17:11:41 +10:00
amaitland e88baebc17 Minor API Cleanup
- Move ITaskScheduler and InternalWebBrowserExtensions into Internals folder (not for public use)
- Improve some of the API xml doc
2018-02-05 14:28:17 +10:00
amaitland 1ab4168958 WinForms - Temp workaround for a bug where the address passed into the constructor isn't always loading 2018-02-05 13:56:54 +10:00
amaitland a086b4b780 WPF - Throw exception if Load called before browser initialized
Follow up to #2260
2018-02-05 10:46:16 +10:00
Chris 456ec8b935 WinForms: Prevent designer from setting default values (#2261) 2018-02-05 10:36:55 +10:00
Chris 29fc52e6da Revert build breaking change (#2262) 2018-02-05 10:35:32 +10:00
amaitland bfbd30cce5 WinForms - Add custom Designer
Add some custom designer attributes
Converted the logo.png to a 16x16 bmp as a short term placeholder (someone is welcome to contribute something better)
Hide all the handlers from the designer
2018-02-02 15:51:21 +10:00
amaitland da83065ce7 Remove BrowserSettings.OffScreenTransparentBackground
No longer used, transparency controller through setting BackgroundColor property.
2018-02-02 15:51:21 +10:00
Alex Maitland 85512d66cf Update ISSUE_TEMPLATE.md
Clarify version number requirement, need to know exactly version.
2018-02-02 12:39:39 +10:00
Alex Maitland 582d39a020 Update ISSUE_TEMPLATE.md
Add clarification about testing with newer `-pre` release before opening issue.
2018-02-01 13:04:22 +10:00
amaitland fbce2d61de WinForms Example - Update LifeSpanHandler example to host popup in Tab (notify popup of move and resize) 2018-01-30 15:01:38 +10:00
amaitland 6bcca7ac5e JSB LegacyBindingTest.html Import Property Tests
Copy the tests that were added to BindingTest.html
2018-01-30 12:38:16 +10:00
amaitland ea15a4f670 MyGet Key Update
Update to using a limited access expiry key from my account (amaitland)
2018-01-30 11:27:24 +10:00
amaitland 1b00c277b8 JSB Add Caching
Bound object meta data is cached within a render process
CefSharp.IsObjectCached - JS method to test if object cached
CefSharp.RemoveObjectFromCache - JS method to remove object from cache

If a request is made for multiple objects with not all of them being cached then a IPC message is sent.
When all objects already bound return response object for consistency
FindBrowserWrapper signature change - it's really not safe to throw a managed exception in the middle of unmanaged code, changed to logging and null checking
JavascriptObjectRepository - Add All Constant - Used when All objects are requested for binding (objects can also be requested by name)

TODO: Add a JS library to improve user experience when dealing with cached objects
2018-01-30 10:16:28 +10:00
amaitland bd3f336bdc CefSharp.Example - Add example registering a FolderSchemeHandlerFactory for the https scheme (https://cefsharp.example) 2018-01-29 12:57:33 +10:00
amaitland 2b49105b6f JSB - Fix bug where properties weren't being analysed for sync bound objects
Added test case
Reordered method to make it more logical, used named properties so it's clear what's being set.
Add TODO for unresolved object event
2018-01-29 10:15:01 +10:00
amaitland 934cd70ed6 JSB BindObjectAsync return response object
Can now return additional properties, still need better error handling
2018-01-29 09:45:24 +10:00
amaitland 68c9a6418c Disable CanExecuteJavascriptInMainFrame checks for ExecuteScriptAsync/EvaluateScriptAsync
See #2250 for details (appears to be bug in `CEF`)
2018-01-24 10:16:01 +10:00
amaitland 3334d71fc4 WinForms Example - Add binder to registered objects
Required to run BindingTest.html
2018-01-24 10:03:26 +10:00
amaitland 5bd240c269 Fix nuget package mistakes Examples Projects and Test project
Slightly modified packages and reused the same version number which caused some problems
(Manually fixed package references)
2018-01-23 22:11:46 +10:00
amaitland 44b7600600 WinForms Example - Add additional JS binding 2018-01-23 21:35:23 +10:00
amaitland 4b3c04a615 IJavascriptObjectRepository.Register - Improve isAsync xml doco comment 2018-01-23 18:41:13 +10:00
amaitland 0e25149c96 Nupkg Restructure
Resolves #2156

Nuget packages updated to use ItemGroup None instead of Copy target
Nuget props restructure to support Win32 target
x86 and Win32 targets are exactly the same in content, they differ in name only, so switched to using an <Otherwise/> block
Remove AnyCpu <When/> option from props files and consolidate with x86 and Win32. Set Private to false and rely on the
<None/> entires to copy the files to the output folder

Ideally would move the OffScreen, WinForms and WPF targets file content to the props (as they're actually props now), unfortunately
we need guaranteed ordering and Nuget 2.8.x doesn't provide that, if we leave them as .targets it'll happen late enough to make sure
the cef.redist list of files is provided.
https://github.com/NuGet/Home/issues/4229#issuecomment-271387190
2018-01-23 12:21:14 +10:00
amaitland ecbbced91b Example projects update app.manifest version number 2018-01-23 09:24:21 +10:00
amaitland 247d0d688d Nuget packages - create public properties for common, winforms, wpf and offscreen targets so they can be reused if required
Combine Win32 and x86 target in CefSharp.Common.targets
2018-01-22 15:49:26 +10:00
amaitland 2b3508d60a OffScreen/OffScreenBrowserBasicFacts- Add CrossSiteNavigationJavascriptBinding Test case
Very basic, little crude, passing though
Still having some problems with Xunit and shutting down on the correct thread.
2018-01-22 13:06:09 +10:00
amaitland e47157f195 WPF Example - Add LegacyBinding options and some better comments 2018-01-22 12:33:48 +10:00
amaitland fd64b079a2 IJavascriptObjectRepository.ObjectBoundInJavascript - Fix bug and add example 2018-01-22 12:19:51 +10:00
amaitland 7c699e3ec6 IJavascriptObjectRepositry - Add ObjectBoundInJavascript event
Executed on the thread pool when objects are bound in JS
2018-01-22 12:19:43 +10:00
amaitland 1019ee0a71 WcfEnabledSubProcess - Add better error handling when closing the WCF channel/factory
Resolves #2074
2018-01-22 11:15:44 +10:00
amaitland dd4b7d630b WPF - OnMouseLeave send actual x,y coordinates not just the -1 and call SendMouseClickEvent when left mouse button pressed
Resolves #2060

# Conflicts:
#	CefSharp.Wpf/ChromiumWebBrowser.cs
2018-01-22 11:07:42 +10:00
amaitland 738635d38c Hide tooltip if already open when textchanged
Follow up to #2232
2018-01-22 11:06:24 +10:00
Daniel Bretzigheimer f98fb858c7 tooltip updates it position when the tooltip text is changed (#2232)
* tooltip updates it position when the tooltip text is changed

* encoding fixed
2018-01-22 11:04:59 +10:00
amaitland efc77d4fcc Fix typo 2018-01-22 11:03:49 +10:00
amaitland 679cdb5b11 JSB ResolveObject WcfEnabled = false throw exception if attempt to register sync object
Update the examples to use newer Register method as Legacy options is disabled by default
2018-01-22 11:02:23 +10:00
Alex Maitland 9b01b69d2f Implement Javascript Binding v2 (#2247)
* JSB Rewrite - Add CefSharp.RegisterBoundObject javascript method

To get around the problem of IPC timing, I've reversed the communication, now it's the render process requesting
the bound objects, the implementation is incomplete at this stage, more just a basic proof of concept

Rewrite BindingTest.html using QUnit
One of the tests doesn't map correctly as it requires def user interaction

TODO:

- Get objects by name
- Rename Messages.h values that relate to this change so they are more descriptive
- Better error handling
- Caching of objects within a render process
- Investigate global context options, don't think it's possible to call an async method directly in the global context

# Conflicts:
#	CefSharp.Example/Resources/BindingTest.html

* JSB Improve Request/Response message names

* BindingTest.html - Output stress test results

* Remove JavascriptRootObject was leftover from time we used WCF to transmit objects

* JavascriptObjectRepository - Objects are now sent in the same list with an IsAsync flag

Separation when sending over IPC with two unique lists isn't necessary

* JavascriptObjectRepository - Return objects by name or return all by default

Untabify CefAppUnmanagedWrapper.cpp
Add minor comment to CefBrowserWrapper for a reminder that we use Frame Identifier as dictionary key

* Add //TODO: JSB comments for work that's left to be done

Ideally within a render process we cache bound objects once they've been communicated,
It would also be nice to make multiple binding requests so objects can later be added dynamically

* JSB Allow multiple calls to CefSharp.RegisterBoundObject

Update BindingTest.html to name two distinct calls to different bound objects

* JSB - Add some notes about caching, no working implementation yet

* JSB - Dynamically Register object on Request

* JSB Add ability to unbind an object and rename RegisterBoundObject to BindObjectAsync

# Conflicts:
#	CefSharp.Example/Resources/BindingTest.html

* JSB BindObjectAsync - if objects already bound then return false

* JSB - Ignore Indexer properties

Were previously throwing an exception

* JSB - Add LegacyJavascriptBindingEnabled option so preserve existing behaviour

This is only useful for SPA application and those that only navigate to pages
hosting within a single domain. Any sort of cross-site navigation and a new
render process will be spawned and objects won't be bound automatically
(You can use the new methods to request they're bound yourself, at least in theory,
more testing required on this)

* Add LegacyBindingTest.html

Current disabled by default. To enable uncomment CefSharpSettings.LegacyJavascriptBindingEnabled = true;
in CefExample.cs

* RegisterJsObject and RegisterAsyncJsObject can now only be used when CefSharpSettings.LegacyJavascriptBindingEnabled = true

See https://github.com/cefsharp/CefSharp/issues/2246 for details
2018-01-22 10:24:25 +10:00
amaitland a2451960d3 WPF IWpfKeyboardHandler Changes
- Make public so users can implement their own handler (the OSR IME patch can be rewritten as a IWpfKeyboardHandler)
- Formatting for consistency
- Make methods virtual

Follow up to #2056
2018-01-18 16:28:53 +10:00
João Neves a845e75432 Prevent accelerator keys to work when typing text (#2056)
* Call correct base method and handle text input in case event wasn't handled
* Removed SourceHook method
* Added previous keyboard handling logic and ability to use it through a property
2018-01-18 16:25:24 +10:00