Closed Bug 1297847 Opened 8 years ago Closed 8 years ago

Mac: window control buttons (caption / traffic light buttons) in private browsing windows are 1px too low when title bar is active/visible

Categories

(Firefox :: Theme, defect)

51 Branch
Unspecified
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 51
Tracking Status
firefox51 --- fixed

People

(Reporter: mehmet.sahin, Assigned: Gijs)

References

Details

Attachments

(2 files)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/601.7.7 (KHTML, like Gecko) Version/9.1.2 Safari/601.7.7

Steps to reproduce:

Mac OS 10.11.6
Firefox Nightly 51.0a1 (2016-08-24)


1.) Open a Normal Window
2.) Open an Incognito Window
3.) Activate "Show Title Bar" in the Customizing
4.) Compare the height of the Window Control Buttons in both windows



Actual results:

The Window Control Buttons (traffic-lights) in Incognito Windows are 1px too low.


Expected results:

They must be 1px higher, to match the height of the buttons of the Normal Window.

A screenshot is attached.
Component: Untriaged → Theme
OS: Unspecified → Mac OS X
Blocks: 1275655
Status: UNCONFIRMED → NEW
Ever confirmed: true
Markus, this is effectively your patch from bug 1275655 but with the -moz-box-align also put in the theme's browser.css.

AFAICT this gets us correct behaviour everywhere (lwtheme (devedition and non-devedition, which behave differently...), no lwtheme, private browser, no private browser, titlebar, no titlebar).

I think the solution to the mystery in bug 1275655 (the 1px offset I was seeing) is exactly this bug, and the reason we were seeing different things is because one of us had bug 1275650 applied as well, and one didn't...
Assignee: nobody → gijskruitbosch+bugs
Status: NEW → ASSIGNED
Comment on attachment 8784876 [details]
Bug 1297847 - fix titlebar button locations across titlebar/lwtheme/devedition state,

https://reviewboard.mozilla.org/r/74184/#review72096

(In reply to :Gijs Kruitbosch (away 26-29 incl.) from comment #2)
> Markus, this is effectively your patch from bug 1275655 but with the
> -moz-box-align also put in the theme's browser.css.

Oh wow, I had completely forgotten about that bug. I can't believe that it was only three months ago.

> AFAICT this gets us correct behaviour everywhere (lwtheme (devedition and
> non-devedition, which behave differently...), no lwtheme, private browser,
> no private browser, titlebar, no titlebar).

Nice, and it simplifies the code, too.

> I think the solution to the mystery in bug 1275655 (the 1px offset I was
> seeing) is exactly this bug, and the reason we were seeing different things
> is because one of us had bug 1275650 applied as well, and one didn't...

Oh! Yes, that may have been the reason.
Attachment #8784876 - Flags: review?(mstange) → review+
Comment on attachment 8784876 [details]
Bug 1297847 - fix titlebar button locations across titlebar/lwtheme/devedition state,

https://reviewboard.mozilla.org/r/74184/#review72418

This looks good - though I suspect it'd be a good idea to run this through the mozscreenshot suite to make sure we didn't miss any cases (I tested default, lw-theme, private browsing, all with tabs in titlebar and without)
Attachment #8784876 - Flags: review?(mconley) → review+
Flags: needinfo?(gijskruitbosch+bugs)
https://treeherder.mozilla.org/#/jobs?repo=try&revision=e3a45b6ea11f
Flags: needinfo?(gijskruitbosch+bugs)
(In reply to Mike Conley (:mconley) - (Needinfo me!) from comment #4)
> Comment on attachment 8784876 [details]
> Bug 1297847 - fix titlebar button locations across
> titlebar/lwtheme/devedition state,
> 
> https://reviewboard.mozilla.org/r/74184/#review72418
> 
> This looks good - though I suspect it'd be a good idea to run this through
> the mozscreenshot suite to make sure we didn't miss any cases (I tested
> default, lw-theme, private browsing, all with tabs in titlebar and without)

Seems like mozscreenshot doesn't test private browsing windows. I'll file a bug. The non-private ones all show up with no differences, so I think this is good to land.
Pushed by gijskruitbosch@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/ad701f25715c
fix titlebar button locations across titlebar/lwtheme/devedition state, r=mconley,mstange
https://hg.mozilla.org/mozilla-central/rev/ad701f25715c
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 51
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: