Skip to content

[Gtk4] Fix Browser.setText#3098

Merged
akurtakov merged 1 commit intoeclipse-platform:masterfrom
akurtakov:master
Feb 25, 2026
Merged

[Gtk4] Fix Browser.setText#3098
akurtakov merged 1 commit intoeclipse-platform:masterfrom
akurtakov:master

Conversation

@akurtakov
Copy link
Member

@akurtakov akurtakov commented Feb 25, 2026

Disable hardware-acceleration-policy on Gtk 4.x (it is done for Gtk 3.x already) as first frame is never drawn when using accelerated compositing (GPU path). The DOM loads, signals fire, but the view stays blank.
Different value compared to Gtk 3 is due to the fact that the setting no longer has always/ondemand/never but just always/never on Gtk 4.

@akurtakov
Copy link
Member Author

This is purely Gtk 4 change so should be safe to get into RC2. @HeikoKlare , @merks , @iloveeclipse - could someone approve ?

@merks
Copy link
Contributor

merks commented Feb 25, 2026

It looks fine to me. @HeikoKlare can approve as a PL.

@iloveeclipse
Copy link
Member

I have no objections to merge that, but I would wish a bit more comments in the code explaining the different modes and why the different modes used for which GTK version.

Disable hardware-acceleration-policy on Gtk 4.x (it is done for Gtk 3.x
already) as  first frame is never drawn when using accelerated
compositing (GPU path). The DOM loads, signals fire, but the view stays
blank.
Different value compared to Gtk 3 is due to the fact that the setting no
longer has always/ondemand/never but just always/never on Gtk 4.
Copy link
Member

@iloveeclipse iloveeclipse left a comment

Choose a reason for hiding this comment

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

OMG, why should such trivial values like "never" change in different versions?

@akurtakov
Copy link
Member Author

akurtakov commented Feb 25, 2026

OMG, why should such trivial values like "never" change in different versions?

It's enum on C side (https://github.com/WebKit/WebKit/blob/3af87ab356f096e67488c2e992e06cf729f9f702/Source/WebKit/UIProcess/API/glib/WebKitSettings.h.in#L85 ) thus safe but SWT uses just the "ordinal" as we can't ifdef and having multiple enums for same purpose but different versions would make things even worse.

@github-actions
Copy link
Contributor

Test Results (linux)

   88 files  ±0     88 suites  ±0   14m 27s ⏱️ -54s
4 572 tests ±0  4 351 ✅ ±0  221 💤 ±0  0 ❌ ±0 
  211 runs  ±0    208 ✅ ±0    3 💤 ±0  0 ❌ ±0 

Results for commit 45fdafa. ± Comparison against base commit 8a3980d.

@akurtakov akurtakov merged commit 2d4d435 into eclipse-platform:master Feb 25, 2026
18 of 19 checks passed
@github-project-automation github-project-automation bot moved this to Done in SWT work Feb 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants