Closed Bug 590033 Opened 14 years ago Closed 14 years ago

Error in nsIAutoCompletePopup::invalidate (Again)

Categories

(Firefox for Android Graveyard :: General, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: mfinkle, Assigned: mfinkle)

Details

Attachments

(1 file)

Attached patch patchSplinter Review
Bug 575477 tried to fix this bug, but failed.

Exception... "'[JavaScript Error: "title.match(/^(.+) \u2013 (.+)$/) is null"
{file: "chrome://browser/content/bindings.xml" line: 259}]' when calling
method: [nsIAutoCompletePopup::invalidate]"  nsresult: "0x80570021
(NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS)"  location: "JS frame ::
file:///home/mfinkle/Source/mozilla-trunk/mobile-debug/dist/bin/components/AutoCompleteCache.js
:: anonymous :: line 249"  data: yes

I found a title like " - Bookmarks Menu" would cause the error. The regex tries to split on the " - " and has nothing for title, so I guess it throws. This patch silences the throw. The error actually causes the "Show all bookmarks" to not be displayed, as well as some other oddities.

I have no idea how such a title got into my history.
Attachment #468614 - Flags: review?(21)
bugspam
Assignee: nobody → mark.finkle
Verified fixed on:
Mozilla/5.0 (Android;Linux armv7l;rv:9.0a1)Gecko/20110919
Firefox/9.0a1 Fennec/9.0a1
Device: Samsung Galaxy S
OS: Android 2.2
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: