Closed Bug 951274 Opened 11 years ago Closed 10 years ago

Disable "click on selected text to copy"

Categories

(Firefox for Android Graveyard :: Text Selection, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
Firefox 29

People

(Reporter: wesj, Assigned: veeti.paananen)

References

Details

(Whiteboard: [mentor=margaret][lang=js])

Attachments

(1 file)

The "click on text to copy it" feature isn't in standard Android. Now that we have an actionbar, its easier visually to see how to copy. We should disable the feature.
Blocks: 768667
Whiteboard: [mentor=margaret][lang=js]
Component: General → Text Selection
Attached patch 951274.patchSplinter Review
Attachment #8350956 - Flags: review?(margaret.leibovic)
Comment on attachment 8350956 [details] [diff] [review]
951274.patch

Review of attachment 8350956 [details] [diff] [review]:
-----------------------------------------------------------------

::: mobile/android/chrome/content/SelectionHandler.js
@@ -79,5 @@
> -          let data = JSON.parse(aData);
> -          if (this._pointInSelection(data.x, data.y))
> -            this.copySelection();
> -          else
> -            this._closeSelection();

I was worried we might still need this code to get rid of the selection if the user taps outside of it, but I was able to verify that the focus change takes care of that for us, so we don't need this.
Attachment #8350956 - Flags: review?(margaret.leibovic) → review+
Thanks so much for the patch!
Assignee: nobody → veeti.paananen
Keywords: checkin-needed
https://hg.mozilla.org/integration/fx-team/rev/b2ec8cc7299d
Keywords: checkin-needed
Whiteboard: [mentor=margaret][lang=js] → [mentor=margaret][lang=js][fixed-in-fx-team]
https://hg.mozilla.org/mozilla-central/rev/b2ec8cc7299d
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Whiteboard: [mentor=margaret][lang=js][fixed-in-fx-team] → [mentor=margaret][lang=js]
Target Milestone: --- → Firefox 29
Status: RESOLVED → VERIFIED
Depends on: 970054
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: