← Back to team overview

ubuntu-webapps-bugs team mailing list archive

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

 

*** This bug is a duplicate of bug 1387754 ***
    https://bugs.launchpad.net/bugs/1387754

** This bug has been marked a duplicate of bug 1387754
   applicationName ignored in pure QML apps importing Ubuntu.Web

-- 
You received this bug notification because you are a member of Ubuntu
WebApps bug tracking, which is subscribed to Oxide.
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


References