Commit Graph

15 Commits

Author SHA1 Message Date
Alex Maitland 8963b12d12 Test - JsBindingGlobalApiDisabled ensure page loaded successfully 2021-06-05 14:35:04 +10:00
Alex Maitland f0280d7b89 Test - Update to use LoadUrlAsync 2021-06-04 14:47:20 +10:00
Alex Maitland f114528614 Enhancement - Add LoadUrlAsync (#3596)
Core - Add LoadUrlAsync

- Add IWebBrowser.LoadUrlAsync
- Add LoadUrlAsyncResponse
- Update unit tests to use new method
-  Add static method to allow for CefSharp.Wpf.HwndHost to share the same code.
2021-06-04 13:35:42 +10:00
Alex Maitland e65aa52ba4 JavascriptBinding - Add JavascriptBindingSettings.JavascriptBindingApiEnabled property (#3571)
- The Javascript methods that CefSharp provides in relation to JavaScript Binding are
  created using a Global (window) Object. Settings this property allows you to disable
  the creation of this object. Features like EvaluateScriptAsPromiseAsync that rely on
  the creation of this object will no longer function.
2021-06-04 13:33:46 +10:00
Alex Maitland f6a347abf6 Javascript Binding - CefSharp.BindObjectAsync() never raised the ResolveObject event
Resolves #3470
2021-04-28 13:45:58 +10:00
Alex Maitland c630d77ef3 Test - Add Test to verify workaround for issue #3470 2021-04-28 13:36:50 +10:00
Alex Maitland 6fa25ab9db Test - Improve reliability of JavaScriptObjectRepositoryFacts.CanRegisterJavascriptObjectBindWhenNamespaceIsNull
- JavascriptObjectRepository generates object ids using a static counter, we need to get the object Id for this
  test to be reliable, using an Object Id of 1 will fail if the test order isn't in a very specific order
2021-04-05 13:38:02 +10:00
Alex Maitland 1599bfa9cd Javascript Binding - Fix failing .Net Core Test case
- Add condition to calling Register()
- Add license disclaimer

Follow up to #3467
2021-04-05 10:54:22 +10:00
pedoc 1ff25441ea Javascript Binding - Allow binding to classes in the global namespace (#3467)
* fix IsComplexType NullReferenceException

Sometimes, the registered Javascript object does not have a namespace, at this time this function will throw a ```NullReferenceException```.

* add unit test for IsComplexType

* Simplify and remove useless code

* Update CefSharp/Internals/JavascriptObjectRepository.cs

Co-authored-by: campersau <buchholz.bastian@googlemail.com>

Co-authored-by: Alex Maitland <amaitland@users.noreply.github.com>
Co-authored-by: campersau <buchholz.bastian@googlemail.com>
2021-04-05 10:31:15 +10:00
Alex Maitland 6b27ba8d2b Test - Fix a couple of javascript warnings 2021-03-16 15:31:13 +10:00
campersau e873f8fe60 Test - Add CefSharp.RenderProcessId javascript binding test
Issue #2984
2020-11-09 20:53:35 +10:00
amaitland 05665405f4 Core - Legacy Javascript Binding Integration Test
Add integration test (only in Net Full, not Net Core currently)

#2977
2020-09-16 19:58:40 +10:00
amaitland 1af1065f03 Net Core - Add XUnit Test Project
Issue #3197
2020-07-24 21:07:29 +10:00
campersau 760cc13d96 Remove unused JavascriptBindingFacts tests (#3194) 2020-07-23 14:17:41 +10:00
amaitland ae41e10d71 Core - Javascript Binding Configure Property Name
- Rename settings object to JavascriptBindingSettings
- Validate JavascriptBindingSettings.JsBindingGlobalObjectName in setter to provide immediate
  feedback
- Add FreezableBase which throws exception when frozen (we can reuse this for some other settings classes)
- Add some basic Unit Tests (More would be better)

Follow on from #3126
2020-05-30 19:28:50 +10:00