Closed Bug 851436 Opened 11 years ago Closed 11 years ago

pinned tabs sometimes scroll with normal tabs

Categories

(Firefox :: Tabbed Browser, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 22
Tracking Status
firefox21 + verified
firefox22 + verified

People

(Reporter: Optimizer, Assigned: fryn)

References

Details

(Keywords: regression, verifyme)

Attachments

(1 file)

possibly a regression by bug 837486

STR

1) Have atleast one pinned tab and as many tabs to cause overflow
2) Pin the first unpinned tab on left.
3) Pine another.
4) Viola, overflow arrows jump to left of pinned tabs, and thus pinned tabs can go out of view.
I cannot reproduce this.
I am on windows 7 latest nightly.
I can't reproduce it with the given STR and couldn't come up with another but I swear I just saw this too (on Linux x64).
OS: Windows 7 → All
Hardware: x86_64 → All
okay here are some STR that I can reproduce everytime:

1) Use 1600 X 900 resolution, everything else default firefox nightly windows 7 aero.
2) On the title bar, have the panorama and the downloads button on the extreme right.
3) Have 2 pinned tabs, and 3 normal tabs.
4) Now keep on opening new tabs by hitting Ctrl T until there are 14 non-pinned tabs (making a total of 16 tabs)
5) Scroll the overflowed tabstrip so that the first non-pinned tab is visible.
6) right click on first tab and pin it.
7) Now without changing the position of the overflowed strip, right click on the first visible tab and pin it.
8) Repeat step 7 and you will see the bug.

I will attach screencast soon.
screencast link : http://youtu.be/Mr5GKucPc3I

will be live in around 10 minutes.
Thanks for the bug report! While we'd accept a low risk uplift of this issue (if found), it doesn't seem like the user impact is critical enough to track for release.
This is basically means that pinned tabs aren't pinned (i.e. always visible) anymore. That's significant breakage.
Summary: overflow arrows appear left to pinned tabs → pinned tabs sometimes scroll with normal tabs
Ah, I can reproduce it now, but it's only triggered by a very narrow combination of pinned tabs, normal tabs, and tab strip widths. I'll fix it.
Assignee: nobody → fyan
Status: NEW → ASSIGNED
Given bug 821859 comment 22, I think we should just fix this by backing out the fixes for bug 837486, bug 649654, and bug 821859 in that order. I don't think it's worth all this trouble to try to keep the tab close button under the cursor in overflow mode anymore.

What are your thoughts, Dão?
I just wrote a reply: bug 821859 comment 23.
Flags: needinfo?(dao)
Sounds good to me. If someone wants to give bug 649654 another shot later on, avoiding the problems it caused the first time, that's of course always an option.
Flags: needinfo?(dao)
Is this bug really difficult to solve ?
(In reply to Dão Gottwald [:dao] from comment #11)

Thank you for the quick reply.

> If someone wants to give bug 649654 another shot later
> on, avoiding the problems it caused the first time, that's of course always
> an option.

Absolutely. I'll copy this comment over to that bug when backing its fix out and reopening it.

(In reply to Girish Sharma [:Optimizer] from comment #12)
> Is this bug really difficult to solve ?

This comment is entirely unhelpful. If you have a quick fix for bug 649654 without using bug 821859 and without causing bug 837486 and this bug, patches are welcome.
Attachment #725921 - Flags: review?(dao)
Blocks: 851862
I was asking the complexity of the bug. It was a question as I had no idea on the complexity and this bug leading to a back-out of 3 bugs seemed a big deal to me. If It felt personal in any way, then I am really sorry.
(In reply to Girish Sharma [:Optimizer] from comment #14)

This bug alone is tricky to solve, because it touches upon the fragility of our tab strip's transition between underflow and overflow states in <xul:scrollbox/>, partially due to the tab strip's scrollable items taking a larger total width (due to the new tab button, etc.) in the underflow state. I would rather not attempt a fix that would have to be back-ported to aurora (like the previous fix for bug 837486), only to have to cause yet another regression.

As I wrote above, the problem that really led me to want to back all this out is dbaron's bug 821859 comment 22, which I didn't know was a problem until he noted it.
Attachment #725921 - Flags: review?(dao) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/7fbba1340a23
Keywords: steps-wanted
Target Milestone: --- → Firefox 22
https://hg.mozilla.org/mozilla-central/rev/7fbba1340a23
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Comment on attachment 725921 [details] [diff] [review]
patch: just back out patches for bug 837486, bug 649654, and bug 821859

[Approval Request Comment]
Bug caused by: the landing of bug 837486, bug 649654, and bug 821859
User impact if declined: visual glitches in primary UI and potentially performance and memory regressions
Testing completed: landed cleanly on mozilla-central 
Risk to taking this patch: very minimal; the patch simply backs out the patches to those three bugs, reverting the tab strip overflow code to Firefox pre-21 state
String or UUID changes made by this patch: none

To clarify, this patch is a "roll-up patch" containing all three relevant and necessary backouts in one.
Attachment #725921 - Flags: approval-mozilla-aurora?
(In reply to Frank Yan (:fryn) from comment #18)
> Comment on attachment 725921 [details] [diff] [review]
> patch: just back out patches for bug 837486, bug 649654, and bug 821859
> 
> [Approval Request Comment]
> Bug caused by: the landing of bug 837486, bug 649654, and bug 821859
> User impact if declined: visual glitches in primary UI and potentially
> performance and memory regressions
> Testing completed: landed cleanly on mozilla-central 
> Risk to taking this patch: very minimal; the patch simply backs out the
> patches to those three bugs, reverting the tab strip overflow code to
> Firefox pre-21 state
> String or UUID changes made by this patch: none
> 
> To clarify, this patch is a "roll-up patch" containing all three relevant
> and necessary backouts in one.

Thanks for the one roll-up patch. Keeping in mind comment# 15 , backout is safe & worthwhile here . Approving the backout patch for uplift on aurora.
Attachment #725921 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Keywords: verifyme
Mozilla/5.0 (X11; Linux i686; rv:21.0) Gecko/20100101 Firefox/21.0
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:21.0) Gecko/20100101 Firefox/21.0
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:21.0) Gecko/20100101 Firefox/21.0

Verified as fixed using STR provided on comment 4 on Firefox 21 beta 1 (buildID: 20130401192816).
Verified fixed with Firefox 22 beta 1 (build ID: 20130514181517) on Mac OSX 10.8.3, Ubuntu 12.10 32bit and Windows 7 64bit.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: