719 Commits

Author SHA1 Message Date
Hélder Gonçalves 4fdf9cee5c RDEV-10232 - Answer orphaned bound queries instead of dropping them (#255)
Removing the pending bound query on unregistration orphans any query already
awaiting it: nothing else in the dispatcher can complete it, so the js promise
never settles and the PromiseHolder and CefV8Context behind it stay alive.
Answer those waiters with false instead.

A source is only still pending at this point when the registration bailed out
because the main frame had no V8 context yet, which is the normal path for
objects the host registers before the first document loads.
2026-09-25 12:57:18 +01:00
Viviana f9d78783a7 RDEV-10232 - Release Stale Bound Query (#253)
* Remove pending bound query task on completion

* Update Directory.Build.props

* Update JavascriptToNativeDispatcherRenderSide.cs

---------

Co-authored-by: Hélder Gonçalves <helder.goncalves@outsystems.com>
2026-09-22 10:27:06 +01:00
Paulo Ferreira 37ff7ecb9f Fix high idle CPU from 1 kHz CEF message pump on macOS (#252)
* Fix high idle CPU from 1 kHz CEF message pump on macOS

The delay CEF passes to OnScheduleMessagePumpWork is a deadline, but it was
being used as the period of a recurring Observable.Interval. CEF requests 0
for the vast majority of calls, so the delayMs <= 0 -> 1 floor installed a
permanent 1 kHz pump and an idle app sat at roughly half a CPU core.

Poll at a fixed 30 Hz instead, matching cefclient's MainMessageLoopExternalPump
(kMaxTimerDelay) and CefSharp's WpfBrowserProcessHandler, and pump immediately
when CEF asks for work now. The interval is overridable via AppContext or an
environment variable, clamped so it cannot reintroduce either failure mode.

* Update Directory.Build.props

* Pump at Default priority and keep one immediate pump in flight

DispatcherPriority.Normal is not Avalonia's normal priority: Default is 0 and
Normal is 5, second from the top, above Render (4). Pumping at it let CEF
preempt layout and repaint on the path that fires most often, since CEF asks
for a 0 delay the vast majority of the time.

Default rather than Background or Input: Dispatcher.ExecuteJobsCore only runs
jobs at Input priority and below while the platform reports no pending OS
input, so either would stall the pump exactly while the user types or scrolls.
Default is the lowest priority still dispatched unconditionally, and it sits
below every render priority.

The immediate path also had no coalescing. OnScheduleMessagePumpWork is called
from any thread and every notification queued its own dispatcher job, even
though one DoMessageLoopWork drains everything pending. An Interlocked flag
keeps a single pump in flight, cleared before the pump runs so work CEF
schedules from inside DoMessageLoopWork still queues a fresh notification.


---------
Co-authored-by: Hélder Gonçalves <helder.goncalves@outsystems.com>
2026-09-22 10:07:58 +01:00
OS-kondasathi 837440ef7c RDERE-2205: Set Code Owners (#228) 2025-10-22 06:52:01 +01:00
João Neves 98a0655969 Raise version (#207) 2025-03-31 14:34:57 +01:00
maliming 37fb0f3de5 Handle the case where extraInfo is null. (#206)
Resolve https://github.com/OutSystems/CefGlue/issues/135
2025-03-31 14:33:49 +01:00
Hélder Gonçalves 862e071794 RDEV-8017 - Dry Avalonia Version with Variable (#193) 2024-11-22 11:56:05 +00:00
João Neves 0b5abd3657 Fix crash accessing youtube (#184) 2024-11-07 16:24:11 +00:00
yangxuilyx 769662f9ae add windows cef locales file (#179)
* add windows cef locales file

* add windows cef locales file for demo

* fix tabs

---------

Co-authored-by: yangxuilyx <yangxuilyx@hotmail.com>
2024-11-06 14:29:39 +00:00
Tiago Braga a529407129 Raise version (#177) 2024-10-28 17:21:22 +00:00
João Neves 6a82a1423b Missing cache path set (#176) 2024-10-28 15:44:54 +00:00
João Neves 5749312bda Fix demo when launching multiple times (#175)
* Fix demo when launching multiple times

* Add comment

* Fix wpf demo
2024-10-28 15:42:46 +00:00
Tiago Braga 3c4cf51499 Fix nuget restore and parameterize build (#174)
* Fix nuget restore and parameterize build

* Add comment

* Fix command

* PR improvements

* Raise version
2024-10-28 14:49:01 +00:00
Tiago Braga e74d0cc371 Increase stack size in windows OS (fixes #171) (#172)
* Fix published artifacts

* Raise version

* Review comments
2024-10-21 12:04:40 +01:00
Tiago Braga e0a716f5ff Increase stack size in windows OS (#171)
* Increase stack size for cef browser

* testing pipelines

* testing pipelines

* testing pipelines

* Test ADO

* Test ADO

* Test ADO

* Test ADO

* Test ADO

* Test ADO

* PR improvements

* Enable by default

* Increase version

* Check dirs on pipelines

* Debug pipelines

* Debug pipelines without sdk attr

* Debug pipelines with sdk attr

* Comment out code

* revert

* revert

* dumpbin

* Add edit bin

* Parameterize exe name

* Revert changes
2024-10-18 14:37:55 +01:00
Berkan Sasmaz 00cea3eb2b Update LINUX.md (#166) 2024-09-26 13:56:06 +01:00
Miguel Alves a0f2015cf3 Single targeting .NET 8 in CefGlue (#159)
* Single targetting .NET 8 in CefGlue

* Update CefGlue.CopyLocal.props

* Increased timeout
2024-09-03 15:47:20 +01:00
João Neves 492c868985 Raise version (#154)
* Add previous attempts back

* Update README.md

* Minor fixes
- Removed unnecessary stuff on CefGlue.Common.targets
- Removed removal of important Avalonia stuff on the CefGlue.Demo.Avalonia project.
- Added an exception for the case of libcef not found on CefRuntime.cs (still crashes on Linux).

* load libcef before version check

* Update README.md

* Update README.md

* Linux support

* Missing check _needDispose.

* Fix DevTools in Linux.

* Update README.md

* Update README.md

* Update README.md

Co-authored-by: João Neves <joaomiguelneves@gmail.com>

* Update CefGlue.Avalonia/Platform/AvaloniaControl.cs

Co-authored-by: João Neves <joaomiguelneves@gmail.com>

* Update CefGlue.Avalonia/Platform/AvaloniaControl.cs

Co-authored-by: João Neves <joaomiguelneves@gmail.com>

* Update README.md

* Update CefGlue.Avalonia/Platform/Linux/XWindow.cs

Co-authored-by: João Neves <joaomiguelneves@gmail.com>

* Update CefGlue.Avalonia/Platform/Linux/XWindow.cs

Co-authored-by: João Neves <joaomiguelneves@gmail.com>

* Apply suggestions from code review

Co-authored-by: João Neves <joaomiguelneves@gmail.com>

* Create LINUX.md

* Update README.md

* Update CefGlue.Avalonia/Platform/Linux/XWindow.cs

Co-authored-by: João Neves <joaomiguelneves@gmail.com>

* Update CefGlue.Avalonia/Platform/Linux/XWindow.cs

Co-authored-by: João Neves <joaomiguelneves@gmail.com>

* Update README.md

* Update README.md

* Update CefGlue.CopyLocal.props

Co-authored-by: João Neves <joaomiguelneves@gmail.com>

* Update BrowserCefApp.cs

* Update AvaloniaControl.cs

* Put properties after the constructor

* Apply suggestions from code review

* Update CefGlue.Avalonia/Platform/Linux/XWindow.cs

* Simplified platform detection logic

* Update CefRuntime.cs

* Update CefGlue/CefRuntime.cs

Co-authored-by: João Neves <joaomiguelneves@gmail.com>

* Update CefGlue/CefRuntime.cs

Co-authored-by: João Neves <joaomiguelneves@gmail.com>

* Fix build and update packages

* Raise version

---------

Co-authored-by: haltroy <thehaltroy@gmail.com>
Co-authored-by: Shaojun Li <i@shaojun.li>
2024-07-31 09:29:02 +01:00
haltroy 08685851d5 Linux support (Final) (#153)
* Add previous attempts back

* Update README.md

* Minor fixes
- Removed unnecessary stuff on CefGlue.Common.targets
- Removed removal of important Avalonia stuff on the CefGlue.Demo.Avalonia project.
- Added an exception for the case of libcef not found on CefRuntime.cs (still crashes on Linux).

* load libcef before version check

* Update README.md

* Update README.md

* Linux support

* Missing check _needDispose.

* Fix DevTools in Linux.

* Update README.md

* Update README.md

* Update README.md

Co-authored-by: João Neves <joaomiguelneves@gmail.com>

* Update CefGlue.Avalonia/Platform/AvaloniaControl.cs

Co-authored-by: João Neves <joaomiguelneves@gmail.com>

* Update CefGlue.Avalonia/Platform/AvaloniaControl.cs

Co-authored-by: João Neves <joaomiguelneves@gmail.com>

* Update README.md

* Update CefGlue.Avalonia/Platform/Linux/XWindow.cs

Co-authored-by: João Neves <joaomiguelneves@gmail.com>

* Update CefGlue.Avalonia/Platform/Linux/XWindow.cs

Co-authored-by: João Neves <joaomiguelneves@gmail.com>

* Apply suggestions from code review

Co-authored-by: João Neves <joaomiguelneves@gmail.com>

* Create LINUX.md

* Update README.md

* Update CefGlue.Avalonia/Platform/Linux/XWindow.cs

Co-authored-by: João Neves <joaomiguelneves@gmail.com>

* Update CefGlue.Avalonia/Platform/Linux/XWindow.cs

Co-authored-by: João Neves <joaomiguelneves@gmail.com>

* Update README.md

* Update README.md

* Update CefGlue.CopyLocal.props

Co-authored-by: João Neves <joaomiguelneves@gmail.com>

* Update BrowserCefApp.cs

* Update AvaloniaControl.cs

* Put properties after the constructor

* Apply suggestions from code review

* Update CefGlue.Avalonia/Platform/Linux/XWindow.cs

* Simplified platform detection logic

* Update CefRuntime.cs

* Update CefGlue/CefRuntime.cs

Co-authored-by: João Neves <joaomiguelneves@gmail.com>

* Update CefGlue/CefRuntime.cs

Co-authored-by: João Neves <joaomiguelneves@gmail.com>

* Apply suggestions from code review

Co-authored-by: João Neves <joaomiguelneves@gmail.com>

* Update BrowserCefApp.cs

---------

Co-authored-by: Shaojun Li <i@shaojun.li>
Co-authored-by: João Neves <joaomiguelneves@gmail.com>
Co-authored-by: João Neves <joao.neves@outsystems.com>
2024-07-31 09:16:46 +01:00
Miguel Alves 1a99057788 Fixed CefGlue build (#150)
* Fixed CefGlue build

* Fixed build

* CR

* Update CefGlue.WPF.csproj

* CR

* Added Windows 10 and 11 support
2024-07-16 18:02:28 +01:00
Miguel Alves 363deda1df Fixed target framework when compiling WPF solution (#147)
* Fixed target framework when compiling WPF solution

* Bump version

* Update CefGlue.CopyLocal.props

* CR

* Bump version

* CR

---------

Co-authored-by: Francisco Gracias <francisco.gracias@outsystems.com>
2024-07-01 14:31:05 +01:00
Viviana ef30dfb683 RDEV-6642 Make CefGlue SelfContained (#149)
* Make CefGlue SelfContained

* Update Directory.Build.props
2024-06-28 16:58:53 +01:00
walterlv 200e9087ab Rename all Avalonia xaml to axaml (#146)
* Rename all Avalonia xaml to axaml so that they can be auto handled by the source generator

* Remove useless resource embeding.
2024-06-28 11:27:47 +01:00
Francisco Gracias 583a2b9a5f Added app manifest (#143) 2024-06-24 14:02:15 +01:00
João Neves fb8e5e6eff Avalonia 11 upgrade (#82)
* Avalonia 11 upgrade

* Add missing styles

* Fix tests

* Raise version

* Upgrade avalonia to GA

* Update Directory.Packages.props

* Osr scale fix (#123)

* Updated OSR to use device scaling and added Viewbox container for Image host control.

* Update AvaloniaOffScreenControlHost.cs

Needs to use _control not e.Source, not sure why but must be something when packaged into the WebView

* Revised DeviceScaleFactor initialization.

* Accidentally commited key event changes...

* Apply suggestions from code review

* Fixes for AlphaFormat and DeviceScaleFactor setup

* Apply suggestions from code review

---------

Co-authored-by: João Neves <joaomiguelneves@gmail.com>

* Use Avalonia 11.0.9

* Organized imports for changed files

* Add popup handling example

---------

Co-authored-by: tkefauver <tkefauver@gmail.com>
Co-authored-by: João Mano <joao.mano@outsystems.com>
2024-06-21 11:48:27 +01:00
Tiago Braga 903a194ca4 Increase version for net 8 (#138) 2024-05-16 09:58:38 +01:00
Miguel Alves 7e709485da Support .NET 8 and multitargeting (#136)
* RDEV-6628 Support .NET 8

* Update CefGlue.Common.csproj

* Update Xilium.CefGlue.sln

* Bump to .NET 8

* Bump version

* Update CefGlue.Common.props

* Refactor

* Revert "Refactor"

This reverts commit c5cd318b77.

* CR

* CR

* CR
2024-05-15 09:56:19 +01:00
João Mano 3a03c28516 Ensure base.OnBeforeDevToolsPopup is always called and remove unnecessary methods from CommonBrowserAdapter (#127)
* Ensure base.OnBeforeDevToolsPopup is always called;
Remove unnecessary methods from CommonBrowserAdapter

* Update version
120.6099.2
2024-01-05 11:07:34 +00:00
João Mano ffa89aaca6 120.1.8+ge6b45b0+chromium-120.0.6099.109 (#126)
* Updating .h files

* Update cef_version.h

* Generated files

* Update versions

* Implement missing stuff

* CefBrowserHost missing implementations

* More missing implementations

* Consistency change

* Upgrade to version 120.1.8+ge6b45b0+chromium-120.0.6099.109
2023-12-20 11:21:25 +00:00
João Neves 632825a796 Move packages props (#120) 2023-11-28 15:38:08 +00:00
João Neves 4b3b227476 Update CefGlue.Common.csproj (#115)
* Update CefGlue.Common.csproj

* Update Directory.Packages.props

* Raise version
2023-10-11 10:26:28 +01:00
João Neves bff45173b0 Remove deprecated nuget sources (#114) 2023-10-10 16:27:53 +01:00
José Santos 63017186f5 117.2.4+g5053a95+chromium-117.0.5938.150 (#112)
* Update to 107.0.3+ge92a530+chromium-107.0.5304.18

(cherry picked from commit afb1e8ded3)

* Make it possible to opt out of GC on shutdown (see !15)

(cherry picked from commit bd51d4338e)

* Update to 107.1.12+g65b79a6+chromium-107.0.5304.122

This is actually no-op changes, because CefGlue doesn't support
cef views, still hashes should be updated.

(cherry picked from commit 06791028fa)

* Update to 108.4.13+ga98cd4c+chromium-108.0.5359.125

(cherry picked from commit da3a51f1f2)

* fixing merge

* Update to 109.1.18+gf1c41e4+chromium-109.0.5414.120

(cherry picked from commit 778d110f71)

* Update to 110.0.29+gfde72b5+chromium-110.0.5481.104

(cherry picked from commit f9fcdfb19a)

* Apply outsystems improvements

(cherry picked from commit f85fc86beb)

* Non-functional changes, fix formatting.

(cherry picked from commit cbe19f256e)

* Revert some behavioral changes from Outsystem improvements.

- `CefClient::OnProcessMessageReceived` and
`CefRenderProcessHandler::OnProcessMessageReceived` methods
requires to call `Dispose()` on message by client manually.

(cherry picked from commit b22ae17325)

* Update to 111.2.7+gebf5d6a+chromium-111.0.5563.148

(cherry picked from commit 4c1c12d858)

* Update to 112.3.0+gb09c4ca+chromium-112.0.5615.165

(cherry picked from commit 8582ac64ce)

* Update to 116.0.27+gd8c85ac+chromium-116.0.5845.190

(cherry picked from commit f3e974dfacd454d4558d79f00690a0ee56a86ca5)

* Removing EnableHighDpiSupport

* changing cef.redist version

* generating files

* Adding cef.redist.win

* Adding cef.redist.win

* Fixing packaging

* pull request changes:
- extra lines removal
- extra files removal
- cherry-pick of PromiseHolder.cs changes
- cherry-pick of RDOIBT-1838 - CefGlue: Duplicate key reference #109

* bumping cefglue version

* revert ObjectBinging changes

* reverting internal feed

* changing .h files

* revert copy target change

* reverting platform default and nuget sources

* - reverting platform default and nuget sources
- bumping version

* CEF 117.2.4+g5053a95+chromium-117.0.5938.150 upgrade

* changing Nuget package version

---------

Co-authored-by: Dmitry Azaraev <dmitry.azaraev@gmail.com>
Co-authored-by: Luiz Santos <luiz.santos@outsystems.com>
Co-authored-by: Mike Russin <michael.t.russin@gmail.com>
2023-10-10 15:44:58 +01:00
Filipe Campos 393f0fb4f2 RDOIBT-1838 - CefGlue: Duplicate key reference (#109)
Revert replacement of lock by Interlocked
2023-09-22 15:01:46 +01:00
Igor Ruivo 5a52f852c5 Fix CEF resources being occasionally deleted during the IncrementalClean target (#105) 2023-08-17 16:56:16 +01:00
Miguel Alves e1444edf88 Fixed CefGlue packaging (#101)
* Update CefGlue.BrowserProcess.csproj

* Tentative fix

* Bump CefGlue version
2023-07-27 11:28:40 +01:00
Miguel Alves 306234975c Support CefGlue nuget consumers publish (#100) 2023-07-18 10:17:28 +01:00
Miguel Alves e93ea546bb Fixed nuget deployment (#97)
* Update Directory.Build.props

* Update Directory.Build.props

* Update Directory.Build.props

* Fixed nuget deployment
2023-07-13 10:05:36 +01:00
Miguel Alves c8b7032484 Update Directory.Build.props 2023-07-12 20:11:57 +01:00
Miguel Alves 0bd2bc74b7 Fixed case sensitive issue 2023-07-12 19:41:15 +01:00
Miguel Alves 854b8bd4ae Bump version 2023-07-12 19:28:54 +01:00
Miguel Alves 00e2303c6c Bump version 2023-07-12 19:19:58 +01:00
Miguel Alves 3bc3cac387 Fixed an issue in CefGlue.Common.props 2023-07-12 18:58:09 +01:00
Miguel Alves 7042eb715f Fixed an issue in CefGlue.Common.props (#96) 2023-07-12 18:13:05 +01:00
Miguel Alves 6ae2541c92 Updated bundle scripts and README (#95)
* Update bundle and README

* Update README.md

* Update README.md

* Bump version to trigger redeploy
2023-07-11 16:32:34 +01:00
Miguel Alves d5d5cc841b Bump CefRedistOSX version (#94) 2023-07-11 15:30:25 +01:00
Miguel Alves 29087d6bcd Build CefGlue in ARM64 (#90) 2023-07-11 14:32:55 +01:00
Luiz Alberto de Castro Santos 55bfefb79e Apply changes from original cefglue repo (#85)
* Apply changes from original cefglue repo

* Apply PR suggestions

* Apply PR suggestions
2023-04-28 17:14:31 +01:00
Luiz Alberto de Castro Santos 6adc68ff2e Fix cef runtime initialization sub process paths (#84) 2023-04-27 11:00:56 +01:00
Bruno Cunha e Silva dc9a1bb0ba Allow deserialization of objects with more fields\properties than the target type (#79)
* Allow deserialization of objects with more fields\properties than the target type

* CR improvement
2023-03-15 15:06:29 +00:00