Error when trying to place an SPOC topsite to the last spot with a new browser profile
Categories
(Firefox :: New Tab Page, defect)
Tracking
()
People
(Reporter: nanj, Assigned: nanj)
References
Details
Attachments
(1 file, 1 obsolete file)
48 bytes,
text/x-phabricator-request
|
diannaS
:
approval-mozilla-beta+
|
Details | Review |
With a new browser profile, when setting spoc-topsite-positions
to 7
, seeing the following error message:
JavaScript error: resource://activity-stream/lib/TopSitesFeed.jsm, line 928: TypeError: can't access property "show_sponsored_label", withPinned[index] is undefined
Offhand I think it's because we only have 7 organic tiles (i.e. default tiles), but it wanted to access withPinned[7]
which would be undefined. We will need to consider those empty slots when injecting spoc tiles to the topsites array.
Assignee | ||
Updated•1 year ago
|
Assignee | ||
Comment 2•1 year ago
|
||
Assignee | ||
Comment 3•1 year ago
|
||
[Tracking Requested - why for this release]: this is a bugfix for a feature agains which we're going to run an experiment in release 112.
Updated•1 year ago
|
Assignee | ||
Comment 4•1 year ago
|
||
Updated•1 year ago
|
Pushed by najiang@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/77bb7e3dc44c Fix an edge case for spoc topsites injection r=thecount
Comment 6•1 year ago
|
||
bugherder |
Assignee | ||
Comment 7•1 year ago
|
||
Comment on attachment 9324098 [details]
Bug 1822604 - Fix an edge case for spoc topsites injection r=thecount
Beta/Release Uplift Approval Request
- User impact if declined: The experiment user group will not be able to dismiss certain topsites as expected
- Is this code covered by automated tests?: Yes
- Has the fix been verified in Nightly?: Yes
- Needs manual test from QE?: Yes
- If yes, steps to reproduce: Please reference STR of Bug 1822347
- List of other uplifts needed: Bug 1822027
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): This patch would only apply to some experiment users, we can turn off the experiment through Nimbus if needed.
- String changes made/needed: None
- Is Android affected?: No
Assignee | ||
Updated•1 year ago
|
Assignee | ||
Comment 8•1 year ago
|
||
Hi Carmen, could you also verify this fix using this STR? Thanks!
Updated•1 year ago
|
Comment 9•1 year ago
|
||
I have verified this issue on the latest Firefox Nightly 113.0a1 (Build ID: 20230321213816), on Windows 10 x64, macOS 12.6.1, and Ubuntu 20.04 x64.
- I used the STR from Bug 1822347 and can confirm that all the non-sponsored tiles can be dismissed correctly.
- I also verified that the dismissed tiles are not re-displayed at browser restart and in New Windows and new tabs.
Comment 10•1 year ago
|
||
Comment on attachment 9324098 [details]
Bug 1822604 - Fix an edge case for spoc topsites injection r=thecount
Approved for 112.0b6
Comment 11•1 year ago
|
||
bugherder uplift |
Comment 12•1 year ago
|
||
I have verified this issue on the latest Firefox Beta 112.0b6 (Build ID: 20230323181038), on Windows 10 x64, macOS 12.6.1, and Ubuntu 20.04 x64.
- I used the STR from Bug 1822347 and can confirm that all the non-sponsored tiles can be dismissed correctly.
- I also verified that the dismissed tiles are not re-displayed at browser restart and in New Windows and new tabs.
Description
•