Closed Bug 1869054 Opened 11 months ago Closed 11 months ago

MDN and addon suggestions need to null-check their suggestion maps

Categories

(Firefox :: Address Bar, defect, P1)

defect

Tracking

()

RESOLVED FIXED
122 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox120 --- unaffected
firefox121 --- wontfix
firefox122 --- fixed

People

(Reporter: adw, Assigned: adw)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

When addon and MDN suggestions are disabled, they clear their suggestion maps so that suggestions are removed from memory. This change was made in bug 1832198. However, the maps will be null at that time if the JS backend never finished a sync. That can happen if the Rust backend was enabled and then disabled, or if the JS backend is enabled and sync is just slow or didn't happen because the network is down or some similar reason.

I hit this by accident when I was testing something else, but I can't reproduce it easily. It requires addon or MDN suggestions to be enabled and then disabled, plus Rust to be enabled and then disabled or a slow RS sync. I don't think any users would hit this.

This is hard to test, and since this patch only adds a couple defensive null
checks I don't think it really needs one anyway.

Pushed by dwillcoxon@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/da54bb1e3730 Add some null checks to MDN and addon suggestion maps. r=daisuke
Status: ASSIGNED → RESOLVED
Closed: 11 months ago
Resolution: --- → FIXED
Target Milestone: --- → 122 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: