Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-138528

WebView2 backend: User data folder (UDF) could be a non-writable location

    XMLWordPrintable

Details

    • Windows

    Description

      Currently, using the new Microsoft WebView2 backend (QTBUG-75747) will produce this warning:

      WebView2 Warning: Using default User Data Folder is not recommended, please see documentation. https://go.microsoft.com/fwlink/?linkid=2187341
      

       

      This is because we currently pass a null userDataFolder value to CreateCoreWebView2EnvironmentWithOptions():

       

      When a null folder is provided, the default UDF location is the executable's folder, which could be a non-writable location (e.g. inside C:\Program Files). See also [Manage user data folders - Microsoft Edge Developer documentation | Microsoft Learn|https://learn.microsoft.com/en-us/microsoft-edge/webview2/concepts/user-data-folder?tabs=win32#specifying-a-custom-udf-location]

       

      Therefore, at the very least, we need the default UDF to be somewhere in  StandardPaths::writableLocation(). Even better if there's a way for the developer to customize this location.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            stromme Christian
            skoh-qt Sze Howe Koh
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes