Get rid of the formFactor context property

Bug #1542375 reported by Olivier Tilloy
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Canonical System Image
Fix Released
High
Bill Filler
webbrowser-app (Ubuntu)
Fix Released
High
Olivier Tilloy

Bug Description

The Ubuntu.Web plugin exposes a 'formFactor' context property, whose value is either "mobile" or "desktop".

It relies on QGuiApplication::platformName() to determine the so-called "form factor". With convergence, this approach is flawed, because the same device can change from a phone to a desktop and back to phone during the lifetime of the application.
Form factor is not even a concept that should be used for dynamic layout of the application.

This property is not (and has never been) publicly documented, so it should be fine to remove it.

In most cases, where the value of that property was used, we can use one of the following:
 - wide VS narrow mode
 - presence of a mouse/touchpad/touchscreen/keyboard
 - can a given QML plugin be dynamically loaded

Related branches

Bill Filler (bfiller)
Changed in canonical-devices-system-image:
milestone: none → ww08-2016
assignee: nobody → Bill Filler (bfiller)
importance: Undecided → High
status: New → In Progress
David Barth (dbarth)
Changed in canonical-devices-system-image:
status: In Progress → Fix Released
status: Fix Released → Fix Committed
Changed in webbrowser-app (Ubuntu):
status: In Progress → Fix Released
David Barth (dbarth)
Changed in webbrowser-app (Ubuntu):
status: Fix Released → New
Changed in canonical-devices-system-image:
status: Fix Committed → New
Olivier Tilloy (osomon)
Changed in canonical-devices-system-image:
status: New → In Progress
Changed in webbrowser-app (Ubuntu):
status: New → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package webbrowser-app - 0.23+16.04.20160223-0ubuntu1

---------------
webbrowser-app (0.23+16.04.20160223-0ubuntu1) xenial; urgency=medium

  [ CI Train Bot ]
  * Resync trunk.

  [ Olivier Tilloy ]
  * Remove the 'formFactor' context property, and replace all its uses
    by more meaningful conditions. (LP: #1446904, #1542375)
  * Update translation template.
  * Work around a bug in the UITK that prevents touch scrolling to the
    left of the address bar by ensuring that the x coordinate of the
    text field is an integer. (LP: #1546346)
  * Work around bug #1546677 (UITK), by destroying the bookmark options
    popover instead of hiding it. (LP: #1546627, #1546677)

 -- Olivier Tilloy <email address hidden> Tue, 23 Feb 2016 11:24:49 +0000

Changed in webbrowser-app (Ubuntu):
status: In Progress → Fix Released
Changed in canonical-devices-system-image:
status: In Progress → Fix Committed
Revision history for this message
Penk Chen (penk) wrote :

For the record, Heremaps 1.0.9 has been released to store. (https://requests.ci-train.ubuntu.com/#/ticket/1067)

Changed in canonical-devices-system-image:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.