Closed Bug 728810 Opened 13 years ago Closed 13 years ago

Port bug 553092 - Initialise the permissions manager only on startup

Categories

(Thunderbird :: General, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 13.0

People

(Reporter: standard8, Assigned: aceman)

References

Details

Attachments

(1 file)

+++ This bug was initially created as a clone of Bug #553092 +++

Bug 553092 did some work to improve initialisation of the permissions manager on startup.

We should port that to Thunderbird - we basically need to port the browser.js part (to LightWeightThemeWebInstaller in msgMail3PaneWindow.js) and the permissions.js part to the like file in Thunderbird.
What is the way to test this?
You probably want to check that themes installed from somewhere listed in the whitelist prefs aren't blocked:

http://mxr.mozilla.org/comm-central/search?string=xpinstall.whitelist.add&find=%2Fprofile%2F&findi=&filter=^[^\0]*%24&hitlimit=&tree=comm-central

For the permissions.js part, I don't think we actually display that dialog in Thunderbird atm.
You mean they should work the same before and after the change?
How can I install themes in Thunderbird?
(In reply to :aceman from comment #3)
> You mean they should work the same before and after the change?

Yep

> How can I install themes in Thunderbird?

Tools -> Addons -> Get Add-ons -> See All Themes -> Personas -> Select a persona

(needs to be a persona rather than a general theme though).
Ok, let's try it.
Assignee: nobody → acelists
Strange, those 2 prefs are reset to "" when I visit that site offering personas.
But the personas still apply (preview).
Attached patch patch (deleted) — Splinter Review
After applying this and trying the steps in comment 4 the personas still apply, without asking.
Attachment #599313 - Flags: review?(mbanner)
Comment on attachment 599313 [details] [diff] [review]
patch

For future reference, to fully test this, you either need a new profile, or to nuke permissions.sqlite and then test installing personas.

I did this after a bit of trial and error, and doubly confirmed that everything still works as expected, so r=me.
Attachment #599313 - Flags: review?(mbanner) → review+
Thanks.
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 13.0
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: