Closed Bug 1747969 Opened 2 years ago Closed 2 years ago

Pocket newtab remote layouts descriptions broke

Categories

(Firefox :: Pocket, defect)

defect

Tracking

()

RESOLVED FIXED
97 Branch
Tracking Status
firefox-esr91 --- unaffected
firefox95 --- unaffected
firefox96 --- unaffected
firefox97 --- fixed

People

(Reporter: thecount, Assigned: thecount)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

This is a bug caused by bug 1746649.

Bug 1746649 made it so we could add/remove description via a pref for testing purposes, the default is still on.

Where this went wrong and caused this bug is two fold.

We made the pref default to true, and called it "includeDescriptions"
We didn't consider remote layouts.

When remote layouts try to render, they don't use the standard render stack, and end up not getting the "includeDescriptions" default.

Because we don't want to have to maintain or modify the remote layouts, it probably makes more sense to flip "includeDescriptions" to "hideDescriptions", this way old layouts default state is falsy, and in this case, falsy produces the previous experience.

We should still be able to run our test with "hideDescriptions" just fine, just reversing the logic a bit.

Summary: Pocket newtab remote layouts no longer have descriptions → Pocket newtab remote layouts descriptions broke

Set release status flags based on info from the regressing bug 1746649

Steps to test:

  1. Set pref browser.newtabpage.activity-stream.asrouter.devtoolsEnabled to true
  2. Go to about:home#devtools-ds
  3. Uncheck "hardcoded_layout"
  4. Check "staging_spocs"
  5. Open a new tab

Expected: Stories should have descriptions.

Pushed by sdowne@getpocket.com:
https://hg.mozilla.org/integration/autoland/rev/a56b41089893
Fixing Pocket newtab descriptions for remote layouts. r=gvn
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 97 Branch
Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: