Skip to content

Conversation

@RytoEX
Copy link
Member

@RytoEX RytoEX commented Aug 23, 2025

Description

Remove support for CEF versions older than 95/5060. This includes removing:

  • custom audio handling (pre-4103)
  • ENABLE_WASHIDDEN
  • ENABLE_LOCAL_FILE_URL_SCHEME

Motivation and Context

We currently only support building against CEF 95/5060 and up. We actually only target much more recent versions, but we had previously settled on pruning pre-5060 code at some point in the future, and I wanted to keep to that scope.

Some lower bounds checks were left in place for now to (hopefully) maintain clarity with those checks.

How Has This Been Tested?

Compiled and ran on Windows 11.

cc @pkviet

Types of changes

  • Code cleanup (non-breaking change which makes code smaller or more readable)

Checklist:

  • My code has been run through clang-format.
  • I have read the contributing document.
  • My code is not on the master branch.
  • The code has been tested.
  • All commit messages are properly formatted and commits squashed where appropriate.
  • I have included updates to all appropriate documentation.

RytoEX added 3 commits August 23, 2025 00:06
The zeroed memory hack only applies on Windows if using CEF older than
3770, which we no longer support.
Assume we're always using CEF 5060 or newer.
Assume we're always using CEF 5060 or newer.
@RytoEX RytoEX requested review from PatTheMav and WizardCM August 23, 2025 05:09
@RytoEX RytoEX self-assigned this Aug 23, 2025
@RytoEX RytoEX added the Code Cleanup Non-breaking change which makes code smaller or more readable label Aug 23, 2025
RytoEX added 5 commits August 23, 2025 03:20
Assume we're always using CEF 5060 or newer.

The check regarding ENABLE_WASHIDDEN is left intact on purpose so that
it can be removed separately.
ENABLE_WASHIDDEN is defined to 1 for CEF 90+ (4430+), which we always
use. Remove it and any code that would not be executed due to this
value.
Remove ENABLE_LOCAL_FILE_URL_SCHEME.

ENABLE_LOCAL_FILE_URL_SCHEME is defined to 0 for CEF 95+ (4638+), which
we always use. Remove it and any code that would not be executed due to
this value.
Assume CEF 5060 is the oldest build we support.
@RytoEX RytoEX force-pushed the remove-old-cef-support branch from 6286dd5 to 8d32c82 Compare August 23, 2025 07:20
Copy link
Member

@WizardCM WizardCM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Diff looks correct, removes any code older than 5060.

Copy link
Member

@pkviet pkviet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@RytoEX RytoEX merged commit 8fe72cc into obsproject:master Aug 23, 2025
1 check passed
@RytoEX RytoEX deleted the remove-old-cef-support branch August 23, 2025 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Code Cleanup Non-breaking change which makes code smaller or more readable

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants