Use Edges UDF instead of creating a new #4385
-
Hi, I’m currently trying to point my environment to use Microsoft Edges UDF folder, is this possible? Here is an example of my code:
I’m aware that you can specify a custom location however my goal is to not create an UDF. Could you please provide me with any assistance |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
@LiangTheDev could you take a look at this question? |
Beta Was this translation helpful? Give feedback.
-
It is not possible to user Edge browser's user data folder as WebView2s. We don't support sharing browsing context between WebView2s and browsers. It seems that you have already read https://learn.microsoft.com/en-us/microsoft-edge/webview2/concepts/user-data-folder?tabs=win32. If you are a packaged app, the default UDF is pretty good and you don't have to specify a custom UDF. Otherwise, you should specify a custom folder and remove the folder when the app is uninstalled. WebView2 needs to store files somewhere and the data stored could be sensitive. |
Beta Was this translation helpful? Give feedback.
It is not possible to user Edge browser's user data folder as WebView2s. We don't support sharing browsing context between WebView2s and browsers.
It seems that you have already read https://learn.microsoft.com/en-us/microsoft-edge/webview2/concepts/user-data-folder?tabs=win32. If you are a packaged app, the default UDF is pretty good and you don't have to specify a custom UDF. Otherwise, you should specify a custom folder and remove the folder when the app is uninstalled. WebView2 needs to store files somewhere and the data stored could be sensitive.