Closed Bug 1007732 Opened 12 years ago Closed 12 years ago

mapURIToAddonID fails for bootstrapped add-ons detected at startup

Categories

(Toolkit :: Add-ons Manager, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla32
Tracking Status
firefox31 - affected
firefox32 --- fixed

People

(Reporter: mossop, Assigned: mossop)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

For some reason the fixes in bug 986755 don't work for the cfx run case
Assignee: nobody → dtownsend+bugmail
Bug causes us to throw away URI mappings for bootstrapped add-ons detected at startup
Blocks: 957089
Component: Developer Tools: Debugger → Add-ons Manager
Product: Firefox → Toolkit
Summary: Grouping by XPI breaks when running an add-on with cfx run → mapURIToAddonID fails for bootstrapped add-ons detected at startup
Attached patch patchSplinter Review
The way we build up locations for mapURIToAddonID is sort of crazy, parsing through the installcache pref and other bits to get stuff. It also gets wiped out during startup after some of the mappings have been set when a new restartless add-on is detected. I think it's much saner to do it as part of the install location scan. We already have direct access to all the add-on's locations there so it's trivial to record them. This has a side effect. We can now map all disabled add-ons. Previously we could only map disabled add-ons if they had been previously enabled. I don't think this is a bad thing but if we still need the old behaviour then I think there are easier ways to get there than the way the current system works.
Attachment #8420201 - Flags: review?(bmcbride)
Comment on attachment 8420201 [details] [diff] [review] patch Review of attachment 8420201 [details] [diff] [review]: ----------------------------------------------------------------- Oh, huh - that's much more elegant!
Attachment #8420201 - Flags: review?(bmcbride) → review+
Status: NEW → RESOLVED
Closed: 12 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla32
This potentially breaks the add-on debugger and about:memory for add-ons detected at startup. I don't think that's enough of a problem to want to press on with an uplift but could be argued otherwise.
No activity for a month on this bug and no uplift request after the aurora cycle. I guess we don't want an uplift here.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: