Webapp-container: selection upon long press is not always desirable
Bug #1373773 reported by
Daniel Beck
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
webbrowser-app (Ubuntu) |
Invalid
|
Low
|
Unassigned |
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-
Changed in webbrowser-app: | |
importance: | Undecided → Low |
status: | New → Triaged |
assignee: | nobody → Alexandre Abreu (abreu-alexandre) |
Changed in webbrowser-app (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Low |
assignee: | nobody → Alexandre Abreu (abreu-alexandre) |
no longer affects: | webbrowser-app |
To post a comment you must log in.
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.