After some digging, it seems that creating the Touch device is causing the weird behaviour.
To reproduce, do this in a terminal: $ python3 Python 3.4.2 (default, Dec 27 2014, 23:37:21) [GCC 4.9.2] on linux Type "help", "copyright", "credits" or "license" for more information. >>> from autopilot.input._uinput import Touch >>> Touch.create() <autopilot.input._uinput.Touch object at 0x7f3571933e80> In a different terminal, do: elopio@tangamandapio76-desktop:~/workspace/canonical/webbrowser- app/trunk$ ./src/app/webbrowser/webbrowser-app --new-session http://www.ubuntu.com/download Wait for the page to load. Click the url bar so the refresh button appears. Now click the refresh button a little to the right from the center, and you will see what osomon attached in his video. -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to ubuntu-ui-toolkit in Ubuntu. https://bugs.launchpad.net/bugs/1417118 Title: test_looses_focus_when_reloading fails when run on desktop Status in Autopilot: New Status in Web Browser App: Confirmed Status in ubuntu-ui-toolkit package in Ubuntu: Confirmed Bug description: Recently, the otto tests started runnning successfully again for the webbrowser-app CI job (they had been broken for a long time). Now they all pass but one: webbrowser_app.tests.test_addressbar_states.TestAddressBarStates.test_looses_focus_when_reloading I’m attaching the test result output as well as a video capture of what happens when the test is run. It appears that clicking the reload button in the address bar doesn’t activate the reload action, but instead shows the contextual menu as if the click had gone through to the TextField below. To manage notifications about this bug go to: https://bugs.launchpad.net/autopilot/+bug/1417118/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp