Closed
Bug 768665
Opened 12 years ago
Closed 12 years ago
Add context menu to selected text
Categories
(Firefox for Android Graveyard :: Text Selection, defect)
Tracking
(firefox15 verified, firefox16 verified, firefox17 verified)
VERIFIED
FIXED
Firefox 16
People
(Reporter: Margaret, Assigned: Margaret)
References
Details
Attachments
(1 file)
10.27 KB,
patch
|
mfinkle
:
review+
|
Details | Diff | Splinter Review |
It should include "Copy", "Select All", and "Share".
Assignee | ||
Comment 1•12 years ago
|
||
Assignee: nobody → margaret.leibovic
Attachment #636937 -
Flags: review?(mark.finkle)
Comment 2•12 years ago
|
||
What does Select All do on already selected text?
Assignee | ||
Comment 3•12 years ago
|
||
(In reply to Aaron Train [:aaronmt] from comment #2) > What does Select All do on already selected text? It selects the entire page (like cmd+a on desktop). The action bar on selection on Chrome also has a button that does this, so it seems useful.
Comment 4•12 years ago
|
||
Would this still be needed if the action bar (Bug 768667) was implemented?
Comment 5•12 years ago
|
||
(In reply to Yann Brelière from comment #4) > Would this still be needed if the action bar (Bug 768667) was implemented? For Froyo and Gingerbread it would be needed. We would not support the ActionBar there.
Comment 6•12 years ago
|
||
Comment on attachment 636937 [details] [diff] [review] patch >diff --git a/mobile/android/chrome/content/browser.js b/mobile/android/chrome/content/browser.js >+ showContextMenu: function sh_showContextMenu(aX, aY) { >+ case SELECT_ALL: >+ let selectionController = this._view.QueryInterface(Ci.nsIInterfaceRequestor). >+ case SHARE: >+ let selectedText = this.endSelection(); Can you add {} since you are making local vars in the case blocks? case SELECT_ALL: { let selectionController = this._view.QueryInterface(Ci.nsIInterfaceRequestor). ... break; } >+ return selectedText; Is this used? or is this just a handy thing to do?
Attachment #636937 -
Flags: review?(mark.finkle) → review+
Assignee | ||
Comment 7•12 years ago
|
||
(In reply to Mark Finkle (:mfinkle) from comment #6) > case SELECT_ALL: { > let selectionController = > this._view.QueryInterface(Ci.nsIInterfaceRequestor). > ... > break; > } > > > >+ return selectedText; > > Is this used? or is this just a handy thing to do? I added it so that it could be used for the share method. It's a little tricksy for my tastes, but I didn't want to try to refactor endSelection to factor out the code that works with the selection.
Assignee | ||
Comment 8•12 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/c64440f55c79
Target Milestone: --- → Firefox 16
Comment 9•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/c64440f55c79
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 10•12 years ago
|
||
Uplifted to aurora as part of a roll-up patch: https://hg.mozilla.org/releases/mozilla-aurora/rev/2fb0a358eaf6
Updated•12 years ago
|
Status: RESOLVED → VERIFIED
status-firefox17:
--- → verified
Updated•3 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•