Closed Bug 1186347 Opened 5 years ago Closed 5 years ago

Long press on content editable area and got a JS type error in app_text_selection_dialog.js

Categories

(Firefox OS Graveyard :: Gaia, defect)

ARM
Gonk (Firefox OS)
defect
Not set

Tracking

(b2g-master fixed)

RESOLVED FIXED
FxOS-S4 (07Aug)
Tracking Status
b2g-master --- fixed

People

(Reporter: TYLin, Assigned: TYLin)

References

Details

Attachments

(1 file)

The new app_text_selection_dialog.js might have this issue as well.

+++ This bug was initially created as a clone of Bug #1186313 +++

When I try to long press on a content editable area, I got this error message:
GeckoConsole: [JavaScript Error: "TypeError: this.elements is undefined" {file: "app://system.gaiamobile.org/js/text_selection_dialog.js" line: 415}

Therefore, I cannot see the cut/copy/paste dialog after I select "copy image"/"copy link" on browser_context_menu from other apps. This only happens after I restart the flame. If the dialog appears once, everything looks good to me.
Attachment #8639671 - Flags: review?(timdream)
Assignee: nobody → tlin
Attachment #8639671 - Flags: review?(timdream) → review+
Comment on attachment 8639671 [details] [review]
[gaia] aethanyc:bug1186347 > mozilla-b2g:master

Hi Tim, 

I add two more commits to my PR. Please review them again. Thank you.
Attachment #8639671 - Flags: review+ → review?(timdream)
Attachment #8639671 - Flags: review?(timdream) → review+
Keywords: checkin-needed
https://github.com/mozilla-b2g/gaia/commit/7691b3761b6c2684f2d1e84e47fc124b375c76ab
Status: NEW → RESOLVED
Closed: 5 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → FxOS-S4 (07Aug)
You need to log in before you can comment on or make changes to this bug.