Closed
Bug 141090
Opened 23 years ago
Closed 21 years ago
New profiles do not display current theme w/ check flag
Categories
(SeaMonkey :: Themes, defect)
SeaMonkey
Themes
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla1.7final
People
(Reporter: jerry.tan, Assigned: jerry.tan)
References
Details
(Keywords: verified1.7)
Attachments
(1 file, 3 obsolete files)
2.78 KB,
patch
|
benjamin
:
review+
bryner
:
superreview+
asa
:
approval1.7+
|
Details | Diff | Splinter Review |
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0rc1)
Gecko/20020417
BuildID: 20020425
according to bug 127993, theme has one checked flag when mozilla startup.
but if start mozilla with new profile, theme doesnot have it.
Reproducible: Always
Steps to Reproduce:
1.startup mozilla with create new profile
2.chose the new created profile
3.View->Apply Theme
Actual Results: No checked flag for the current theme
Expected Results: There is one check flag for the current theme
if select one theme, restart mozilla,
View->Apply Theme, you will see that there is a checked flag for the current
used theme.
I dont agree.
this bug is not dup of 54681.
this bug only happens when new profile is created.
if using existed profile, it is ok.
Attachment #133241 -
Flags: superreview?(bryner)
Attachment #133241 -
Flags: review?(blake)
Attachment #133241 -
Attachment is obsolete: true
Comment on attachment 133551 [details] [diff] [review]
patch (correct some format error)
bryner, can you give r?
Attachment #133551 -
Flags: review?(bryner)
Attachment #133241 -
Flags: superreview?(bryner)
Attachment #133241 -
Flags: review?(blake)
Comment 7•21 years ago
|
||
Comment on attachment 133551 [details] [diff] [review]
patch (correct some format error)
After talking with bsmedberg, I think a better solution is to fix
isSkinSelected() to always work correctly.
Attachment #133551 -
Flags: review?(bryner) → review-
when mozilla start with new profile, the new created prefs doesnot contain
selected skin info.
but for nsChromeRegistry::LoadProfileDataSource, it will check user prefs,
if it contain selected skin info, mozilla will selectSkin for all package,
if not, it will just skip.
so patch 0.2 hack here, if prefs doesnot contain selected skin info, it will
query "global"'s skin, and selectSkin for all packages.
it goes in another way.
when mozilla create new profile, it will create chrome.rdf for the new profile,
it contains locale info, but lack skin info.
so I make patch 0.3, just handle skin like locale,
when new profile, add selected skin info into chrome.rdf.
Assignee | ||
Comment 10•21 years ago
|
||
bryner and blaker, can you take a look at patch 0.2 and patch 0.3?
I prefer patch 0.3.
but for a existed profile, if user never use View->Apply Theme to set theme,
there will be still no check flag for all availble themes.
and I dont want to hack in nsChromeRegistry:IsSkinSelected(),
because it can return FULL, partical, NONE,
it could be used in the future.
Comment 11•21 years ago
|
||
From quick perusal, I think version 2 is better (and we should probably be doing
something similar for locale). The 'birds are moving towards
--enable-single-profile, which means that none of the code in nsProfile will be
present. That might be a red herring, though.
Assignee | ||
Comment 12•21 years ago
|
||
Comment on attachment 134467 [details] [diff] [review]
patch 0.2 (fix in nsChromeRegistry::LoadProfileDataSource)
blake, can you review it?
Attachment #134467 -
Flags: review?(blake)
Assignee | ||
Comment 13•21 years ago
|
||
Comment on attachment 134467 [details] [diff] [review]
patch 0.2 (fix in nsChromeRegistry::LoadProfileDataSource)
bryner, can you review it?
Attachment #134467 -
Flags: review?(blake) → review?(bryner)
Comment 14•21 years ago
|
||
Comment on attachment 134467 [details] [diff] [review]
patch 0.2 (fix in nsChromeRegistry::LoadProfileDataSource)
I like patch 0.3 better... this one will impact startup time by calling
SelectSkin on every startup.
Attachment #134467 -
Flags: review?(bryner) → review-
Comment 15•21 years ago
|
||
Comment on attachment 134473 [details] [diff] [review]
patch 0.3 (hacking in nsProfile and nsChromeRegistry)
r/sr=bryner for this patch.
Attachment #134473 -
Flags: superreview+
Attachment #134467 -
Attachment is obsolete: true
Attachment #133551 -
Attachment is obsolete: true
Attachment #134473 -
Flags: review?(bsmedberg)
Comment 16•21 years ago
|
||
Comment on attachment 134473 [details] [diff] [review]
patch 0.3 (hacking in nsProfile and nsChromeRegistry)
If you alter an interface you *must* change the IID of the interface: generate
a new IID and insert it into the nsIXULChromeRegistry interface and r=me
Please don't check this in yet... I need to move the nsIChromeRegistry.idl to
content/base/public, so I will check this in once that is done. (see bug
219233)
Attachment #134473 -
Flags: review?(bsmedberg) → review+
Comment 17•21 years ago
|
||
(In reply to comment #16)
> Please don't check this in yet... I need to move the nsIChromeRegistry.idl to
> content/base/public, so I will check this in once that is done. (see bug
> 219233)
>
bug 219233 has been fixed, have you checked this in?
Comment 18•21 years ago
|
||
adding depends per bsmedberg, flagging for 1.7f, allplats
I verified the previous bug, which fixes the problem in everything except the
default state of a newly created profile.
I'd really like to see this fixed for 1.7.
Depends on: 219233
Flags: blocking1.7?
OS: Windows 2000 → All
QA Contact: pmac → benc
Hardware: PC → All
Summary: when new profile, theme doesnot have check flag → New profiles do not display current theme w/ check flag
Comment 19•21 years ago
|
||
Comment on attachment 134473 [details] [diff] [review]
patch 0.3 (hacking in nsProfile and nsChromeRegistry)
I'm vaguely worried about the possible regressions here, but with several
release candidates I think this should probably go in.
Attachment #134473 -
Flags: approval1.7?
Comment 20•21 years ago
|
||
Jerry: just so I understand...
This patch has the effect of forcing new profiles to have the same theme
selection state that they get after you select a theme via the menu?
I have seen some theme weirdness in a new Mac profile that goes away after you
re-select the theme...
Comment 21•21 years ago
|
||
bsmedberg, if we're going to consider this for 1.7, can you help us identify the
things that might be impacted -- what areas of the app we should pay particular
testing attention to after it lands? Has it landed on the trunk yet? Any fallout
there?
Comment 22•21 years ago
|
||
Jerry: Is this patch bitrotted? I had someone try to build w/ the patch today,
and they said that the idl file had moved.
Assignee | ||
Comment 23•21 years ago
|
||
the patch does not in trunk.
Due to patch for bug 219233
nsIChromeRegistry.idl has been moved into content,
I think just modify the patch 0.3, set nsIChromeRegistry.idl to the currently
place, the patch still work.
Comment 24•21 years ago
|
||
Comment on attachment 134473 [details] [diff] [review]
patch 0.3 (hacking in nsProfile and nsChromeRegistry)
a=asa (on behalf of drivers) for checkin to 1.7
Attachment #134473 -
Flags: approval1.7? → approval1.7+
Comment 25•21 years ago
|
||
Checked in on trunk and 1.7 branch.
The kinds of regressions we're looking for are:
1) If you install a non-default theme, and use the profile manager, the correct
theme is applied
2) If you uninstall a theme, it reverts to some other theme sanely.
3) Other similar theme+profile combinations.
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Keywords: fixed1.7
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.7final
Updated•21 years ago
|
Flags: blocking1.7?
Updated•17 years ago
|
Product: Core → SeaMonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•