Closed Bug 953156 Opened 11 years ago Closed 10 years ago

Chrome manifests for bootstrapped add-ons unregistered at shutdown, causing multiple calls to CheckForNewChrome

Categories

(Toolkit :: Add-ons Manager, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla29

People

(Reporter: darktrojan, Assigned: darktrojan)

Details

Attachments

(1 file, 3 obsolete files)

I've noticed that as each add-on is shutdown at app shutdown, we call Components.manager.removeBootstrappedManifestLocation, and by extension, CheckForNewChrome. This doesn't need to happen if we're shutting down.
Attached patch 953156-1.diff (obsolete) — Splinter Review
I really don't know how I'd go about testing this.
Attachment #8351484 - Flags: review?(bmcbride)
Attached patch 953156-2.diff (obsolete) — Splinter Review
Turns out I do know how I can test this.
Attachment #8351484 - Attachment is obsolete: true
Attachment #8351484 - Flags: review?(bmcbride)
Attachment #8351522 - Flags: review?(bmcbride)
Comment on attachment 8351522 [details] [diff] [review]
953156-2.diff

Review of attachment 8351522 [details] [diff] [review]:
-----------------------------------------------------------------

Me like.
Attachment #8351522 - Flags: review?(bmcbride) → review+
Hmm, I thought I'd run all those tests locally. Guess not.

Blair, looking at test_langpack.js (line 207 et al), I think I should manually unregister the manifest in the test. Does that seem sensible?
Yep.


(You're lucky I saw this, remember to needinfo me)
Attached patch 953156-3.diff (obsolete) — Splinter Review
Now with fixed test!
Attachment #8351522 - Attachment is obsolete: true
Attachment #8356375 - Flags: review?(bmcbride)
Comment on attachment 8356375 [details] [diff] [review]
953156-3.diff

Review of attachment 8356375 [details] [diff] [review]:
-----------------------------------------------------------------

Ship it... again.
Attachment #8356375 - Flags: review?(bmcbride) → review+
Attached patch 953156-4.diffSplinter Review
Now with fixed, fixed test.
Attachment #8356375 - Attachment is obsolete: true
Attachment #8356970 - Flags: review?(bmcbride)
Comment on attachment 8356970 [details] [diff] [review]
953156-4.diff

Review of attachment 8356970 [details] [diff] [review]:
-----------------------------------------------------------------

Geez, at this rate, you'd almost think this was one of my patches ;-)
Attachment #8356970 - Flags: review?(bmcbride) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/fbc1d2e697f1

(In reply to Blair McBride [:Unfocused] from comment #13)
> Geez, at this rate, you'd almost think this was one of my patches ;-)

If this doesn't succeed, I'm WONTFIXing it.
(Especially since it passes Try.)
https://hg.mozilla.org/mozilla-central/rev/fbc1d2e697f1
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla29
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: