Closed Bug 328812 Opened 18 years ago Closed 17 years ago

Windows users are unable to select non-default themes when high-contrast mode is enabled

Categories

(Core :: Disability Access APIs, defect)

1.8 Branch
x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: rflint, Assigned: alfredkayser)

References

Details

(Keywords: access)

Attachments

(1 file)

Per a conversation with mconnor on irc.m.o, this is a combination/clone of bugs 328119 and 328247 in order to escape the noise and give this issue a clean slate.

Pertinent information and patch from Alfred Kayser on bug 328119 comments 16 and 17:
> Ok, found the cause of this issue. Check out:
> Bug 239914 When high contrast theme used, automatically ignore author's colors
> (https://bugzilla.mozilla.org/show_bug.cgi?id=239914#c16)
> 
> Specifically comment #16, where it is described that when the 'OS
> Accessibility' flag is set, then
> the Mozilla applications (all of them!), always revert back to the 'classic'
> theme.
> The 'classic' theme is designed to use the system colours and styling, and the
> reasoning is that when the 'OS Accessibility' flag is set, that theme should be
> selected to apply the system colours and styling...
> 
> However, as also discussed in that bug, this may be valid for the
> pages/document, but not to the theme selection, as a user may want to
> explicitly select another theme (with extra large icons for example). 
> 
> Furthermore, the way that this feature is hidden: reverting back to 'classic'
> without any message, not even when someone tries to select another theme, based
> on an hidden internal OS accessibility flag, is confusing for a lot of people.
> (as seen by the start of this issue: 'Themes don't apply after install').
> 
> I propose to remove this hidden feature, as nowadays by default FF only as the
> 'classic' theme, so that people without themes, and the flag turned on, are
> still using 'classic'. But those people, like nuncus himself, want to
> EXPLICITELY select a specific theme (those that are designed for
> accessibility!), are now prevented to do so, as there is no way to override
> this behaviour!
> 
> To remove this feature, just remove the 'CheckUseAccessibleSkin' completely
> from: http://lxr.mozilla.org/mozilla/source/xpfe/bootstrap/nsAppRunner.cpp
> 
> Note, this feature may have been applicable when Mozilla by default had two
> themes installed, of which the 'modern' theme 'not very accessible' (very not
> ...), so reverting automatically to 'classic' was usefull. But nowadays only
> the 'classic' (or default theme is distributed). So, when another theme is
> installed the user explicitly wants to have that theme, but it prevented by
> this hidden feature. So, give control back to the users, and remove this
> 'feature'.
Attached patch PatchSplinter Review
Patch from Alfred Kayser (alfredkayser@nl.ibm.com)

See bug 328119 comment 17
Attachment #213426 - Flags: superreview?
Attachment #213426 - Flags: review?
Attachment #213426 - Flags: superreview?(bryner)
Attachment #213426 - Flags: superreview?
Attachment #213426 - Flags: review?(benjamin)
Attachment #213426 - Flags: review?
*** Bug 328247 has been marked as a duplicate of this bug. ***
*** Bug 328119 has been marked as a duplicate of this bug. ***
Blocks: 315402
Attachment #213426 - Flags: superreview?(bryner) → review?(aaronleventhal)
Thanks for the reviews!

Who can check this into the tree?

And shall be also do this for the 1.8 branch for FF2?
And for FF1.5.0.x??
Flags: blocking1.8.1?
Flags: blocking1.8.0.2?
Comment on attachment 213426 [details] [diff] [review]
Patch

Makes great sense. We needed it more in the days of the modern theme, although perhaps we should have still allowed users to adjust the theme. Thanks for the patch.
Attachment #213426 - Flags: review?(aaronleventhal) → review+
Attachment #213426 - Flags: superreview?(benjamin)
Attachment #213426 - Flags: review?(benjamin)
Attachment #213426 - Flags: approval-branch-1.8.1?
Too late for a non-security fix in 1.8.0.2, especially one that hasn't landed and been tested anywhere.
Flags: blocking1.8.0.3?
Flags: blocking1.8.0.2?
Flags: blocking1.8.0.2-
This code doesn't affect Firefox at all; it's a seamonkey-only API. The equivalent toolkit codepath is:

http://lxr.mozilla.org/mozilla/source/chrome/src/nsChromeRegistry.cpp#571
called through
http://lxr.mozilla.org/mozilla/source/toolkit/xre/nsAppRunner.cpp#734
Flags: blocking1.8.0.3? → blocking1.8.0.3-
Comment on attachment 213426 [details] [diff] [review]
Patch

Seamonkey still uses two themes, one of which doesn't obey high-contrast native theming: I'm not sure they want this patch.
Attachment #213426 - Flags: superreview?(neil)
Attachment #213426 - Flags: superreview?(benjamin)
Attachment #213426 - Flags: approval-branch-1.8.1?(neil)
Attachment #213426 - Flags: approval-branch-1.8.1?
Flags: blocking1.8.1? → blocking1.8.1-
Comment on attachment 213426 [details] [diff] [review]
Patch

Not a problem as our default theme does obey high-contrast native theming.
Attachment #213426 - Flags: superreview?(neil)
Attachment #213426 - Flags: superreview+
Attachment #213426 - Flags: approval-branch-1.8.1?(neil)
Attachment #213426 - Flags: approval-branch-1.8.1+
Why isn't it checked into trunk?
Bug 380786 removed xpfe/bootstrap/nsAppRunner.cpp from trunk. Marking fixed.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: