Closed Bug 576394 Opened 14 years ago Closed 14 years ago

Startup always loads titlebar above firefox menu button and does not start in drawing in titlebar mode

Categories

(Core :: Widget: Win32, defect)

x86
Windows 7
defect
Not set
major

Tracking

()

RESOLVED FIXED
mozilla2.0b2
Tracking Status
blocking2.0 --- beta3+

People

(Reporter: mozbugz, Assigned: mstange)

References

Details

(Keywords: regression)

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:2.0b2pre) Gecko/20100701 Minefield/4.0b2pre Firefox/3.6.6
Build Identifier: 

Drawing in the titlebar doesn't initialized on startup.. Firefox Menu is under the titlebar, the double clicking on glass is the behavior like the menubar is showing instead.

Works:
http://hg.mozilla.org/mozilla-central/rev/e6ef4a34b9e1

broken:
http://hg.mozilla.org/mozilla-central/rev/8425474fc441

Candidate: bug 573973 or bug 572680

Reproducible: Always

Steps to Reproduce:
Turn on menubar, turn off menubar, fixes it, restart browser..
Actual Results:  
Startup affected, titlebar is always displayed as a regular window mode, not custom drawing in the titlebar mode.

Expected Results:  
Should startup with previous configuration and/or drawing in the titlebar first with app menu in titlebar not below it.
Keywords: regression
Summary: Startup always loads titlebar above firefox menu button and does start in drawing in titlebar mode → Startup always loads titlebar above firefox menu button and does not start in drawing in titlebar mode
Confrimed, setting to New
Severity: normal → major
Status: UNCONFIRMED → NEW
blocking2.0: --- → ?
Component: General → Widget: Win32
Ever confirmed: true
Product: Firefox → Core
QA Contact: general → win32
Version: unspecified → Trunk
When doing the STR above, I now see a large gap between the status bar and the Win7 TaskBar...  About the distance that would be consumed by the Menu+Titlebar

Minimizing/Maximizing the browser fills the gap.
(In reply to comment #2)
> When doing the STR above, I now see a large gap between the status bar and the
> Win7 TaskBar...  About the distance that would be consumed by the Menu+Titlebar
> 
> Minimizing/Maximizing the browser fills the gap.

I believe that's bug 575005
(In reply to comment #3)
> (In reply to comment #2)
> > When doing the STR above, I now see a large gap between the status bar and the
> > Win7 TaskBar...  About the distance that would be consumed by the Menu+Titlebar
> > 
> > Minimizing/Maximizing the browser fills the gap.
> 
> I believe that's bug 575005

maybe different bug.
This bug is so annoying. Anybody know what caused it?
Mozilla/5.0 (Windows; U; Windows NT 6.1; WOW64; en-US; rv:2.0b2pre) Gecko/20100701 Firefox/3.6.4 ( .NET CLR 3.5.30729; .NET4.0C)

What are the STR? I'm unable to reproduce.
(In reply to comment #6)
> Mozilla/5.0 (Windows; U; Windows NT 6.1; WOW64; en-US; rv:2.0b2pre)
> Gecko/20100701 Firefox/3.6.4 ( .NET CLR 3.5.30729; .NET4.0C)
> 
> What are the STR? I'm unable to reproduce.

With the latest hourly/nightly, have the menubar disabled and restart firefox.
Attached image screenshot
Oops, I didn't realize that SetDrawsInTitlebar is now also implemented on Windows. What seems to happen is that further up in that function in nsXULWindow.cpp, when the "chromemargin" attribute is processed, the margins get set correctly, but then when the "drawintitlebar" attribute isn't present, the margins get unset again.

Jim, why did you implement SetDrawsInTitlebar on Windows? Is it used?
(In reply to comment #6)
> Mozilla/5.0 (Windows; U; Windows NT 6.1; WOW64; en-US; rv:2.0b2pre)
> Gecko/20100701 Firefox/3.6.4 ( .NET CLR 3.5.30729; .NET4.0C)
> 
> What are the STR? I'm unable to reproduce.

Yeah, the standard bug filer takes my UA string and it would be in tomorrow's nightly.  Thanks Taz.  I was going to add the pushlog range earlier but didn't have time.
Assignee: nobody → mstange
Blocks: 573973
Status: NEW → ASSIGNED
Fixed by backout of bug 573973.
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.3b2
(In reply to comment #11)
> Fixed by backout of bug 573973.

=] fast.
(In reply to comment #9)
> Oops, I didn't realize that SetDrawsInTitlebar is now also implemented on
> Windows. What seems to happen is that further up in that function in
> nsXULWindow.cpp, when the "chromemargin" attribute is processed, the margins
> get set correctly, but then when the "drawintitlebar" attribute isn't present,
> the margins get unset again.
> 
> Jim, why did you implement SetDrawsInTitlebar on Windows? Is it used?

It's implemented. It calls the non client margins setup call with the titlebar turned off and all the other margins turned on.

We can unhook it, but it seemed a good idea to support it on windows now that we can, as it's defined in the main widget interface.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: