Closed Bug 1159795 Opened 10 years ago Closed 7 years ago

can't copy initially selected text in navigationbar

Categories

(Firefox OS Graveyard :: Gaia::Browser, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: andre.fiedler, Unassigned)

Details

(Whiteboard: [systemsfe])

Modell: mako Software: Boot2Gecko 3.0.0.0-prerelease Plattform-Version: 40.0a1 Github Commit: c6b04efa (2015-04-17 21:10:53) Build: https://yalam.co.uk/b2g/mako/fxos-mako-15-04-18.zip If I open a URL in the browser and than tap on the navigationbar / rocketbar the text is initialliy selected but there's no context menu to copy/cut it. You have first to re-select the URL/Text so that the menu does appear. The copy&paste menu should appear initially. If you start to write a new URL it should disappear.
Ben, can you take a look?
Flags: needinfo?(bfrancis)
Whiteboard: [systemsfe]
Looking...
Assignee: nobody → bfrancis
Flags: needinfo?(bfrancis)
Rocketbar uses the setSelectionRange() method on an input element to select the text in the direction specified in the UX spec, my guess is that the text selection handles don't get triggered by this. https://github.com/mozilla-b2g/gaia/blob/master/apps/system/js/rocketbar.js#L445 George, do you know whether this should be supported?
Flags: needinfo?(gduan)
As I know, the only way to launch copypaste bubble is to call div.selectAllChildren. see below, https://github.com/mozilla-b2g/gaia/blob/master/apps/sms/views/conversation/js/conversation.js#L3066
Flags: needinfo?(gduan)
Hi George, I don't think that would work for this use case because it needs to set the direction of the text selection (i.e. it selects from the end of the URL to the start of the URL so that the end of the URL is shown). As setSelectionRange() is a web standard, should we look at supporting that in our text selection feature?
Assignee: bfrancis → nobody
Flags: needinfo?(gduan)
Agree, I think, if there's a selection either from finger or code that turn the characters to blue, should launch copy-paste bubble. seeking advices from Gecko's guy. Hi Morris, What do you think?
Flags: needinfo?(gduan) → needinfo?(mtseng)
Flags: needinfo?(mtseng)
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.