Closed Bug 1384974 Opened 8 years ago Closed 7 years ago

Activity Stream re-enables the "Recommended by Pocket" section

Categories

(Firefox :: New Tab Page, defect, P3)

defect

Tracking

()

RESOLVED WORKSFORME
Tracking Status
firefox57 --- wontfix
firefox58 --- wontfix

People

(Reporter: jaws, Unassigned)

References

Details

Previous to today's Nightly 56.0a1 (2017-07-27) (64-bit) build, I had the "Recommended by Pocket" section disabled on the New Tab page. After update to today's build, the section has re-appeared. I'm guessing something wasn't correct with migration code? I'm on Windows 10 and haven't shared my profile with other builds.
The pocket section was only just enabled by default in bug 1384807, so if you had seen it before, you probably turned it on and then off. When you're talking about "migration code" are you talking about something from before activity-stream or across versions of activity-stream? I would assume this is what happened to your prefs state: before bug 1384807: default pocket pref false you enabled: user set pref true you disabled: user set pref false (i.e., cleared, back to default) after bug 1384807: default pocket pref true
From irc: i'm betting pref() was used when it should have been sticky_pref() That sounds likely given the prep state changes described in comment 1. > you disabled: user set pref false (i.e., cleared, back to default) `sticky_pref` would have kept the pref set to false instead of clearing.
That is correct. I enabled then disabled. sticky_pref would have prevented this bug.
Looks like here is where sticky prefs are checked to save user pref or not: https://searchfox.org/mozilla-central/source/modules/libpref/prefapi.cpp#801-805 Not entirely sure how we get the sticky flag set from JS..
Priority: -- → P3
This was only an issue when the prefs were being implemented and defaults changed on nightly.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WORKSFORME
Component: Activity Streams: Newtab → New Tab Page
You need to log in before you can comment on or make changes to this bug.