Text selection box drawn in wrong place

Bug #1450430 reported by Jonathan Cave
28
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Canonical System Image
Fix Released
High
Bill Filler
Oxide
Invalid
Undecided
Unassigned
webbrowser-app (Ubuntu)
Fix Released
High
Olivier Tilloy
webbrowser-app (Ubuntu RTM)
Fix Released
High
Unassigned

Bug Description

Version: ubuntu-touch/devel-proposed/krillin.en r67 vegetahd

Steps to reproduce:
 * Open browser
 * Go to http://community.ubuntu.com/
 * Try and select some of the paragraphs of text

Expected result
 - the light blue text selection box is drawn around the paragraphs selected

Actual result:
 - box in wrong place
 - copying the text and pasting someone confirms that the text selected does not match the highlighted area

Tags: selection

Related branches

Revision history for this message
Jonathan Cave (jocave) wrote :
Olivier Tilloy (osomon)
affects: oxide-qt (Ubuntu) → webbrowser-app (Ubuntu)
Changed in webbrowser-app (Ubuntu):
status: New → Confirmed
tags: added: selection
Olivier Tilloy (osomon)
Changed in webbrowser-app:
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Olivier Tilloy (osomon) wrote :

The problem lies in the selection mechanism not taking into account the current scale factor.

Revision history for this message
Olivier Tilloy (osomon) wrote :

Unfortunately oxide doesn’t expose the current page scale factor.

Revision history for this message
Olivier Tilloy (osomon) wrote :

Note that the device scale factor is exposed in the DOM as document.defaultView.devicePixelRatio, and it’s already being taken into account by the selection mechanism, but we also need the current page scale factor, which isn’t exposed anywhere.

Olivier Tilloy (osomon)
Changed in webbrowser-app (Ubuntu RTM):
status: New → Confirmed
Changed in webbrowser-app (Ubuntu):
importance: Undecided → Medium
Changed in webbrowser-app (Ubuntu RTM):
importance: Undecided → Medium
Changed in webbrowser-app (Ubuntu):
importance: Medium → High
Changed in webbrowser-app (Ubuntu RTM):
importance: Medium → High
no longer affects: webbrowser-app
Revision history for this message
Olivier Tilloy (osomon) wrote :

It looks like my previous analysis was wrong: the offset isn’t due to the page scale factor, it’s due to the locationBarController’s height and offset not being taken into account. This can be fixed without an additional API in oxide.

Changed in webbrowser-app (Ubuntu):
assignee: nobody → Olivier Tilloy (osomon)
status: Confirmed → In Progress
Changed in oxide:
status: New → Invalid
Revision history for this message
Łukasz Zemczak (sil2100) wrote :
Download full text (14.5 KiB)

This bug was fixed in the package webbrowser-app 0.23+15.04.20150827.3-0ubuntu1 in https://launchpad.net/~ci-train-ppa-service/+archive/ubuntu/stable-phone-overlay

---------------

webbrowser-app (0.23+15.04.20150827.3-0ubuntu1) vivid; urgency=medium

  [ CI Train Bot ]
  * New rebuild forced.
  * Resync trunk.

  [ Olivier Tilloy ]
  * Use the contextMenu API new in oxide 1.8. Update the visuals for the
    context menu in narrow and wide form factors. Add text editing
    commands to the context menu. Add unit and autopilot tests for the
    context menu features. This bumps the runtime dependency of webapp-
    container and qtdeclarative5-ubuntu-web-plugin on liboxideqt-
    qmlplugin to 1.8. This also removes the qtdeclarative5-ubuntu-web-
    plugin-assets binary package, which contained only one PNG asset
    which is not used anywhere any longer. (LP: #1477310, #1477315,
    #1471181, #1264493, #1487090, #1326070, #1477309, #1450430,
    #1438046)

webbrowser-app (0.23+15.10.20150820-0ubuntu1) wily; urgency=medium

  [ Alexandre Abreu ]
  * Fix webapp name logic (LP: #1473472)

  [ Arthur Mello ]
  * Add support for removing history entries with delete key in
    HistoryViewWide (LP: #1484562)

  [ CI Train Bot ]
  * New rebuild forced.

  [ Olivier Tilloy ]
  * Remove an old workaround for an issue that was fixed since then in
    the content hub and that caused the file picker to accept the
    selected file twice.

  [ Ugo Riboni ]
  * Merge two url utility files into one, since they had no reason for
    being separate. Add unit tests for some of the functions that had
    none.

webbrowser-app (0.23+15.10.20150817-0ubuntu1) wily; urgency=medium

  [ Arthur Mello ]
  * Make sure to set the historyModel to the HistoryView component when
    browser wide property changes (LP: #1484555)
  * Wait for OptionSelector's collapsing transition to finish (LP:
    #1484175)

  [ Colin Watson ]
  * Fix versioned dependencies on qtdeclarative5-ubuntu-ui-toolkit-
    plugin to allow qtdeclarative5-ubuntu-ui-toolkit-plugin-gles.

webbrowser-app (0.23+15.10.20150814-0ubuntu1) wily; urgency=medium

  [ CI Train Bot ]
  * New rebuild forced.
  * Resync trunk.

  [ Ugo Riboni ]
  * Delay the exit from fullscreen mode until focus remains lost for a
    certain amount of time. (LP: #1477308)
  * Disable find in page when the new tab view is active. (LP: #1483847)

webbrowser-app (0.23+15.10.20150813.1-0ubuntu1) wily; urgency=medium

  [ CI Train Bot ]
  * New rebuild forced.

  [ Olivier Tilloy ]
  * Remove strong typing of the contextualActions and selectionActions
    properties. This would cause issues if an app imported Ubuntu.Web
    along with Ubuntu.Components < 1.3 and overrode one of these
    properties, because the webview expected an ActionList 1.3, and
    would get an earlier version. (LP: #1484437)
  * Update translation template.

webbrowser-app (0.23+15.10.20150812.1-0ubuntu1) wily; urgency=medium

  [ Arthur Mello ]
  * Wide screen versions of the history view and new tab view, per
    design specification. This adds a build dependency on qml-module-qt-
    labs-settings (for unit tests). (LP: #1351157, #1481647)

  [ CI Train Bot ]...

Changed in webbrowser-app (Ubuntu RTM):
status: Confirmed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

---------------
webbrowser-app (0.23+15.10.20150827.3-0ubuntu1) wily; urgency=medium

  [ CI Train Bot ]
  * New rebuild forced.
  * Resync trunk.

  [ Olivier Tilloy ]
  * Use the contextMenu API new in oxide 1.8. Update the visuals for the
    context menu in narrow and wide form factors. Add text editing
    commands to the context menu. Add unit and autopilot tests for the
    context menu features. This bumps the runtime dependency of webapp-
    container and qtdeclarative5-ubuntu-web-plugin on liboxideqt-
    qmlplugin to 1.8. This also removes the qtdeclarative5-ubuntu-web-
    plugin-assets binary package, which contained only one PNG asset
    which is not used anywhere any longer. (LP: #1477310, #1477315,
    #1471181, #1264493, #1487090, #1326070, #1477309, #1450430,
    #1438046)

 -- CI Train Bot <email address hidden> Thu, 27 Aug 2015 14:02:08 +0000

Changed in webbrowser-app (Ubuntu):
status: In Progress → Fix Released
Changed in canonical-devices-system-image:
status: New → Fix Committed
assignee: nobody → Bill Filler (bfiller)
importance: Undecided → High
milestone: none → ww40-2015
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.

Other bug subscribers

Remote bug watches

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