Skip to content

[Problem/Bug]: WEBVIEW2_ADDITIONAL_BROWSER_ARGUMENTS wins over an explicit AdditionalBrowserArguments property #5571

@harunurhan

Description

@harunurhan

What happened?

I expect that when you specify AdditionalBrowserArguments when creating the webview2 argument, it would overwrite the global env variable WEBVIEW2_ADDITIONAL_BROWSER_ARGUMENTS, however that is NOT the case.

Importance

Important. My app's user experience is significantly compromised.

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

No response

SDK Version

No response

Framework

Winforms

Operating System

Windows 11

OS Version

No response

Repro steps

  1. Set WEBVIEW2_ADDITIONAL_BROWSER_ARGUMENTS env variable
  2. Set AdditionalBrowserArguments property with different arguments
  3. Validate which one is used

Repros in Edge Browser

No, issue does not reproduce in the corresponding Edge version

Regression

Don't know

Last working version (if regression)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions