Closed Bug 789007 Opened 12 years ago Closed 12 years ago

Unwanted border between pinned tabs and navigation toolbar when tabstrip overflows

Categories

(Firefox :: Theme, defect)

All
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 18
Tracking Status
firefox16 + unaffected
firefox17 + verified

People

(Reporter: ttaubert, Assigned: dao)

References

Details

(Keywords: regression)

Attachments

(1 file, 4 obsolete files)

About two weeks ago something landed that causes my Ubuntu build to have a border that visually separates pinned tabs from the navigation toolbar:

http://imgur.com/aGg7W

This happens only when toolbar overflows. The regression range is:

http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=8c85c83068e7&tochange=c676b554c7bb

Trying to narrow it down further.
(In reply to Tim Taubert [:ttaubert] from comment #0)
> This happens only when toolbar overflows. The regression range is:

Sorry, I mean it happens only when the tabstrip overflows.

This does not happen on Mac or Windows.
Caused by bug 776265.
Blocks: 776265
Adding some people from bug 776265 that hopefully can help investigating this regression.
Bug 776265 was uplifted to 16 so let's look at getting a fix for this or backing bug 776265 out of Beta.
I think bug 776265 / bug 785754 fixed some bug that the tab strip styles
depended on.  I can't reproduce the bug myself (on KDE, OSX), so it's hard
to say.  I would suggest playing around with the styles
(browser/themes/gnomestripe/browser.css is it?), especially anything with
min-/max-height.  This one looks like a candidate:

#tabbrowser-tabs[positionpinnedtabs] > .tabbrowser-tab[pinned] {
  min-height: 18px; /* corresponds to the max. height of non-textual tab contents, i.e. the tab close button */
}
(In reply to Mats Palmgren [:mats] from comment #5)
> I think bug 776265 / bug 785754 fixed some bug that the tab strip styles
> depended on.

Please elaborate. What bug has been fixed that could affect pinned tabs?
Some classes didn't implement min-/max-height correctly when used in combination
with -moz-box-sizing:border-box.   The error was that the min-/max-height affected
the content-box height, not the border-box height.  I'm not sure exactly which XUL
elements were affected.  For some XUL elements there were also the opposite error,
they got the -moz-box-sizing:content-box case wrong, <xul:image> had this bug for
example.

That said, in this case it seems there is a regression if I'm not mistaken.
Testcase coming up...
Attached file Testcase #1 (obsolete) —
I would expect the 1st and 3rd boxes from the top to display the same.
(they do in Fx15)
Component: Tabbed Browser → Layout
Keywords: testcase
OS: Linux → All
Product: Firefox → Core
Hardware: x86_64 → All
Version: Trunk → unspecified
Attached file Testcase #3 (obsolete) —
Attached patch fix (obsolete) — Splinter Review
Tim, does this patch fix the problem?
(In reply to Mats Palmgren [:mats] from comment #11)
> Tim, does this patch fix the problem?

No, the border is still there, unfortunately.
Attachment #659538 - Attachment is obsolete: true
OK, I spawned a separate bug for my patch, bug 789824.
Attachment #659477 - Attachment is obsolete: true
Attachment #659480 - Attachment is obsolete: true
Attachment #659537 - Attachment is obsolete: true
Attached patch patchSplinter Review
Seems like layout is behaving correctly here, given -moz-box-sizing:border-box.
Assignee: nobody → dao
Status: NEW → ASSIGNED
Attachment #659596 - Flags: review?(ttaubert)
Component: Layout → Theme
Keywords: testcase-wanted
Product: Core → Firefox
OS: All → Linux
Note that winstripe has a similar min-height, set to 16px. Theoretically it would need the same fix, assuming it needs the min-height in the first place, which I think was the case once, but seemingly isn't anymore... Which is good, because this minimum height should be implied by .tab-throbber and .tab-icon-image having a preset height of 16px.
(In reply to Dão Gottwald [:dao] from comment #15)
> Note that winstripe has a similar min-height, set to 16px. Theoretically it
> would need the same fix, assuming it needs the min-height in the first
> place, which I think was the case once, but seemingly isn't anymore... Which
> is good, because this minimum height should be implied by .tab-throbber and
> .tab-icon-image having a preset height of 16px.

filed bug 789833
Comment on attachment 659596 [details] [diff] [review]
patch

Review of attachment 659596 [details] [diff] [review]:
-----------------------------------------------------------------

That indeed seems like the right fix to me and it looks good. Thank you for investigating it!
Attachment #659596 - Flags: review?(ttaubert) → review+
https://hg.mozilla.org/mozilla-central/rev/cfa4b00ab701
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 18
Comment on attachment 659596 [details] [diff] [review]
patch

[Approval Request Comment]
Bug caused by (feature/regressing bug #): bug 776265
User impact if declined: visual glitch in primary UI
Testing completed (on m-c, etc.): manual on m-c
Risk to taking this patch (and alternatives if risky): low risk
String or UUID changes made by this patch: none
Attachment #659596 - Flags: approval-mozilla-beta?
Attachment #659596 - Flags: approval-mozilla-aurora?
Comment on attachment 659596 [details] [diff] [review]
patch

[Triage Comment]
Low risk fix for a FF16 regression. Approving for branches.
Attachment #659596 - Flags: approval-mozilla-beta?
Attachment #659596 - Flags: approval-mozilla-beta+
Attachment #659596 - Flags: approval-mozilla-aurora?
Attachment #659596 - Flags: approval-mozilla-aurora+
You meant "unaffected": the bug that caused this one was backed out too.
But maybe it should have stayed "fixed".  Who knows.  In any case, "affected" is wrong.
Keywords: verifyme
Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/17.0 Firefox/17.0

All looks good on the Ubuntu front (17 beta 1) with pinned tabs and normal tabs, no borders above the navigation toolbar.
Keywords: verifyme
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: