Closed Bug 1943473 Opened 1 month ago Closed 27 days ago

Always set isSponsored on Suggest results

Categories

(Firefox :: Address Bar, task, P3)

task

Tracking

()

RESOLVED FIXED
136 Branch
Tracking Status
firefox136 --- fixed

People

(Reporter: adw, Assigned: adw)

References

(Blocks 1 open bug)

Details

(Whiteboard: [sng])

Attachments

(1 file)

This is part of some Suggest refactoring/cleanup I'd like to do.

Suggest results should always have payload.isSponsored set appropriately. Right now it's kind of haphazard: some do, some don't, and some that should have it set to true don't.

I don't think it actually matters too much, though. The only place that checks isSponsored for Suggest results is here in UrlbarInput.pickResult() when it sets triggeringSponsoredURL. AFAIK we're not making much use of sponsored URL history right now, maybe I'm wrong. And of the Suggest results that should set isSponsored: true but don't, the only kind that's enabled by default for all Suggest users is Yelp.

Still, for good code hygiene we should make sure it's set properly.

Attachment #9461435 - Attachment description: Bug 1943473 - Always set isSponsored on Suggest results. → Bug 1943473 - Always set isSponsored on Suggest results and refactor "can add suggestion?" logic.
Pushed by dwillcoxon@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5faed049a259 Always set isSponsored on Suggest results and refactor "can add suggestion?" logic. r=daisuke
Status: ASSIGNED → RESOLVED
Closed: 27 days ago
Resolution: --- → FIXED
Target Milestone: --- → 136 Branch
Blocks: 1946894
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: