← Back to team overview

ubuntu-webapps-bugs team mailing list archive

[Bug 1405844] [NEW] Incorrect cachePath and dataPath set when using WebView with qmlscene

 

Public bug reported:

If the user sets the applicationName via the MainView an embedded
WebView's default context will fail to use this information when setting
its cachePath and dataPath. This results in confined apps failing to
save cookies, caching data, etc.

Steps to reproduce:

1) Run following qml with qmlscene:

import QtQuick 2.0
import Ubuntu.Components 1.1
import Ubuntu.Web 0.2

MainView {
    applicationName: "com.mikeasoft.example"

    WebView {
        Component.onCompleted: {
            console.log("Data path: " + context.dataPath);
        }
    }
}


Expected result:

Output: "qml: Data path:
file:///home/mike/.local/share/com.mikeasoft.example"

Actual result:

Output: "qml: Data path: file:///home/mike/.local/share/Qt
Project/QtQmlViewer"

** Affects: oxide
     Importance: Undecided
         Status: New

** Affects: webbrowser-app
     Importance: Undecided
         Status: New

** Also affects: oxide
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
WebApps bug tracking, which is subscribed to webbrowser-app.
https://bugs.launchpad.net/bugs/1405844

Title:
  Incorrect cachePath and dataPath set when using WebView with qmlscene

Status in Oxide Webview:
  New
Status in Web Browser App:
  New

Bug description:
  If the user sets the applicationName via the MainView an embedded
  WebView's default context will fail to use this information when
  setting its cachePath and dataPath. This results in confined apps
  failing to save cookies, caching data, etc.

  Steps to reproduce:

  1) Run following qml with qmlscene:

  import QtQuick 2.0
  import Ubuntu.Components 1.1
  import Ubuntu.Web 0.2

  MainView {
      applicationName: "com.mikeasoft.example"

      WebView {
          Component.onCompleted: {
              console.log("Data path: " + context.dataPath);
          }
      }
  }

  
  Expected result:

  Output: "qml: Data path:
  file:///home/mike/.local/share/com.mikeasoft.example"

  Actual result:

  Output: "qml: Data path: file:///home/mike/.local/share/Qt
  Project/QtQmlViewer"

To manage notifications about this bug go to:
https://bugs.launchpad.net/oxide/+bug/1405844/+subscriptions


Follow ups

References