Switching between two windows of the same app using quick swipe from right edge breaks focus

Bug #1623861 reported by Andrew Hayzen
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Canonical System Image
Fix Released
High
Michał Sawicz
qtmir (Ubuntu)
Invalid
Undecided
Nick Dedekind
qtubuntu (Ubuntu)
Fix Released
Undecided
Nick Dedekind

Bug Description

Switching between two windows of the same app using quick swipe from right edge breaks focus.

What happened:
1) Install the multi-window version of webbrowser (silo 084)
2) Open the webbrowser
3) Focus the address bar, notice that keyboard raises correctly
3) Spawn a second window
4) Perform a quick swipe from the right edge to switch back to the first window
5) Focus the address bar and notice that the keyboard doesn't raise

Note at step 3, sometimes the keyboard does raise and sometimes not but after a quick swipe this is always reproducible for me.

What I expected to happen:
At step 5) for the keyboard to raise when the focus is given.

When investigating the unity8 log I noticed that when the issue occurs there is a second "MirSurface[0x2358780,"webbrowser-app"]::updateActiveFocus() unfocused" on the old window after it has given focus to the old window.

A change window that works: http://pastebin.ubuntu.com/23181435/
A change window that fails: http://pastebin.ubuntu.com/23181436/

Note a full swipe, which displays the spread, works as expected on my device.

$ apt-cache policy qtmir-android qtubuntu-android webbrowser-app
qtmir-android:
  Installed: 0.4.8+15.04.20160906-0ubuntu1
  Candidate: 0.4.8+15.04.20160906-0ubuntu1
  Version table:
 *** 0.4.8+15.04.20160906-0ubuntu1 0
       1001 http://ppa.launchpad.net/ci-train-ppa-service/stable-phone-overlay/ubuntu/ vivid/main armhf Packages
        100 /var/lib/dpkg/status
     0.4.4+15.04.20150318-0ubuntu1 0
         50 http://ports.ubuntu.com/ubuntu-ports/ vivid/universe armhf Packages
qtubuntu-android:
  Installed: 0.63+15.04.20160912-0ubuntu1
  Candidate: 0.63+15.04.20160912-0ubuntu1
  Version table:
 *** 0.63+15.04.20160912-0ubuntu1 0
       1001 http://ppa.launchpad.net/ci-train-ppa-service/landing-084/ubuntu/ vivid/main armhf Packages
        100 /var/lib/dpkg/status
     0.63+15.04.20160831-0ubuntu1 0
       1001 http://ppa.launchpad.net/ci-train-ppa-service/stable-phone-overlay/ubuntu/ vivid/main armhf Packages
     0.60+15.04.20150318-0ubuntu3 0
         50 http://ports.ubuntu.com/ubuntu-ports/ vivid/universe armhf Packages
webbrowser-app:
  Installed: 0.23+16.10.20160825-0ubuntu1local~1473859555
  Candidate: 0.23+15.04.20160912-0ubuntu1
  Version table:
 *** 0.23+16.10.20160825-0ubuntu1local~1473859555 0
        100 /var/lib/dpkg/status
     0.23+15.04.20160912-0ubuntu1 0
       1001 http://ppa.launchpad.net/ci-train-ppa-service/landing-084/ubuntu/ vivid/main armhf Packages
     0.23+15.04.20160825-0ubuntu1 0
       1001 http://ppa.launchpad.net/ci-train-ppa-service/stable-phone-overlay/ubuntu/ vivid/main armhf Packages
     0.23+15.04.20150416-0ubuntu1 0
         50 http://ports.ubuntu.com/ubuntu-ports/ vivid/main armhf Packages

$ system-image-cli -i
current build number: 398
device name: mako
channel: ubuntu-touch/rc-proposed/bq-aquaris.en
last update: 2016-09-12 15:18:40
version version: 398
version ubuntu: 20160910
version device: 20160401.1
version custom: 20160904-9-vivid

Related branches

Michał Sawicz (saviq)
Changed in canonical-devices-system-image:
status: New → Triaged
importance: Undecided → High
assignee: nobody → Michał Sawicz (saviq)
milestone: none → backlog
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in qtmir (Ubuntu):
status: New → Confirmed
Changed in qtmir (Ubuntu):
assignee: nobody → Nick Dedekind (nick-dedekind)
status: Confirmed → In Progress
Changed in canonical-devices-system-image:
status: Triaged → In Progress
milestone: backlog → 14
Changed in canonical-devices-system-image:
status: In Progress → Fix Committed
Gerry Boland (gerboland)
Changed in qtmir (Ubuntu):
status: In Progress → Invalid
Michał Sawicz (saviq)
Changed in qtubuntu (Ubuntu):
status: New → Fix Released
assignee: nobody → Daniel d'Andrada (dandrader)
Changed in qtubuntu (Ubuntu):
assignee: Daniel d'Andrada (dandrader) → Nick Dedekind (nick-dedekind)
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.