14 Commits

Author SHA1 Message Date
Bruno Cunha e Silva 5c6f7ebe7f Preserve references in deserialization 5249 (#73)
* Preserve references in serialization to allow deeper structures to be serialized

* Clean unwanted changes

* Fix NativeObject DateTime interop tests

* CR improvements

* Remove duplication in Directory.Build.props

* Simplify deserializer state logic. Improve resources usage and performance

* Add missing RootObjectDeserializerState file

* Remove unwanted whitespaces on Directory.Build.props

* Refactor DerserializerState classes and simplify Deserializer logic

* CR improvements.
Drop DynamicDeserializerState.

* Optimize TypeInfoCache, not loading Properties and Fields for collections and primitive types

* CR improvements

* Fix EvaluateScript for try catch blocks - "Uncaught SyntaxError: Unexpected token 'try'"

* Fix SampleApp EvaluateJavascript that were missing the return keyword

* Fix deserialization of null as structures

* CR improvement
2023-02-28 15:15:28 +00:00
Luiz Alberto de Castro Santos b6e8c01186 RDOIAT-374: Improve serialization performance (#40)
* Improve serialization performance

* Fixed build error

* Fixed tests

* Expose Json package

* Fix deserialization of empty strings

* Update CefGlue.BrowserProcess/Serialization/V8ValueSerialization.cs

Co-authored-by: João Neves <joao.neves@outsystems.com>

* Test empty string parameter

* Fix failing test

* Add null string param test

* Fix failing test

Co-authored-by: João Neves <joao.neves@outsystems.com>
Co-authored-by: brunocunhasilva <bruno.cunhasilva@outsystems.com>
Co-authored-by: Bruno Cunha e Silva <brunocunhasilva@users.noreply.github.com>
2022-01-26 17:36:48 +00:00
Luiz Alberto de Castro Santos 5332752d6f RDOIAT-374: Revert serialization (#39)
* Revert "Raise Cefglue version (#34)"

This reverts commit c6a1d61ced.

* Revert "RDOIAT-374: Improve objects serialization performance (#31)"

This reverts commit c7915a70da.

* Bump version
2022-01-20 17:53:17 +00:00
João Neves c7915a70da RDOIAT-374: Improve objects serialization performance (#31)
* Serialize objects as json

* Cleanup dead code

* Update DataMarkers.cs

* Small tweaks

* Improve large objects serialization temp (#32)

* Changed serialization

* Remove files

* Merge branch 'improve-large-objects-serialization-temp' into improve-large-objects-serialization

* Revert using

* CR

* Revert non intencional changes

* Refactor serialization tests

* Add some comments

* Added test

* Fixed typo

* Add tests

* Added tests

* Raise version

Co-authored-by: Luiz Santos <luiz.santos@outsystems.com>
2022-01-10 15:29:35 +00:00
joaoneves 0d922bcd16 Added object tracker that disposes objects automatically 2020-04-19 19:07:34 +01:00
joaoneves 1753e55310 Created shared project to share files between browser and renderer 2020-04-10 16:33:32 +01:00
joaoneves 1697d33f82 Fixed memory leaks when calling .net objects methods 2019-11-20 10:29:27 +00:00
João Neves 25da519701 Merge branch '3770'
Resolved breaking changes
2019-10-02 10:04:04 +01:00
João Neves 813373653c Prevent result serialization of scripts that fail to execute
Enable members enumeration of native objects
2019-09-27 17:42:48 +01:00
João Neves 2d7d5a8853 Removed all (generic) CefValue usages to prevent AccessViolation exceptions
Dispose all CefProcessMessages right away to prevent further dispose problems (on GC thread) - which are hard to track
2019-09-26 16:10:08 +01:00
João Neves 85bfaec24a Fixed random access violation exceptions thrown when calling .net object methods 2019-09-24 18:50:43 +01:00
João Neves 32c3f42677 Simplified exception message 2019-09-20 10:08:09 +01:00
João Neves aad32f108b Added check if object is bound function in javascript cefglue global object 2019-07-24 16:51:28 +01:00
João Neves b8210ee70a Moved browser process logic to its own project 2019-07-19 16:06:04 +01:00