MicrosoftEdge / MicrosoftEdge/WebView2Feedback
How can I enforce custom user data folder if WEBVIEW2_USER_DATA_FOLDER environment variable is set?
@champnic is already working on this.
Since Jun 4, 2021.
- 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?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.