Closed
Bug 2051628
Opened 15 days ago
Closed 6 days ago
[Intermittent] The sponsored tiles and the Add Shortcut button look like they reload when pinning and unpinning shortcuts
Categories
(Firefox :: New Tab Page, defect)
Tracking
()
RESOLVED
FIXED
154 Branch
| Tracking | Status | |
|---|---|---|
| firefox154 | --- | fixed |
People
(Reporter: cfat, Assigned: thecount)
References
(Blocks 1 open bug)
Details
(Whiteboard: [hnt])
Attachments
(2 files)
[Affected versions]:
- Firefox Nightly 154.0a1 (Build ID: 20260629214814)
[Affected Platforms]:
- Windows 11 x64
- macOS 15.7.4
- Ubuntu 24.04 x64
[Prerequisites]:
- Have Firefox Nightly 154 installed on your machine.
- Make sure the following pres are set in about:config:
->browser.nova.enabled = true
->browser.newtabpage.activity-stream.nova.enabled = true
->browser.newtabpage.activity-stream.topSitesGroupedPins = true - Have Sponsored and non-Sponsored tiles displayed.
[Steps to reproduce]:
- Open the browser with the profile from the prerequisites.
- Open a new tab and click the “...” menu of a non-sponsored tile.
- Click the “Pin” option.
- Observe the Sponsored tiles and the “Add Shortcut” button.
[Expected result]:
- Nothing happens; pinning/unpinning tiles doesn’t influence the Sponsored tiles UI/behavior.
[Actual result]:
- The Sponsored tiles look like they reload.
[Notes]:
- Attached is a screen recording of the issue.
- I did not reproduce the issue with the
browser.newtabpage.activity-stream.topSitesGroupedPinspref set to false.
| Assignee | ||
Comment 1•14 days ago
|
||
I wasn't able to test this initially, it only happens when the first pin is pinned, or only 1 pin is unpinned.
This causes the wrapper to toggle between 0 pin and 1+ pin wrappers, which is causing react to remount the whole subtree because it's no longer the same.
The solution is to ensure the subtree doesn't change when going between 0 pin and 1+ pin containers, by making them just 1 container.
| Assignee | ||
Comment 2•14 days ago
|
||
Updated•14 days ago
|
Assignee: nobody → sdowne
Status: NEW → ASSIGNED
| Assignee | ||
Updated•7 days ago
|
Whiteboard: [hnt]
| Assignee | ||
Updated•7 days ago
|
Whiteboard: [hnt]
| Assignee | ||
Updated•7 days ago
|
Whiteboard: [hnt]
| Assignee | ||
Updated•7 days ago
|
Whiteboard: [hnt]
| Assignee | ||
Updated•7 days ago
|
Whiteboard: [hnt]
| Assignee | ||
Updated•7 days ago
|
Pushed by sdowne@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/81e056093c56
https://hg.mozilla.org/integration/autoland/rev/a4fc58048866
Newtab fixing mounting react wrapper for shortcuts r=ini
Status: ASSIGNED → RESOLVED
Closed: 6 days ago
Resolution: --- → FIXED
Target Milestone: --- → 154 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•