Closed Bug 622656 Opened 15 years ago Closed 15 years ago

Add-on Builder Helper appears to be broken for Mac OS X

Categories

(Mozilla Labs Graveyard :: FlightDeck, defect, P1)

All
macOS
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: dbuchner, Assigned: myk)

Details

Attachments

(1 file)

Attempting to use the ABH in the latest beta or Minefield versions of Fx on Mac OS X, there is something breaking inside the ABH that prevents it from creating the appropriate config prefs for the trusted domain. If you install and manually add the pref, the add-on operates just fine.
Assignee: nobody → avarma
Severity: normal → blocker
Priority: -- → P1
Ayan has also confirmed this is an issue for Linux as well.
What are the "appropriate config prefs" that ABH fails to create?
The ABH uses the trustedOrigins object in the lib dirs js file to create this config entry: extensions.addonBuilderHelper.trustedOrigins
Hmm, my reading of the code is that it doesn't actually create that entry itself, it just reads it if it exists. Without the entry, the list of trusted domains is exactly the list that ships with ABH (in its data/addon-config.json directory). With the entry, the list of trusted domains is the list that ships with ABH along with any additional entries in that preference. What server are you testing on? If it's on https://builder-addons-next.allizom.org, then that would explain the problem, since that site isn't in the list of trusted domains in data/addon-config.json. If that's the problem, then adding that URL to the list should sufficient to resolve it.
Assignee: avarma → myk
I believe Ayan and I tested it on all the various domain variants the app was on, I will double check and post back here.
Attached file candidate build
Here's a candidate build that I think solves the problems. Ayan, Daniel: can you test and confirm whether or not it actually does solve the problems?
Attachment #501871 - Flags: feedback?(dbuchner)
Attachment #501871 - Flags: feedback?(ayanshah62)
I can try it, but I never had the issue in Windows. Ayan, can you give this a spin?
myk: yes it works for me now. I tried it on beta8 on the live as well as the stage website.Thanks!
Attachment #501871 - Flags: feedback?(ayanshah62) → feedback+
Attachment #501871 - Flags: feedback?(dbuchner)
Ok, I have uploaded the new version to AMO, where it should appear after it gets review.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Thank you for that Myk!
Product: Mozilla Labs → Mozilla Labs Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: