Closed Bug 662355 Opened 13 years ago Closed 13 years ago

Component returned failure code 0x80004005 (NS_ERROR_FAILURE) @ [extensions.xml::toggleOptions]

Categories

(Firefox for Android Graveyard :: General, defect)

ARM
Android
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
Firefox 7

People

(Reporter: aaronmt, Assigned: Mardak)

Details

Attachments

(1 file)

Build Identifier: Mozilla/5.0 (Android; Linux armv7l; rv:7.0a1) Gecko/20110606 Firefox/7.0a1 Fennec/7.0a1

uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE)"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: chrome://browser/content/bindings/extensions.xml :: toggleOptions :: line 116"  data: no]

STR:

1. Preferences, Add-ons pane
2. Scroll down, and install the recently risen to 'Recommended', Twitter Address Bar Search add-on.
3. After installation, tap Options
I'll assume

            let optionsURL = this.getAttribute("optionsURL");

is getting "", so, the following is failing:

            xhr.open("GET", optionsURL, false);
            xhr.send();
I've noticed this error after I've installed Nightly Tester Tools for Mobile and Personas add-ons. It seems that Option button is not working.

Build id : Mozilla/5.0 (Android;Linux armv7l;rv:7.0a1)Gecko/201100606
Firefox/7.0a1 Fennec/7.0a1
Device: Motorola Droid 2
OS: Android 2.2
This happens when the extensions url can't be found.
(In reply to comment #1)
> I'll assume
> 
>             let optionsURL = this.getAttribute("optionsURL");
> 
> is getting "", so, the following is failing:
> 
>             xhr.open("GET", optionsURL, false);
>             xhr.send();

We should be disabling the Options button in tht case:
http://mxr.mozilla.org/mozilla-central/source/mobile/chrome/content/bindings/extensions.xml#56
The options button is disabled in 4.0.1 but not 7.0a1
(In reply to comment #4)
> We should be disabling the Options button in tht case:
> http://mxr.mozilla.org/mozilla-central/source/mobile/chrome/content/bindings/
> extensions.xml#56
It's getting the string "undefined" (not undefined).
http://hg.mozilla.org/mozilla-central/rev/b8f518466e04#l2.85
    2.85 -        listitem.setAttribute("optionsURL", addon.optionsURL ? addon.optionsURL : "");

http://hg.mozilla.org/mozilla-central/rev/b8f518466e04#l2.38
    2.38 +    listitem.setAttribute("optionsURL", aAddon.optionsURL);
Attached patch v1Splinter Review
Assignee: nobody → edilee
Attachment #537794 - Flags: review?(mark.finkle)
Attachment #537794 - Flags: review?(mark.finkle) → review+
Keywords: checkin-needed
Doh! I forgot to [r=mfinkle]

How does the new landing process work with cedar, etc?
(In reply to comment #10)
> Doh! I forgot to [r=mfinkle]

Yup, I noticed & added that.

> How does the new landing process work with cedar, etc?

Cedar is just a grab-bag repo (largely for minimal and/or checkin-needed patches), which is periodically merged to m-c (every few days).

(If you need this to be merged to m-c sooner, I think anyone's basically free to do a cedar merge whenever they want.)
http://hg.mozilla.org/mozilla-central/rev/908c1f8dd2ca

(In reply to comment #10)
> How does the new landing process work with cedar, etc?

cedar is now replaced with mozilla-inbound, please see the thread on dev.planning announcing the change.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Whiteboard: fixed-in-cedar
Target Milestone: --- → Firefox 7
Verified

Mozilla/5.0 (Android; Linux armv71; rv7.0a1) Gecko/20110613 Firefox/7.0a1 Fennec/7.0a1
Device: Thunderbolt
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

Creator:
Created:
Updated:
Size: