Closed
Bug 1403867
Opened 7 years ago
Closed 7 years ago
Private Browsing/Accessibility indicator makes the menu toolbar too large
Categories
(Firefox :: Theme, defect, P1)
Tracking
()
VERIFIED
FIXED
Firefox 58
Tracking | Status | |
---|---|---|
firefox-esr52 | --- | unaffected |
firefox56 | --- | unaffected |
firefox57 | + | verified |
firefox58 | --- | verified |
People
(Reporter: johannh, Assigned: yzen)
References
Details
(Keywords: regression)
Attachments
(7 files, 1 obsolete file)
282.51 KB,
image/png
|
Details | |
232.62 KB,
image/png
|
Details | |
95.92 KB,
image/png
|
Details | |
162.76 KB,
image/png
|
Details | |
31.15 KB,
image/jpeg
|
Details | |
4.38 KB,
patch
|
johannh
:
review+
ritu
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
2.64 KB,
patch
|
dao
:
review+
ritu
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
[Tracking Requested - why for this release]:
Visible regression that potentially worsens the Photon experience for a non-trivial amount of users.
I first saw this on https://www.reddit.com/r/firefox/comments/72xvh6/why_does_firefox_now_look_like_internet_explorer/
This user has the menu bar enabled and an accessibility indicator turned on. The accessibility indicator takes up too much vertical space, which makes the tabs toolbar look way too large. This obviously also happens with the private browsing indicator.
Windows 10 also seems affected, but the added space is much smaller and I think we could live with that.
I attached some screenshots of my own.
It's hard to say, really, but I think this could affect a non-trivial amount of users. Windows 7 is 46% of our user base and anecdotally I believe that a lot of them have the menu bar enabled. Would be nice to know.
Yura, can you take a look at this please?
Flags: qe-verify+
Flags: needinfo?(yzenevich)
Reporter | ||
Updated•7 years ago
|
OS: Unspecified → Windows
Reporter | ||
Comment 1•7 years ago
|
||
Reporter | ||
Comment 2•7 years ago
|
||
Reporter | ||
Updated•7 years ago
|
Attachment #8913116 -
Attachment description: Screen Shot 2017-09-28 at 10.57.42.png → Windows 7 - Private Browsing
Reporter | ||
Updated•7 years ago
|
Attachment #8913117 -
Attachment description: Screen Shot 2017-09-28 at 10.58.11.png → Windows 7 - No indicator
Updated•7 years ago
|
Summary: Private Browsing/Accessibility indicator makes the tabs toolbar too large when the menu bar is enabled → Private Browsing/Accessibility indicator makes the menu toolbar too large
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → yzenevich
Status: NEW → ASSIGNED
Flags: needinfo?(yzenevich)
Comment 3•7 years ago
|
||
Tracked for 57 since it's a new regression.
Comment 5•7 years ago
|
||
Be careful about tab bar overflow, the '+' button usually sits right where that icon is moving to.
Assignee | ||
Comment 6•7 years ago
|
||
I added a comment in the CSS for visibility rules to make it clearer what is visible in what conditions.
Attachment #8914878 -
Flags: review?(jhofmann)
Assignee | ||
Comment 7•7 years ago
|
||
Comment 8•7 years ago
|
||
Comment on attachment 8914878 [details] [diff] [review]
1403867 patch v1
>+ if (toolbar.id == "toolbar-menubar" && AppConstants.platform == "win") {
>+ document.documentElement.setAttribute("menubarautohide", !isVisible);
I don't understand what this is good for. It seems to me that at this point, the indicator should just always be part of the tab strip.
Reporter | ||
Comment 9•7 years ago
|
||
Comment on attachment 8914878 [details] [diff] [review]
1403867 patch v1
Review of attachment 8914878 [details] [diff] [review]:
-----------------------------------------------------------------
I would agree with dao. At this point, can't we just always show the indicators in the tab strip? It looks like that would simplify our code a lot.
Attachment #8914878 -
Flags: review?(jhofmann)
Assignee | ||
Comment 10•7 years ago
|
||
Makes sense will try this approach tomorrow (PTO today)
Assignee | ||
Comment 11•7 years ago
|
||
Attachment #8914878 -
Attachment is obsolete: true
Attachment #8915643 -
Flags: review?(jhofmann)
Comment 12•7 years ago
|
||
Comment on attachment 8915643 [details] [diff] [review]
1403867 v2
>+:root[sizemode="normal"][chromehidden~="menubar"] #toolbar-menubar ~ #TabsToolbar :-moz-any(.private-browsing-indicator, .accessibility-indicator),
>+:root[sizemode="normal"] #toolbar-menubar[autohide="true"][inactive] ~ #TabsToolbar :-moz-any(.private-browsing-indicator, .accessibility-indicator) {
>+ margin-top: calc(-1 * var(--space-above-tabbar));
>+}
What's the point of this? Shouldn't the indicators be aligned with the tabs regardless of --space-above-tabbar? Why would you move them up into what supposed to be extra window drag space?
Assignee | ||
Comment 13•7 years ago
|
||
I'd say they should align with window buttons. ni'ing Amy for this.
Flags: needinfo?(amlee)
Comment 14•7 years ago
|
||
(In reply to Yura Zenevich [:yzen] from comment #13)
> I'd say they should align with window buttons. ni'ing Amy for this.
Hi,
Agreed, they should be vertically center aligned with the buttons.
Flags: needinfo?(amlee)
Assignee | ||
Comment 15•7 years ago
|
||
(In reply to Yura Zenevich [:yzen] from comment #13)
> I'd say they should align with window buttons. ni'ing Amy for this.
Just to expand a little bit: the indicators are grouped with window buttons (separated by the drag space from tabs) visually so that's why I did that.
Updated•7 years ago
|
Priority: -- → P1
Reporter | ||
Comment 16•7 years ago
|
||
Comment on attachment 8915643 [details] [diff] [review]
1403867 v2
Review of attachment 8915643 [details] [diff] [review]:
-----------------------------------------------------------------
Seems good to me, thank you.
Attachment #8915643 -
Flags: review?(jhofmann) → review+
Comment 17•7 years ago
|
||
Pushed by yura.zenevich@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/c6c355f7633a
fixing positioning of indicators when menubar persists. r=johannh
Assignee | ||
Comment 18•7 years ago
|
||
Comment on attachment 8915643 [details] [diff] [review]
1403867 v2
This fixes incorrect titlebar sizing when menu bar persists. It also simplifies dramatically the logic around indicator positioning between titlebar and tabbbar (see screenshots).
[Feature/Bug causing the regression]: bug 1383051
[User impact if declined]: Windows users with menubars enabled will see too much vertical drag space, especially on Win7.
[Is this code covered by automated tests?]: No markup and css changes only.
[Has the fix been verified in Nightly?]: not yet
[Needs manual test from QE? If yes, steps to reproduce]: Maybe, making sure that extra space visible in screenshots is not there any more.
[List of other uplifts needed for the feature/fix]: none
[Is the change risky?]: not really, CSS/markup change that actually simplifies things.
[Why is the change risky/not risky?]: n/a
[String changes made/needed]: none
Attachment #8915643 -
Flags: approval-mozilla-beta?
Comment 19•7 years ago
|
||
Comment on attachment 8915643 [details] [diff] [review]
1403867 v2
Cancelling approval request, as there are a couple of problems with this patch...
>+:root[sizemode="normal"][chromehidden~="menubar"] #toolbar-menubar ~ #TabsToolbar :-moz-any(.private-browsing-indicator, .accessibility-indicator),
>+:root[sizemode="normal"] #toolbar-menubar[autohide="true"][inactive] ~ #TabsToolbar :-moz-any(.private-browsing-indicator, .accessibility-indicator) {
Why is there "#toolbar-menubar ~ " in the first selector?
Also, if I remember correctly, for perf reasons :-moz-any shouldn't be used without another qualifying id/class/element selector at the end of a selector chain.
>+:root .private-browsing-indicator {
What is :root doing here?
Attachment #8915643 -
Flags: approval-mozilla-beta?
Assignee | ||
Comment 20•7 years ago
|
||
(In reply to Dão Gottwald [::dao] from comment #19)
> Comment on attachment 8915643 [details] [diff] [review]
> 1403867 v2
>
> Cancelling approval request, as there are a couple of problems with this
> patch...
>
> >+:root[sizemode="normal"][chromehidden~="menubar"] #toolbar-menubar ~ #TabsToolbar :-moz-any(.private-browsing-indicator, .accessibility-indicator),
> >+:root[sizemode="normal"] #toolbar-menubar[autohide="true"][inactive] ~ #TabsToolbar :-moz-any(.private-browsing-indicator, .accessibility-indicator) {
>
> Why is there "#toolbar-menubar ~ " in the first selector?
To compensate for this styling: https://dxr.mozilla.org/mozilla-central/source/browser/themes/windows/browser.css#80-91
>
> Also, if I remember correctly, for perf reasons :-moz-any shouldn't be used
> without another qualifying id/class/element selector at the end of a
> selector chain.
I can split these in individual ones.
>
> >+:root .private-browsing-indicator {
>
> What is :root doing here?
Good catch.
Comment 21•7 years ago
|
||
(In reply to Yura Zenevich [:yzen] from comment #20)
> > >+:root[sizemode="normal"][chromehidden~="menubar"] #toolbar-menubar ~ #TabsToolbar :-moz-any(.private-browsing-indicator, .accessibility-indicator),
> > >+:root[sizemode="normal"] #toolbar-menubar[autohide="true"][inactive] ~ #TabsToolbar :-moz-any(.private-browsing-indicator, .accessibility-indicator) {
> >
> > Why is there "#toolbar-menubar ~ " in the first selector?
>
> To compensate for this styling:
> https://dxr.mozilla.org/mozilla-central/source/browser/themes/windows/
> browser.css#80-91
Okay, leave this as is then and we can clean it up in a followup.
Assignee | ||
Comment 22•7 years ago
|
||
follow up with selector clean up
Attachment #8916019 -
Flags: review?(dao+bmo)
Comment 23•7 years ago
|
||
Comment on attachment 8916019 [details] [diff] [review]
1403867 follow up
>-:root[sizemode="normal"][chromehidden~="menubar"] #toolbar-menubar ~ #TabsToolbar :-moz-any(.private-browsing-indicator, .accessibility-indicator),
>+:root[sizemode="normal"][chromehidden~="menubar"] #toolbar-menubar ~ #TabsToolbar > .private-browsing-indicator,
Yep, this should also use the child selector. Well spotted.
Attachment #8916019 -
Flags: review?(dao+bmo) → review+
Comment 24•7 years ago
|
||
Pushed by yura.zenevich@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/e0b45659c519
clean up indicator selector rules. r=dao
Assignee | ||
Comment 25•7 years ago
|
||
Comment on attachment 8915643 [details] [diff] [review]
1403867 v2
This fixes incorrect titlebar sizing when menu bar persists. It also simplifies dramatically the logic around indicator positioning between titlebar and tabbbar (see screenshots).
[Feature/Bug causing the regression]: bug 1383051
[User impact if declined]: Windows users with menubars enabled will see too much vertical drag space, especially on Win7.
[Is this code covered by automated tests?]: No markup and css changes only.
[Has the fix been verified in Nightly?]: not yet
[Needs manual test from QE? If yes, steps to reproduce]: Maybe, making sure that extra space visible in screenshots is not there any more.
[List of other uplifts needed for the feature/fix]: none
[Is the change risky?]: not really, CSS/markup change that actually simplifies things.
[Why is the change risky/not risky?]: n/a
[String changes made/needed]: none
Attachment #8915643 -
Flags: approval-mozilla-beta?
Assignee | ||
Comment 26•7 years ago
|
||
Comment on attachment 8916019 [details] [diff] [review]
1403867 follow up
This is a follow up of the main bug. See comment 25
Attachment #8916019 -
Flags: approval-mozilla-beta?
Comment 27•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/c6c355f7633a
https://hg.mozilla.org/mozilla-central/rev/e0b45659c519
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 58
Updated•7 years ago
|
status-firefox-esr52:
--- → unaffected
Comment 28•7 years ago
|
||
I verified this issue using Nightly 58.0a1 and Firefox Beta 57.0b5 with Build ID 20171008220130 on Windows 10 x64, Windows 7 x32, Ubuntu 17.04
I will mark this as verified fixed.
Comment on attachment 8915643 [details] [diff] [review]
1403867 v2
Photon related (I guess), Beta57+
Attachment #8915643 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Attachment #8916019 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Comment 30•7 years ago
|
||
bugherder uplift |
Comment 31•7 years ago
|
||
I have reproduced this issue using Firefox 58.0a1 (2017.09.28) on Win 7 x86.
I can confirm this issue is fixed, I verified using Firefox 57.0b13 on Win 7 x86, Win 10 x64 and Win 8.1 x64.
You need to log in
before you can comment on or make changes to this bug.
Description
•