Skip to content

[Problem/Bug]: IsStatusBarEnabled = false does not work #5610

@fvanheeswijk

Description

@fvanheeswijk

What happened?

We are setting webView2.CoreWebView2.Settings.IsStatusBarEnabled = false inside our webView2.CoreWebView2InitializationCompleted event handler but this does work on the beta version. It still works properly on stable.

Importance

Moderate. My app's user experience is affected, but still usable.

Runtime Channel

Prerelease (Edge Canary/Dev/Beta)

Runtime Version

149.0.4022.33 beta

SDK Version

1.0.3405.78

Framework

Winforms

Operating System

Windows 11

OS Version

26200.8390

Repro steps

When you run the code below and have the WebView2 beta installed then when hovering over the Google link you will see the statusbar in the bottom-left corner despite it being explicitly disabled.

Image

Do not that this issue does not reproduce consistently in this test application, however in our actual applications it always reproduces since this beta version (149+), we cannot get it to reproduce consistently in the test application thus far.

using System;
using System.Drawing;
using System.Windows.Forms;

using Microsoft.Web.WebView2.WinForms;

namespace WebView2StatusBarIssue
{
    static class Program
    {
        [STAThread]
        static void Main()
        {
            // Tested on 28 May 2026:
            // - The Stable channel (148) does not have this issue
            // - The Beta channel (149) does have this issue, sometimes
            Environment.SetEnvironmentVariable("WEBVIEW2_RELEASE_CHANNEL_PREFERENCE", "1"); // enable Beta channel if Edge Beta is installed

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(CreateTestForm());
        }

        public static Form CreateTestForm()
        {
            var form = new Form
            {
                Size = new Size(1280, 1024)
            };

            var webView2 = new WebView2
            {
                Dock = DockStyle.Fill
            };
            webView2.EnsureCoreWebView2Async();
            webView2.CoreWebView2InitializationCompleted += (sender, e) =>
            {
                webView2.CoreWebView2.Settings.IsStatusBarEnabled = false;
                webView2.CoreWebView2.NavigateToString(
@"<html>
<head>
    <title>Test</title>
</head>
<body>
    <a href='https://www.google.com'>Navigate to Google</a>
</html>");
            };

            form.Controls.Add(webView2);

            return form;
        }
    }
}

Repros in Edge Browser

No, issue does not reproduce in the corresponding Edge version

Regression

Regression in newer Runtime

Last working version (if regression)

148.0.3967.83

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingregressionSomething used to work but doesn't anymore

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions