Closed Bug 827997 Opened 11 years ago Closed 11 years ago

[10.8] Titlebar drawn over in Preferences dialog

Categories

(Core :: Widget: Cocoa, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: smichaud, Unassigned)

References

Details

Attachments

(1 file)

Starting with today's mozilla-central nightly, and only (so far) on OS X 10.8.2, the Preferences dialog is usually (but not always) shown with the "titlebar proper" (the top 22 pixels) drawn over by the rest of the dialog.  In other words, the entire dialog is shifted 22 pixels up, though the standard titlebar elements (the close, minimize and zoom buttons, plus the window title) are drawn in their correct location.

The dialog seems to be displayed correctly for a fraction of a second, and then drawn (incorrectly) as described above.

I'll post a screenshot in my next comment.

Here's the regression range:
http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=605ae260b7c8&tochange=dccab70d8554

I doubt this is a Cocoa Widgets bug, but I don't yet know where else to put it.
Attached image Screenshot
This bug happens with HiDPI mode off (with gfx.hidpi.enabled set to '-1').  So it isn't a HiDPI bug.
This bug was triggered by the patch for bug 749394:

http://hg.mozilla.org/mozilla-central/rev/0d44408e050e

 Bug 749394 - Per-window private browsing theme changes for Windows and OS X; r=dao
author	Ehsan Akhgari <ehsan@mozilla.com>
	Mon Jan 07 13:24:08 2013 -0500 (at Mon Jan 07 13:24:08 2013 -0500)
Blocks: 749394
How do you reproduce this?  This is a bit weird since the patch in bug 749394 did not change the theme of the Preferences dialog...
> How do you reproduce this?

I find it very easy to reproduce on OS X 10.8.2.

If you don't see it (on 10.8.2), try this:

1) Click on the General tab (in the Preferences dialog), or the Advanced tab if the General tab is already highlighted.

2) Quit Firefox and restart.  Then open the Preferences dialog again.

3) If you don't see the problem go back to step 1.
(In reply to comment #5)

I tried again with a fresh profile, and now I'm also having trouble reproducing this.

I'll dig around a bit and report back.
I still can't reproduce with a fresh profile.  So for now I'll mark this WORKSFORME.

I'll reopen if I stumble across good STR.

I often run different FF versions (serially) on the same profile.  That could explain what happened here.  It'd be nice to know exactly what setting screwed things up ... but we may never know that.

My gut also tells me there's an underlying bug here, unrelated to Ehsan's patch, and probably not in Cocoa widgets.  But it'll take more information than we currently have to pin it down.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WORKSFORME
I tried to reproduce it again but I couldn't...

FWIW, this seems to me like it's a result of this rule being applied: <http://mxr.mozilla.org/mozilla-central/source/toolkit/content/xul.css#30> which means that someone added the drawintitlebar attribute to the preferences.xul's root element, which is, pretty scary...
Hmm, this is probably caused by what I fixed in bug 829870.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: