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)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1090008
People
(Reporter: gduan, Assigned: mtseng)
References
Details
Attachments
(3 files, 4 obsolete files)
|
852 bytes,
patch
|
Details | Diff | Splinter Review | |
|
4.77 KB,
patch
|
Details | Diff | Splinter Review | |
|
11.34 KB,
patch
|
Details | Diff | Splinter Review |
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.
| Reporter | ||
Updated•11 years ago
|
Blocks: CopyPasteLegacy
| Assignee | ||
Comment 1•11 years ago
|
||
Maybe we can check return value of dispatch event to determine is this event a valid.
| Assignee | ||
Comment 2•11 years ago
|
||
| Assignee | ||
Comment 3•11 years ago
|
||
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)
| Assignee | ||
Updated•11 years ago
|
Attachment #8510030 -
Flags: review?(21) → review?(fabrice)
Comment 5•10 years ago
|
||
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-
| Assignee | ||
Comment 6•10 years ago
|
||
Browser element is re-writing in bug 1044736. So I'll update my patch base on that bug.
| Assignee | ||
Comment 7•10 years ago
|
||
Based on bug 1044736.
Attachment #8510030 -
Attachment is obsolete: true
| Assignee | ||
Comment 8•10 years ago
|
||
Mochitest for this feature.
| Assignee | ||
Comment 9•10 years ago
|
||
I'll request for reviews once bug 1044736 is done.
| Assignee | ||
Comment 10•10 years ago
|
||
Attachment #8515717 -
Attachment is obsolete: true
Comment 11•10 years ago
|
||
This should be fixed by bug 1090008. George, could you help to confirm it?
Flags: needinfo?(gduan)
| Reporter | ||
Comment 12•10 years ago
|
||
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.
Description
•