VOOZH about

URL: https://phabricator.services.mozilla.com/D297032

⇱ ⚙ D297032 Bug 2018762 - Newtab updating shortcuts pin behaviour


Bug 2018762 - Newtab updating shortcuts pin behaviour
Needs ReviewPublic

Authored by thecount on Apr 28 2026, 3:06 PM.
Tags
None
Referenced Files
F72937288: D297032.1781811514.diff
Wed, Jun 17, 7:38 PM
F72922868: D297032.1781794467.diff
Wed, Jun 17, 2:54 PM
F72922659: D297032.1781794265.diff
Wed, Jun 17, 2:51 PM
Unknown Object (File)
Tue, Jun 16, 6:09 AM
Unknown Object (File)
Tue, Jun 2, 2:12 PM
Unknown Object (File)
Tue, Jun 2, 1:32 PM
Unknown Object (File)
Tue, Jun 2, 9:28 AM
Unknown Object (File)
Tue, Jun 2, 8:11 AM

Details

Reviewers
bolsson
ini
Group Reviewers
desktop-theme-reviewers
Restricted Project
Bugzilla Bug ID
2018762

Diff Detail

Repository
rFIREFOXAUTOLAND firefox-autoland
Branch
HEAD

Event Timeline

thecount created this revision.
phab-bot changed the visibility from "Custom Policy" to "Public (No Login Required)".Apr 28 2026, 3:06 PM
phab-bot changed the edit policy from "Custom Policy" to "Restricted Project (Project)".
phab-bot removed a project: secure-revision.
Comment Actions

Code analysis found 1 defect in diff 1260522:

  • 1 defect found by eslint (Mozlint)
IMPORTANT: Found 1 defect (error level) that must be fixed before landing.

You can run this analysis locally with:


If you see a problem in this automated review, please report it here.

You can view these defects in the Diff Detail section of Phabricator diff 1260522.

thecount updated this revision to Diff 1265597.
thecount retitled this revision from WIP: Bug 2018762 - Newtab updating shortcuts pin behaviour to Bug 2018762 - Newtab updating shortcuts pin behaviour.
thecount updated this revision to Diff 1280309.
thecount retitled this revision from Bug 2018762 - Newtab updating shortcuts pin behaviour to WIP: Bug 2018762 - Newtab updating shortcuts pin behaviour.
Comment Actions

Code analysis found 7 defects in diff 1292511:

  • 2 defects found by stylelint (Mozlint)
  • 5 defects found by eslint (Mozlint)
IMPORTANT: Found 7 defects (error level) that must be fixed before landing.

You can run this analysis locally with:


If you see a problem in this automated review, please report it here.

You can view these defects in the Diff Detail section of Phabricator diff 1292511.

thecount updated this revision to Diff 1298356.
thecount retitled this revision from WIP: Bug 2018762 - Newtab updating shortcuts pin behaviour to Bug 2018762 - Newtab updating shortcuts pin behaviour.
Comment Actions

A few visual nits:

  • I think the dragging shortcut is meant to be 75x75 (hover size)
  • Blank placeholder still needs to be implemented (this should be 64x64)

Functionality open questions:

  • Are we letting users drag outside of the pinned area to unpin? This is specified in the Figma. I imagine it would do the same thing as unpinning from the context menu (restore the shortcut to frecency position).
  • Before we enable this feature, we still need to work out the drag and drop behaviour when no pinned shortcuts exist yet. Otherwise, it's inaccessible to new users unless they pin something first from the context menu.
browser/extensions/newtab/content-src/components/TopSites/TopSite.jsx
41

nitpick: Let's make the rotation angle -7.5° to better match the Figma

1652

suggestion: use for consistency with tile

Comment Actions

This revision makes changes to files both inside and in files outside of it. The New Tab page for Firefox Desktop supports train-hopping — a mechanism that allows New Tab code to be deployed to Beta and Release channels independently of the standard release train. Cross-layer changes can break train-hop compatibility, which may block New Tab deployments until fixes reach Release through normal channels.

If your change modifies platform code that browser/extensions/newtab depends on (such as module URIs, DOM APIs, or Nimbus feature definitions), please check whether a compatibility shim is needed. Shims should be marked with a comment indicating the Firefox version that must reach Release before the shim can be removed.

If your change is unrelated to the New Tab page's train-hop compatibility (for example, it only touches tests or documentation), you can possibly disregard this message - but if you are unsure whether your change affects train-hop compatibility, please ensure that someone from the home-newtab-reviewers-rotation review group has a chance to review before landing.

Revision Contents

PathSize
browser/
extensions/
newtab/
content-src/
components/
TopSites/
615 lines
102 lines
css/
70 lines
nova/
70 lines
data/
content/
534 lines
lib/
11 lines
165 lines
test/
jest/
content-src/
components/
TopSites/
143 lines
locales/
en-US/
browser/
newtab/
4 lines
CommitTreeParentsAuthorSummaryDate
e5845b098f9d6f512dcd9515bd6e0031ae32scottdowne
Bug 2018762 - Newtab updating shortcuts pin behaviour (Show More…)
Apr 28 2026, 3:06 PM

Diff 1302844

browser/extensions/newtab/content-src/components/TopSites/TopSite.jsx

Loading...

browser/extensions/newtab/content-src/components/TopSites/_TopSites.scss

Loading...

browser/extensions/newtab/css/activity-stream.css

Loading...

browser/extensions/newtab/css/nova/activity-stream.css

Loading...

browser/extensions/newtab/data/content/activity-stream.bundle.js

Loading...

browser/extensions/newtab/lib/ActivityStream.sys.mjs

Loading...

browser/extensions/newtab/lib/TopSitesFeed.sys.mjs

Loading...

browser/extensions/newtab/test/jest/content-src/components/TopSites/TopSite.test.jsx

Loading...

browser/locales/en-US/browser/newtab/newtab.ftl

Loading...