Closed Bug 1073318 Opened 11 years ago Closed 10 years ago

[Text Selection] Cannot cut/copy/paste/selectall after scrolling

Categories

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

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1090008

People

(Reporter: gduan, Assigned: mtseng)

References

Details

Attachments

(3 files, 4 obsolete files)

STR: 1. long-tap text and bubble shows. 2. scrolling 3. tap any of the buttons Actual: button doesn't work Gaia does send mozContentEvent to gecko.
Attached patch wip-bug1073318 (obsolete) — Splinter Review
Maybe we can check return value of dispatch event to determine is this event a valid.
Attached patch wip-bug1073318-gaia (obsolete) — Splinter Review
Attached patch bug1073318 (obsolete) — Splinter Review
This issue is because we overwrite DoCommandHelper._event when we receive a selection change event. If we have multiple BrowserElementParent and send selection change simultaneously then doCommand might send command to wrong BEP. This patch create a unique id for each BEP so we can distinguish where is this selection change coming from. So we can get rid of DoCommandHelper.
Assignee: nobody → mtseng
Attachment #8495769 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #8510030 - Flags: review?(21)
Patch for gaia
Attachment #8495772 - Attachment is obsolete: true
Attachment #8510030 - Flags: review?(21) → review?(fabrice)
Comment on attachment 8510030 [details] [diff] [review] bug1073318 Review of attachment 8510030 [details] [diff] [review]: ----------------------------------------------------------------- Mostly nits, but we also need new tests before landing. ::: dom/browser-element/BrowserElementParent.jsm @@ +59,5 @@ > } > } > > this.BrowserElementParentBuilder = { > + id: 0, nit: _id to be consistent with BrowserElementParent @@ +66,4 @@ > } > } > > +function BrowserElementParent(frameLoader, hasRemoteFrame, id, isPendingFrame) { please don't change parameters order. @@ +497,5 @@ > } > }, > > _handleSelectionChange: function(data) { > + data.json.bepid = this._id; I don't like bepid - this is leaking an implementation detail to gaia. Can we name that just "id" or "uid" ?
Attachment #8510030 - Flags: review?(fabrice) → review-
Depends on: 1091363
Depends on: 1044736
Browser element is re-writing in bug 1044736. So I'll update my patch base on that bug.
Attached patch bug1073318 v2Splinter Review
Based on bug 1044736.
Attachment #8510030 - Attachment is obsolete: true
Attached patch bug1073318-test (obsolete) — Splinter Review
Mochitest for this feature.
I'll request for reviews once bug 1044736 is done.
Attached patch Add mochitest.Splinter Review
Attachment #8515717 - Attachment is obsolete: true
This should be fixed by bug 1090008. George, could you help to confirm it?
Flags: needinfo?(gduan)
Yes, confirmed. Mark it as dup of bug 1090008.
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Flags: needinfo?(gduan)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: