MicrosoftEdge / MicrosoftEdge/WebView2Feedback

How can I enforce custom user data folder if WEBVIEW2_USER_DATA_FOLDER environment variable is set?

Open
#1,338 3 comments 0 reactions 1 assignee View on GitHub

@champnic is already working on this.

Since Jun 4, 2021.

bug priority-low tracked
Dominant language
PowerShell
Stars
526
Forks
67
PR merge metrics
No merged PRs in 30d

Description

We still have issues sharing user data folders between 3 different WebView2 contexts in out application suite. However, defining separate user data folders using CoreWebView2Environment options works well for us.

Also if different options are used for different instances, different user data folders have to be used.

However, our applications will have to live alongside other systems on end users machines, often in corporate environments controlled by IT administrators. If in a given environment the WEBVIEW2_USER_DATA_FOLDER or registry setting is set, this forces all WebView2 instances on the machine to share that folder. Some of our instances fall over in that case.

It seems to me there should be an option to define the use of a custom user data folder for that scenario, but that doesn't seem the case. Did I overlook something? How can I make sure our applications still work if someone else sets this environment variable?

AB#33623121

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.