Closed
Bug 1478755
Opened 6 years ago
Closed 6 years ago
Flash of recommended story in third tile while loading spoc
Categories
(Firefox :: New Tab Page, defect, P1)
Firefox
New Tab Page
Tracking
()
Tracking | Status | |
---|---|---|
firefox63 | --- | verified |
People
(Reporter: thecount, Assigned: thecount)
References
Details
Attachments
(3 files)
Found in https://bugzilla.mozilla.org/show_bug.cgi?id=1472292
See attachment to get an idea of the issue in action.
What happens is when the stories get fetched, the recs are inserted, then an event is fired to notify of an update https://github.com/mozilla/activity-stream/blob/master/lib/TopStoriesFeed.jsm#L101
When that's done a NEW_TAB_REHYDRATED even is fired which causes us to add the spoc: https://github.com/mozilla/activity-stream/blob/master/lib/TopStoriesFeed.jsm#L468
This is most likely causing the delay. It also looks like this is here to ensure that
1. spocs never delay a rec being shown because there is no guarantee a spoc is going to be added.
2. Waiting for recs to be done before inserting a spoc ensure a rec never loads on top of a spoc.
If we are to fire off adding spocs at the same time to start adding recs, we'll reduce the delay, but need to ensure if we are adding a rec in the third spot, we check to make sure a spoc isn't already there.
Assignee | ||
Updated•6 years ago
|
Assignee: nobody → sdowne
Updated•6 years ago
|
Iteration: --- → 63.3 - Aug 6
Priority: -- → P1
Comment 1•6 years ago
|
||
Comment 2•6 years ago
|
||
Comment 3•6 years ago
|
||
Commit pushed to master at https://github.com/mozilla/activity-stream
https://github.com/mozilla/activity-stream/commit/2389a2237b5085783c0b84eef50ce31fa2317b7d
Bug 1478755 - Ensure spocs load without a flash of rec
Updated•6 years ago
|
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Comment 4•6 years ago
|
||
Iteration: 63.3 - Aug 6 → 63.5 - Sep 3
status-firefox63:
--- → fixed
Target Milestone: --- → Firefox 63
Comment 5•6 years ago
|
||
I have verified that this issue is no longer reproducible on Windows 10 x64, Arch Linux and Mac 10.13.3 with the latest "Firefox Nightly" (63.0a1 - Build ID 20180902220539) installed. Now the sponsored content is no longer displayed after a normal one.
Status: RESOLVED → VERIFIED
Updated•5 years ago
|
Component: Activity Streams: Newtab → New Tab Page
You need to log in
before you can comment on or make changes to this bug.
Description
•