Open Bug 1665378 Opened 4 years ago Updated 4 years ago

HTML attribute for first visible tab is not updated correctly in GUI

Categories

(Firefox :: Tabbed Browser, defect)

80 Branch
defect

Tracking

()

UNCONFIRMED

People

(Reporter: thomas.werner, Unassigned, NeedInfo)

Details

(Keywords: steps-wanted)

Attachments

(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:82.0) Gecko/20100101 Firefox/82.0

Steps to reproduce:

Create a new window, create a second tab and close the first tab.

Actual results:

The first tab becomes "hidden" but keeps the HTML attribute first-visible-tab="true".

Expected results:

Second tab should become first-visible-tab="true" set.

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → Tabbed Browser

Closing the first tab should remove it from the document. How did you end up with it being hidden instead?

Flags: needinfo?(thomas.werner)
Keywords: steps-wanted

I do not know the coded algorithm when a tab is removed or just hidden. But i guess by default tabs made hidden that they can restored by clicking "Undo Close Tab" in the context menu, before they will be removed. But i am not sure. Anyway if the tab made hidden, seems that "first-visible-tab" is not updated correctly.

Flags: needinfo?(thomas.werner)

(In reply to Thomas Werner from comment #3)

I do not know the coded algorithm when a tab is removed or just hidden. But i guess by default tabs made hidden that they can restored by clicking "Undo Close Tab" in the context menu, before they will be removed.

That's not the case.

Anyway if the tab made hidden, seems that "first-visible-tab" is not updated correctly.

It should be. Can you reproduce the bug with a new user profile?

Flags: needinfo?(thomas.werner)

With a new profile i cannot reproduce this issue anymore, because the node for tab is now removed immediately (not hidden anymore). Thats why i cannot say if the issue still exists when the tab becomes hidden.

Flags: needinfo?(thomas.werner)

Would you mind attaching your about:support info for the broken profile?

Flags: needinfo?(thomas.werner)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: