Closed Bug 1186313 Opened 9 years ago Closed 9 years ago

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

Categories

(Firefox OS Graveyard :: Gaia, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
FxOS-S3 (24Jul)

People

(Reporter: boris, Assigned: boris)

References

Details

Attachments

(1 file, 1 obsolete file)

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.
Blocks: 1121463
Assignee: nobody → boris.chiou
Status: NEW → ASSIGNED
Sorry, I should explain this problem more clearly:
Instead of copying from the bubble dialog, I copy images/links by context menu, and then paste directly on a content editable area. In this case, I got this JS error.

(In reply to Boris Chiou [:boris] from comment #0)
> 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 #8636972 - Attachment is obsolete: true
Attachment #8636975 - Flags: review?(timdream)
Attachment #8636975 - Flags: review?(timdream) → review+
Comment on attachment 8636975 [details] [review]
[gaia] BorisChiou:bug1186313 > mozilla-b2g:master

Hi, Tim,

I fix this unit test error:
TEST-UNEXPECTED-FAIL | null | [system-test/unit/text_selection_dialog_test.js] system/TextSelectionDialog handleEven selectionstatechanged event should render when first show

In this patch, I move this.render() into this.show(), so we make sure that "first show()" must call render(). Therefore, we don't need this test case anymore.
Attachment #8636975 - Flags: review+ → review?(timdream)
Attachment #8636975 - Flags: review?(timdream) → review+
Keywords: checkin-needed
https://github.com/mozilla-b2g/gaia/commit/a7d99ffc8bea851347c325be46e88fbadbb18564
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → FxOS-S3 (24Jul)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: