Closed Bug 247161 Opened 20 years ago Closed 16 years ago

scrollbar arrows rendered incorrectly with <meta http-equiv="MSThemeCompatible" content="no"/>

Categories

(Toolkit :: UI Widgets, defect, P3)

x86
Windows XP
defect

Tracking

()

RESOLVED FIXED

People

(Reporter: petrovicky, Assigned: masayuki)

References

()

Details

(Keywords: regression, testcase)

Attachments

(5 files, 2 obsolete files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040615 Firefox/0.9 (JTw)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040615 Firefox/0.9 (JTw)

if you look on scrollbar arrows on the supplied URL (doesn't matter if they're
main page scrollbars or scrollbars in a text-area), you'll see that they're
smaller than usual and are on a different place (attached image).

I noticed this only on a given site and only with the latest release (0.9), no
nightlies did this before.

also, it's not caused by extensions, because I use the same sort of extensions
for more than 14 days and these problems occured only few days ago.

Reproducible: Always
Steps to Reproduce:
1. just take a look at the URL

Actual Results:  
scrollbars are rendered incorrectly

Expected Results:  
scrollbars should be rendered as they're rendered wherever else.
It's because you have this in your html-code:
<meta http-equiv="MSThemeCompatible" content="no">
See bug 222888 for more info on this.
But the scrollbar arrow is rendered in the wrong at the wrong place still.
Mozilla/5.0 (OS/2; U; Warp 4.5; en-US; rv:1.7) Gecko/20040629 Firefox/0.9.1

I see the same thing on OS/2 with a fresh profile. Not sure that this is the
same bug, because for me it is not related to a specific webpage (there is no
MSThemeCompatible in the source of the Firefox start page). I see this even on
very simple ones like http://www.uni-sw.gwdg.de that do not use CSS.

I only see this with the default Firefox theme, others (e.g. Qute) are OK. If I
could get the DOM-Inspector to tell me the ID of the arrow buttons, I would
start to investigate why they are off center.
This happened because Winstripe shrank the size of the arrow buttons causing
them not to take up the whole space in scrollbars (this is only visible when
Firefox itself is drawing the bars, rather than the OS). Replacing the arrow
icons with the ones from the suite fixes the problem. See also Bug 250355.

Confirming on Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.7) Gecko/20040707
Firefox/0.9.0+
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: blocking-aviary1.0RC1?
Flags: blocking-aviary1.0RC1?
Flags: blocking-aviary1.0RC1-
Flags: blocking-aviary1.0?
Kevin, is this on your radar yet?
reassing to Kevin, this is not super-high priority, but there's some weirdness here.
Assignee: firefox → webmail
Flags: blocking-aviary1.0RC1-
Flags: blocking-aviary1.0?
Flags: blocking-aviary1.0+
Priority: -- → P3
WFM, Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2) Gecko/20040816 Firefox/0.9.1+
Nian, I think this was never a problem on Linux (Unix?). FF seems to use native
GTK scrollbars there (at least that's what they look like), so the arrows always
appear centered and in the right proportions.
With yesterday's build I could still see the problem on OS/2.
Not a "blocker"
Flags: blocking-aviary1.0+ → blocking-aviary1.0-
*** Bug 262990 has been marked as a duplicate of this bug. ***
Same problem on some sites (Wall Street Journal, bugzilla.mozilla.org) with
Firefox 1.0 preview running on Mac OS X 10.3.5.  Other sites do not exhibit this
behavior (my site, www.star-property.com).
This might not be a good fix for the problem on Windows where it only occurs on
certain websites. But it most definitely improves the situation on OS/2 in that
it puts the arrows closer to the center of the buttons, so that they look more
natural.
Keywords: regression
Kevin, any chance in getting this trivial issue for 1.5?
Flags: blocking-aviary1.5?
Severity: normal → trivial
Flags: blocking-aviary1.5? → blocking-aviary1.5-
It's easy to make this happen on Windows XP:

create a userContent.css with:

* { -moz-appearance: none !important; }

I did a simpler fix for this in:

https://bugzilla.mozilla.org/show_bug.cgi?id=314982
Summary: scrollbar arrows rendered incorrectly → scrollbar arrows rendered incorrectly with <meta http-equiv="MSThemeCompatible" content="no"/>
OK, this takes mkaply's simpler patch from bug 314982 (attachment 201777 [details] [diff] [review]) and extends it also to qute which fixes a similar issue in Thunderbird, too. I guess the html|div scrollbarbuttons also need the same fix, hence I included that in this patch, too.
Assignee: kevin → mozilla
Attachment #177059 - Attachment is obsolete: true
Attachment #197279 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #211528 - Flags: ui-review?
Attachment #211528 - Flags: review?(kevin)
Attachment #197279 - Flags: review?(kevin)
Attachment #211528 - Flags: ui-review? → ui-review?(beltzner)
*** Bug 314982 has been marked as a duplicate of this bug. ***
Problem not only occurs on WinXP with special HTML page content, but also more generally on Win98 (Bug 314982) and OS/2.
OS: Windows XP → All
Comment on attachment 211528 [details] [diff] [review]
simplify patch, similar fix for qute

Looks good. Thanks for the patch. Just to clarify: This issue exists in Qute/Thunderbird as well? If not, let's check in just the Winstripe change. Also, we don't need a ui-review on this trivial bug.
Attachment #211528 - Flags: ui-review?(beltzner)
Attachment #211528 - Flags: review?(kevin)
Attachment #211528 - Flags: review+
Thanks a lot Kevin, for looking at this long overdue bug.

Yes, it does happen for TB, as you can see in this screenshot. At least on OS/2. Hmm, but now that you ask I finally notice that it only happens for the downwards arrow. The reason is that the down one (arrow-dn*.gif) is 5x11px while the up one (arrow-up*.gif) is 11x11px. If there is no good reason for this difference then I can try to convert the up arrows into down arrows and attach them for Qute, instead of patching the CSS.
Kevin, did you decide which way to go (CSS fix as in attachment 211528 [details] [diff] [review] or editing of the PNGs)? If the CSS changes are the way to go, could you please check them in?
As there is no progress here I will (try to) solve this in a platform specific manner on OS/2 in Bug 336997 instead.
Assignee: mozilla → nobody
Status: ASSIGNED → NEW
This bug still exists and looks like it's destined for 2.0
Attached file simple testcase
Someone with rights should add "testcase" keyword and change product/component to core/themes.
Component: General → Themes
Flags: review+
Keywords: testcase
Product: Firefox → Core
QA Contact: general → themes
Version: unspecified → Trunk
Not reproducible on Linux, marking this as Windows-specific.
OS: All → Windows XP
This bug still appears in latest Firefox trunk nightly:
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a6pre) Gecko/20070628 Minefield/3.0a6pre

as well as Firefox 2.

Example URL:
http://www.xboxworld.com.au/
This is a trivial bug with a patch and some sites look very odd with it.

I suggest to either fix this bug or drop "support" for MSThemeCompatible as it seems useless and not in any standard.
Flags: blocking1.9?
Flags: tracking1.9? → blocking1.9?
Flags: blocking1.9? → blocking1.9-
The reason behind MSThemeCompatible is understandable. However, it is actually causing nothing but ugliness (to the user) which clearly isn't intended.

The bug caused by this appears every once in a while on forums, etc.

Like Jonathan says: It should be fixed or removed. To keep the buggy state is not the way to go.
Flags: wanted1.9.0.x?
There is another reason, why the current implementation is ugly.

If there is any site, which is incompatible with native controls and the author uses MSThemeCompatible to disable native theming, then Linux and Mac people will still see the native controls and probably will have the same rendering problems as the windows people would have.

So I think there are two solutions: 

1. Drop support for MSThemeCompatible. I think that this is the best solution, because I think, that fixing the scrollbars maybe difficult, and I can't think of any reason, why native controls would make any problems.

2. Make MSThemeCompatible work ans let it also apply on Linux and Mac controls. I don't like this because it says _MS_ThemeCompatible (there is no LinuxThemeCompatible, is it?) and I think it would be easier for Firefox 3 to just remove support instead of this larger change.
(In reply to comment #30)

1. It (MSThemeCompatible) actually applies on Mac.
2. When present, the scrollbars vanish completely (on Mac). See bug 420363. Form controls also suffer some usability issues.
Flags: wanted1.9.1?
Product: Core → SeaMonkey
Why was this moved to SeaMonkey?

The testcases clearly show that this is a Gecko problem drawing the scrollbars. (the problem is visible in most Gecko based browsers).
(In reply to comment #32)
> Why was this moved to SeaMonkey?
> 

Fallout from the BMO reorg (for which there is a notice at the top of this page).
https://bugzilla.mozilla.org/show_bug.cgi?id=bmo-reorg
Component: Themes → General
Product: SeaMonkey → Core
QA Contact: themes → general
(In reply to comment #33)
> Fallout from the BMO reorg (for which there is a notice at the top of this
> page).

I though so at first, but in the Bug Activity page the change was dates to 2008-06-29 so I guesst I couln't have been the reorg. Well anyway, sorry for bugspam.
Not going to block a maintenance release on a long-standing issue.
Flags: wanted1.9.0.x? → wanted1.9.0.x-
This patch fixes this bug on all toolkit applications.
# I'm not sure why attachment 211528 [details] [diff] [review] is not in trunk.

However, I think that this approach is wrong. If theme is disabled, we should render the widgets with classic widget rendering methods in nsNativeThemeWin. But this patch is enough for now.
Assignee: nobody → masayuki
Status: NEW → ASSIGNED
Attachment #342733 - Flags: review?(gavin.sharp)
Component: General → XUL Widgets
Product: Core → Toolkit
QA Contact: general → xul.widgets
gavin: would you review the patch?
Attachment #342733 - Flags: review?(gavin.sharp) → review?(enndeakin)
Comment on attachment 342733 [details] [diff] [review]
Patch for toolkit applications v1.0

Looks OK, but I think the other Neil should review as well.
Attachment #342733 - Flags: review?(neil)
Attachment #342733 - Flags: review?(enndeakin)
Attachment #342733 - Flags: review+
Attachment #342733 - Flags: review?(neil) → review+
landed.
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Flags: wanted1.9.1?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: