applicationName ignored in pure QML apps importing Ubuntu.Web
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical System Image |
Fix Released
|
Undecided
|
Olivier Tilloy | ||
webbrowser-app |
Fix Released
|
High
|
Olivier Tilloy | ||
webbrowser-app (Ubuntu) |
Fix Released
|
Undecided
|
Olivier Tilloy | ||
webbrowser-app (Ubuntu RTM) |
Fix Released
|
Undecided
|
Olivier Tilloy |
Bug Description
The dataPath for webviews is set in the plugin’s initializeEngine() method, like so:
QDir dataLocation(
engine-
This works well if the application has a C++ wrapper that sets the application name before loading any QML, but it doesn’t work so well for pure QML applications that import Ubuntu.Web: at the point in time when they import the module, the app name most likely hasn’t been set yet, and as a result the generic name set by qmlscene is used, resulting in a dataPath that looks like "~/.local/share/Qt Project/
We don’t want to force applications to ship a thin C++ wrapper just to work around this issue, so we will need to figure out a way to delay the setting of dataLocation until the webview is actually instantiated.
Related branches
- PS Jenkins bot: Approve (continuous-integration)
- Ubuntu Phablet Team: Pending requested
-
Diff: 226 lines (+117/-69)1 file modifiedsrc/Ubuntu/Web/plugin.cpp (+117/-69)
Changed in webbrowser-app: | |
status: | Triaged → In Progress |
Changed in webbrowser-app: | |
status: | In Progress → Fix Released |
Changed in webbrowser-app (Ubuntu RTM): | |
status: | New → Confirmed |
Changed in canonical-devices-system-image: | |
milestone: | none → ww05-2015 |
status: | New → Fix Released |
Changed in canonical-devices-system-image: | |
assignee: | nobody → Olivier Tilloy (osomon) |
Changed in webbrowser-app (Ubuntu): | |
assignee: | nobody → Olivier Tilloy (osomon) |
Changed in webbrowser-app (Ubuntu RTM): | |
assignee: | nobody → Olivier Tilloy (osomon) |
status: | Confirmed → Fix Released |
This bug was fixed in the package webbrowser-app - 0.23+15. 04.20141104. 1-0ubuntu1
--------------- 04.20141104. 1-0ubuntu1) vivid; urgency=low
webbrowser-app (0.23+15.
[ Ubuntu daily release ]
* New rebuild forced
[ Riccardo Padovani ]
* Added new upstream components to fit with design requests: multiple
selection in History, standard swipe-to-delete. (LP: #1351167)
[ Olivier Tilloy ] /launchpad. net/bugs/ 1384460). (LP: #1384460)
* Do not use a custom scheme to trigger the error page, this won’t
work any longer as soon as oxide learns how to delegate unhandled
schemes (see https:/
* Ensure that the 'dataLocation' context property is updated when the
application name changes. (LP: #1387754)
* Really honour the --fullscreen command-line switch. (LP: #1379766)
-- Ubuntu daily release <email address hidden> Tue, 04 Nov 2014 15:22:49 +0000