Closed Bug 1997925 Opened 6 months ago Closed 1 month ago

The notification dot is not displayed if the tab is in a Split View

Categories

(Firefox :: Tabbed Browser: Split View, defect, P3)

Desktop
All
defect

Tracking

()

RESOLVED FIXED
151 Branch
Tracking Status
firefox146 --- disabled
firefox151 --- fixed

People

(Reporter: atrif, Assigned: iwehjohn, Mentored)

References

(Blocks 1 open bug)

Details

(Keywords: good-next-bug, Whiteboard: [fidefe-splitview][outreachy-sidebar-2026])

Attachments

(2 files, 1 obsolete file)

Attached image split_notification.gif

Found in

  • 146.0a1 (2025-11-02)

Affected versions

  • 146.0a1 (2025-11-02)

Tested platforms

  • Affected platforms: Ubuntu 24, Windows 11, macOS 26
  • Unaffected platforms: none

Preconditions

  • split view enabled
  • vertical tabs enabled
  • sidebar is collapsed

Steps to reproduce

  1. Create a Split View and in one view log in to Gmail.
  2. Send an email to the address from comment 1.

Expected result

  • The notification dot is displayed.

Actual result

  • The notification dot is not displayed if the tab is in a Split View.

Regression range

  • New feature. Happens after bug 1986946 implementation.

Additional notes

  • Attached a screen recording.
Severity: -- → S4
Priority: -- → P3
Component: Tabbed Browser → Tabbed Browser: Split View
Duplicate of this bug: 2011336

In horizontal tabs the notification dot is covered by the tab favicon.

Summary: The notification dot is not displayed if the tab is in a Split View in vertical collapsed mode → The notification dot is not displayed if the tab is in a Split View

I am interested the project, I I be assigned to the project?

Flags: needinfo?(sclements)

I am interested in fixing the bug, Can I be assigned to it?

Yes, I'll assign it to you John

Assignee: nobody → iwehjohn
Status: NEW → ASSIGNED
Whiteboard: [fidefe-splitview] → [fidefe-splitview][outreachy-sidebar-2026]

I investigated this bug and found the root cause. In tabbrowser.js, there is a check at line 8640 that reads if (!tabForEvent || tabForEvent.selected) which causes an early return before the attention attribute is ever set on the tab. The problem is that in Split View, the Gmail tab has selected="true" on it since it is actively displayed, so this check always bails out early and the notification dot never appears.

The fix involved two changes. First, in tabbrowser.js I updated the condition to skip the early return when the tab is inside a tab-split-view-wrapper, so that split view tabs can now correctly receive the attention attribute. Second, in tabs.css I added a new selector to ensure the notification dot is rendered for split view tabs even when they carry the selected attribute.

The dot is now showing correctly in the collapsed vertical sidebar for split view tabs. The exact pixel positioning of the dot relative to the favicon may need a small follow-up tweak, but the core bug is fixed.

https://phabricator.services.mozilla.com/D289684

Assign this to me. here is my patch https://phabricator.services.mozilla.com/D289684

I did fix the the bug of not showing the notification dot. here is my patch https://phabricator.services.mozilla.com/D289747

Flags: needinfo?(sclements)

:japandi, this bug was already assigned to John. Please abandon any related revisions and keep an eye out for any new bugs we share in the Sidebar matrix channel.

Flags: needinfo?(chimaifeanyi29)
Attachment #9557772 - Attachment is obsolete: true
Flags: needinfo?(chimaifeanyi29)

I made an update to the patch, please review it https://phabricator.services.mozilla.com/D289747

Flags: needinfo?(kcochrane)
Flags: needinfo?(kcochrane)
Pushed by nsharpley@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/99d778090c0f https://hg.mozilla.org/integration/autoland/rev/321af3942875 fixed notification dot to show on tabs split view r=desktop-theme-reviewers,tabbrowser-reviewers,nsharpley,kcochrane
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 151 Branch
Mentor: nsharpley
QA Whiteboard: [qa-found-in-c146] [S4][QA-4411] → [qa-found-in-c146] [S4][QA-4411] [qa-triage-done-c152/b151] [qa-ver-needed-c152/b151]
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: