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)
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.
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → boris.chiou
Assignee | ||
Updated•9 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•9 years ago
|
||
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.
Assignee | ||
Comment 2•9 years ago
|
||
Comment 3•9 years ago
|
||
Assignee | ||
Updated•9 years ago
|
Attachment #8636972 -
Attachment is obsolete: true
Assignee | ||
Updated•9 years ago
|
Attachment #8636975 -
Flags: review?(timdream)
Updated•9 years ago
|
Attachment #8636975 -
Flags: review?(timdream) → review+
Assignee | ||
Comment 4•9 years ago
|
||
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)
Updated•9 years ago
|
Attachment #8636975 -
Flags: review?(timdream) → review+
Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
Comment 5•9 years ago
|
||
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.
Description
•