Skip to content

fix(v3): handle the SetFullscreenButtonEnabled runtime call - #5976

Merged
leaanthony merged 3 commits into
wailsapp:masterfrom
sophotechlabs:fix/fullscreen-button-runtime-call
Aug 16, 2026
Merged

leaanthony merged 3 commits into
wailsapp:masterfrom
sophotechlabs:fix/fullscreen-button-runtime-call

Conversation

@archy-rock3t-cloud

@archy-rock3t-cloud archy-rock3t-cloud commented Aug 13, 2026 •

Copy link
Copy Markdown
Contributor

Description

The JS runtime ships Window.SetFullscreenButtonEnabled (method 28) but processWindowMethod has no case for it, so the call always rejects with Unknown method 28.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

New unit test that fails before the fix and passes after; package suite green.

  • Windows
  • macOS
  • Linux

Test Configuration

macOS 26.5.2 (darwin/arm64), go1.26.4, Wails CLI v3.0.0-dev (source checkout)

Checklist:

  • My code follows the general coding style of this project
  • I have performed a self-review of my own code
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

Summary by CodeRabbit

  • New Features

    • Added support for enabling or disabling the window’s fullscreen button.
  • Bug Fixes

    • Invalid or missing settings are now handled safely without changing the fullscreen button state.
  • Tests

    • Added coverage for enabling, disabling, and validating fullscreen button settings.

Signed-off-by: Artem Muterko <artem@sopho.tech>
@github-actions github-actions Bot added the v3 label Aug 13, 2026
@coderabbitai

coderabbitai Bot commented Aug 13, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: cb3a3dd1-b2d7-4293-94e6-7b81dff882e5

📥 Commits

Reviewing files that changed from the base of the PR and between 495a094 and 663cfc1.

📒 Files selected for processing (2)
  • v3/pkg/application/messageprocessor_window.go
  • v3/pkg/application/messageprocessor_window_internal_test.go

Walkthrough

The window message processor now handles WindowSetFullscreenButtonEnabled. It validates the boolean argument, updates the fullscreen button state, returns an empty result, and includes tests for valid and invalid requests.

Changes

Fullscreen button handling

Layer / File(s) Summary
Message processing and validation
v3/pkg/application/messageprocessor_window.go, v3/pkg/application/messageprocessor_window_internal_test.go
WindowSetFullscreenButtonEnabled validates its argument, maps it to ButtonEnabled or ButtonDisabled, updates the window state, and returns an empty result. Tests cover dispatch, state changes, unit results, and invalid or missing arguments.

Estimated code review effort: 2 (Simple) | ~10 minutes

Mergeability Score: ⚪ Minimal · up to 663cf

This localized fix enables the fullscreen-button runtime call and adds regression coverage; no actionable merge-blocking risk remains beyond normal checks and review.

Possibly related PRs

Suggested labels: reviewed ✅

Poem

A rabbit taps the window bright,
“Enable buttons!” says the light.
False turns the fullscreen glow away,
Tests keep both states in play.
Hop, hop—clean messages all the way!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the fix for the missing SetFullscreenButtonEnabled runtime call handling.
Description check ✅ Passed The description explains the bug, identifies the fix, documents testing and configuration, and marks the relevant checklists.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@taliesin-ai taliesin-ai self-assigned this Aug 14, 2026
@taliesin-ai taliesin-ai added this to the v3.0.0-beta.3 milestone Aug 14, 2026
@taliesin-ai taliesin-ai moved this from Todo to In Progress in Wails Release Train Aug 14, 2026
leaanthony
leaanthony previously approved these changes Aug 14, 2026
@taliesin-ai
taliesin-ai dismissed leaanthony’s stale review August 14, 2026 07:14

Submitted through the wrong connector identity during automated validation; superseded by taliesin-ai review.

@leaanthony

Copy link
Copy Markdown
Member

Nice catch! Thank you 🙏

@leaanthony
leaanthony merged commit 6a5a2e1 into wailsapp:master Aug 16, 2026
3 of 6 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in Wails Release Train Aug 16, 2026
leaanthony pushed a commit that referenced this pull request Aug 16, 2026
overlordtm pushed a commit to overlordtm/wails that referenced this pull request Aug 18, 2026
…#5976)

Signed-off-by: Artem Muterko <artem@sopho.tech>
Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
overlordtm pushed a commit to overlordtm/wails that referenced this pull request Aug 18, 2026
…le the SetFullscreenButtonEnabled runtime call
timlinde pushed a commit to Topborn/wails that referenced this pull request Aug 22, 2026
…#5976)

Signed-off-by: Artem Muterko <artem@sopho.tech>
Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
timlinde pushed a commit to Topborn/wails that referenced this pull request Aug 22, 2026
…le the SetFullscreenButtonEnabled runtime call
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

No open projects
Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants