Closed Bug 778263 Opened 12 years ago Closed 12 years ago

JavaScript Error: "Error selecting word: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsISelectionController.wordMove]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: chrome://b

Categories

(Firefox for Android Graveyard :: Text Selection, defect)

ARM
Android
defect
Not set
normal

Tracking

(firefox15 fixed, firefox16 fixed, firefox17 verified)

VERIFIED FIXED
Firefox 17
Tracking Status
firefox15 --- fixed
firefox16 --- fixed
firefox17 --- verified

People

(Reporter: aaronmt, Assigned: Margaret)

Details

Attachments

(1 file)

E/GeckoConsole(10402): [JavaScript Error: "Error selecting word: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsISelectionController.wordMove]"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: chrome://browser/content/browser.js :: sh_startSelection :: line 1666"  data: no]" {file: "chrome://browser/content/browser.js" line: 1672}]
I've seen this one in my log before when using text-selection on pages. You can reproduce this by long-tap holding in content on about:logo.
Hm, this is an error we're catching ourselves, so it shouldn't lead to other failures, but I can look into why this is happening.

Also, I just noticed that we don't properly clean up after ourselves if we bail in startSelection. We should fix that.
Attached patch patchSplinter Review
Logging this error is pretty useless, but we should make sure we clean up after ourselves if we're bailing in startSelection. This patch takes care of that.
Assignee: nobody → margaret.leibovic
Attachment #649712 - Flags: review?(mark.finkle)
Attachment #649712 - Flags: review?(mark.finkle) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/7047de4a90f2
Target Milestone: --- → Firefox 17
https://hg.mozilla.org/mozilla-central/rev/7047de4a90f2
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Channel nomination?
Status: RESOLVED → VERIFIED
Comment on attachment 649712 [details] [diff] [review]
patch

[Approval Request Comment]
Bug caused by (feature/regressing bug #): bug 695173 (text selection)
User impact if declined: logging a useless error isn't really a big deal, but without cleaning up properly, we can fail to remove the pagehide listener, which may cause issues
Testing completed (on m-c, etc.): landed on m-c 8/8
Risk to taking this patch (and alternatives if risky): low-risk, adds code to clean up state of SelectionHandler when we fail to start a selection
String or UUID changes made by this patch: n/a
Attachment #649712 - Flags: approval-mozilla-beta?
Attachment #649712 - Flags: approval-mozilla-aurora?
Comment on attachment 649712 [details] [diff] [review]
patch

Small patch, low risk, wouldn't normally be a candidate for uplift but it's good to clean up the unused errors so approving for branches.
Attachment #649712 - Flags: approval-mozilla-beta?
Attachment #649712 - Flags: approval-mozilla-beta+
Attachment #649712 - Flags: approval-mozilla-aurora?
Attachment #649712 - Flags: approval-mozilla-aurora+
tracking-fennec: ? → ---
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: