When the error happens, the selection rectangle isn’t drawn on screen.
The webview has registered a long press event though, as evidenced by this log:

    WebContextMenu::Show: Content requested a context menu, but the
application hasn't provided one

Testing manually in the browser, the selection rectangle appears
reliably on long press, so it seems to be an issue with the tests only,
not with the functionality itself.

On devices, the way the autopilot tests simulate a long press event to
summon the selection rectangle is like this:

    webview = self.main_window.get_current_webview()
    self.pointing_device.move_to_object(webview)
    self.pointing_device.press()
    time.sleep(1.5)
    self.pointing_device.release()

I tested various values for time.sleep() (increased it and decreased
it), to no avail. Under 1.5 seconds, there are occurences where the
webview doesn’t register a long press event. Higher values don’t seem to
fix the issue either.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1485984

Title:
  webbrowser_app.tests.test_selection.TestSelection.* flaky since oxide
  1.8

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/webbrowser-app/+bug/1485984/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to