Closed Bug 1759221 Opened 4 years ago Closed 4 years ago

New tab animation origin point is above the tab to the left

Categories

(Firefox :: Tabbed Browser, defect, P2)

Firefox 98
defect

Tracking

()

VERIFIED FIXED
101 Branch
Tracking Status
firefox-esr91 --- unaffected
firefox98 --- wontfix
firefox99 --- wontfix
firefox100 --- verified
firefox101 --- verified

People

(Reporter: okazki98, Assigned: emilio)

References

(Regression)

Details

(Keywords: regression)

Attachments

(3 files, 1 obsolete file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:98.0) Gecko/20100101 Firefox/98.0

Steps to reproduce:

Open a new tab

Actual results:

The new tab starts to appear above the last tab. In other words, the new tab's origin is above the last existing tab's "X" (close button), and then moves to the right.
Recording of the described issue (recommended to put video on loop): https://youtu.be/CerxMZX1O-A

Expected results:

The new tab's origin point should be the "+" (open a new tab button).
I tested this in another browser, which is a fork of Firefox ESR, and the issue cannot be reproduced there.
Some comparison screenshots of new tab origin point between current Firefox v98, and ESR: https://drive.google.com/drive/folders/1WkmX36IGSDmsmSFSy8nQfmsKGwVw1mZN?usp=sharing

The Bugbug bot thinks this bug should belong to the 'Firefox::Tabbed Browser' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Tabbed Browser

The severity field is not set for this bug.
:dao, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(dao+bmo)

Setting this to NEW as I was able to reproduce it on the latest Nightly 100.0a1 and Firefox 98 on Windows 10 x64. While opening new tabs, it is noticeable that the new tab covers shortly the closing "X" button of the tab on the left.

I could not reproduce this issue on Firefox 91.7.1 esr, I'll look into a regression window as soon as possible.

Severity: -- → S4
Status: UNCONFIRMED → NEW
Ever confirmed: true
QA Whiteboard: [qa-regression-triage]

Narrowed regression window to:

Last good revision: 086074bf3060f2d150bf7818a1b388466e32ad25
First bad revision: 62f8cfde71230c04255e8a645786b808a791dabe

Pushlog:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=086074bf3060f2d150bf7818a1b388466e32ad25&tochange=62f8cfde71230c04255e8a645786b808a791dabe

Has Regression Range: --- → yes
QA Whiteboard: [qa-regression-triage]
Regressed by: 1751484

bug 1751484 removed a 25ms-long visibility CSS transition; it shouldn't have affected positioning in any way.

I would guess that this bug was present before bug 1751484 (i.e. the tabs were overlapping), but it wasn't perceptible because it was happening during the brief period in which the new tab had visibility:hidden (from the transition).

Should we reconsider bug 1751484? Could we hide only the favicon since that part is more obviously visible?

Flags: needinfo?(dao+bmo) → needinfo?(emilio)
Priority: -- → P2

I'd much rather fix the underlying issue which is that the fade-in animation doesn't really work as expected? In particular, we're transitioning from min-width: 0.01px to min-width: var(--tab-min-width), but the stack doesn't shrink so it overflows, this is easy to check tweaking a few rules with the inspector so that they match the animation start, screencast incoming.

In terms of what's the preferred approach, I'm not sure. We could make stuff really shrink. A bit easier, we could also have the tabs have overflow: clip, which would prevent the underlying stack from being visible when it overflows... Do you have thoughts on the preferred approach?

Flags: needinfo?(emilio) → needinfo?(dao+bmo)

Ah, I think I have a better approach, perhaps...

In practice the min-width is always seen because of the underlying stack
sizing. So make sure that the tab doesn't wrongly go under it so that
stuff doesn't overflow to the left.

This should preserve the feel of the animation, but the tab should start
correctly positioned.

Assignee: nobody → emilio
Status: NEW → ASSIGNED

Not sure what's better either, I'd have to try it out. Your current approach seems fine if we can get the closing animation fixed. Using overflow: clip seems to make sense too. I think I tried that with overflow: -moz-hidden-unscrollable years ago but it didn't work at the time.

Flags: needinfo?(dao+bmo)

So that overflowing content overflows always towards the end, rather
than getting centered.

Attachment #9271974 - Attachment is obsolete: true
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 101 Branch

The patch landed in nightly and beta is affected.
:emilio, is this bug important enough to require an uplift?
If not please set status_beta to wontfix.

For more information, please visit auto_nag documentation.

Flags: needinfo?(emilio)

Comment on attachment 9272126 [details]
Bug 1759221 - Use -moz-box-pack: start on tabs. r=dao

Beta/Release Uplift Approval Request

  • User impact if declined: Tab animations might look slightly off.
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce: comment 0
  • List of other uplifts needed: none
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Single-line CSS fix.
  • String changes made/needed: none
Flags: needinfo?(emilio)
Attachment #9272126 - Flags: approval-mozilla-beta?
Flags: qe-verify+

Comment on attachment 9272126 [details]
Bug 1759221 - Use -moz-box-pack: start on tabs. r=dao

Approved for 100.0b8

Attachment #9272126 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
QA Whiteboard: [qa-triaged]

I managed to reproduce this issue on Firefox 98.0(20220304153049) on Win10 64-bits. Confirmed as fixed on Firefox 100.0b8(20220419190903) and 101.0a1(20220419214607) on Win10 64-bits, macOS 11 and Ubuntu 20.04.

Status: RESOLVED → VERIFIED
QA Whiteboard: [qa-triaged]
Flags: qe-verify+
Regressions: 1769487
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: