Skip to content

Remove support for CEF prior to 127/6533 - #563

Open
WizardCM wants to merge 9 commits into
obsproject:masterfrom
WizardCM:remove-pre-6533-cef
Open

WizardCM wants to merge 9 commits into
obsproject:masterfrom
WizardCM:remove-pre-6533-cef

Conversation

@WizardCM

@WizardCM WizardCM commented Nov 15, 2026 •

Copy link
Copy Markdown
Member

Description

Make code more readable by removing legacy checks for ancient versions of Chromium.

Also bump minimum CEF to 127, as we want to support 127 and 150 at the same time.

Plus a formatting pass necessitated by changes.

Any remaining <= 6533 checks were changed to == 6533 so they're easy to find in a future pass.

Realistically these could probably be squashed into one commit, but this ensures reviewability.

Motivation and Context

Maintaining old code gets messy. This also incentivises unofficial builds to update to modern versions of CEF.

How Has This Been Tested?

  • Hardware Acceleration Enabled/Disabled
  • Browser Docks & Sources
  • Control Audio via OBS

On

  • CEF 127/6533
  • CEF 150/7871

Across

  • Windows 10
  • (Ubuntu 26.04 LTS) Linux (X11 and Wayland, not Flatpak)
  • macOS 26.6.2

Types of changes

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

Checklist:

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

@WizardCM WizardCM added the kind/cleanup Non-breaking change which makes code smaller or more readable label Nov 15, 2026
@tytan652

tytan652 commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

And cef-headers.hpp ?
https://github.com/obsproject/obs-browser/blob/master/cef-headers.hpp#L47-L50

If I understood correctly it needs its CHROME_VERSION_BUILD > 6337 to became CHROME_VERSION_BUILD >= 6533.

Edit: CEF_OSR_EXTRA_INFO is used for our CEF 127 Linux builds

@WizardCM

Copy link
Copy Markdown
Member Author

That one I felt slightly less comfortable changing, but can make the adjustment if you're OK with it.

@tytan652

Copy link
Copy Markdown
Contributor

Updating to make 6533 the strict minimum is a proper adjustment, it also makes it more discoverable once we'll bump again requirements.

@WizardCM WizardCM changed the title Remove support for CEF prior to 127/6553 Remove support for CEF prior to 127/6533 Nov 15, 2026
@WizardCM
WizardCM force-pushed the remove-pre-6533-cef branch from 8bd9869 to 585204b Compare November 15, 2026 07:59
Comment on lines 36 to 52

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This can be removed now.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Good catch. Fixed.

@WizardCM
WizardCM force-pushed the remove-pre-6533-cef branch from 585204b to 138d41c Compare November 15, 2026 09:54
Comment thread browser-client.cpp
[[maybe_unused]] CefLoadHandler::ErrorCode errorCode, const CefString &,
const CefString &)
{
#if CHROME_VERSION_BUILD > 6533

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Was enabling this for 6533 intentional?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Ah, it was not. Fixed.

Comment thread browser-client.cpp
#endif

#if !defined(_WIN32) && CHROME_VERSION_BUILD < 6367
if (shared_handle == bs->last_handle) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

After this, last_handle can be removed. Nothing uses its value anymore.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Ah, good catch. I have now removed last_handle in the relevant "older than 6367" commit.

Assume we're always using CEF 6533 or newer.
Assume we're always using CEF 6533 or newer.
Assume we're always using CEF 6533 or newer.
Assume we're always using CEF 6533 or newer.
Assume we're always using CEF 6533 or newer.
Assume we're always using CEF 6533 or newer.
Assume we're always using CEF 6533 or newer.
Assume we're always using CEF 6533 or newer.
@WizardCM
WizardCM force-pushed the remove-pre-6533-cef branch from 138d41c to e67c12b Compare November 18, 2026 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/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