← Back to team overview

ubuntu-webapps-bugs team mailing list archive

[Bug 1373773] Re: Webapp-container: long press opens contextual menu

 

The fact that the webapp container exposes a default contextual menu is
intended. It’s unfortunate that it doesn’t expose a command-line option
to optionally disable it though.

You have a couple of options there:
 1) Ensure your web application doesn’t emit "contextmenu" DOM events (this is what the selection mechanism uses), i.e. if it swallows them they will never reach the container
 2) Instead of using the webapp container, build a simple QML application that embeds a WebView (import it from Ubuntu.Web), which by default has the selection mechanism disabled

I’ll leave this bug open so we can consider adding a command-line option
to the webapp-container app to optionally disable the selection.

** Summary changed:

- Webapp-container: long press opens contextual menu
+ Webapp-container: selection upon long press is not always desirable

** Project changed: oxide => webbrowser-app

-- 
You received this bug notification because you are a member of Ubuntu
WebApps bug tracking, which is subscribed to webbrowser-app.
https://bugs.launchpad.net/bugs/1373773

Title:
  Webapp-container: selection upon long press is not always desirable

Status in Web Browser App:
  New

Bug description:
  HTML5 applications can be packed as "webapp-container". The idea is to
  make them look "nativ".

  However, when I user Iong presses a DOM element, a white border
  appears around the DOM element and a contextual popup menus opens,
  giving the user the option to copy the text from the DOM element.

  This shouldn't happen.

  I do start the app as follows: (.desktop file)
  Exec=webapp-container --store-session-cookies --webappUrlPatterns=https?://greenmahjong.daniel-beck.org/* http://greenmahjong.daniel-beck.org %u

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


References