Closed Bug 1570492 Opened 4 years ago Closed 4 years ago

browser.topSites.get({ newtab: true }) should prefer sites' labels to titles

Categories

(WebExtensions :: General, task, P1)

task
Points:
2

Tracking

(firefox69 fixed, firefox70 fixed)

RESOLVED FIXED
mozilla70
Iteration:
70.2 - Jul 22 - Aug 4
Tracking Status
firefox69 --- fixed
firefox70 --- fixed

People

(Reporter: adw, Assigned: adw)

References

Details

Attachments

(1 file)

Users can set custom titles for their top sites using the edit functionality of the newtab page. Custom titles are stored in the label property. browser.topSites.get({ newtab: true }) uses label for search shortcuts but not for other links. That means that the user's custom titles aren't reflected in the non-search-shortcut sites returned from get.

Blocks: 1547279
No longer blocks: 1568617
Depends on: 1568617
Pushed by dwillcoxon@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e4b8877a8838
Make browser.topSites.get({ newtab: true }) prefer sites' labels to titles. r=mixedpuppy
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla70
Flags: qe-verify-
Flags: in-testsuite+

Comment on attachment 9082095 [details]
Bug 1570492 - Make browser.topSites.get({ newtab: true }) prefer sites' labels to titles.

Beta/Release Uplift Approval Request

  • User impact if declined: This bug supports the top-sites experiment that the quantumbar/search team would like to conduct on 69.
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): This patch affects only the new newtab option that we recently added to the browser.topSites API and uplifted in bug 1568617. It doesn't affect any existing browser.topSites API consumers/extensions.
  • String changes made/needed: None
Attachment #9082095 - Flags: approval-mozilla-beta?

Comment on attachment 9082095 [details]
Bug 1570492 - Make browser.topSites.get({ newtab: true }) prefer sites' labels to titles.

Looks like this is low risk, approved for 69 beta 12, thanks.

Attachment #9082095 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
You need to log in before you can comment on or make changes to this bug.