Closed Bug 1745460 Opened 4 years ago Closed 4 years ago

Quick suggest error when disabling suggestions and enabling data collection after bug 1745297 was fixed

Categories

(Firefox :: Address Bar, defect, P1)

defect
Points:
2

Tracking

()

VERIFIED FIXED
97 Branch
Tracking Status
firefox96 + verified
firefox97 --- verified

People

(Reporter: adw, Assigned: adw)

References

Details

Attachments

(1 external file)

See bug 1745297 comment 6. I asked Cosmin to expand the errors in the screenshot so we can see the stacks, but they don't contain anything useful because they're async. They're just the stacks where the error is recorded and not where it originally happens.

The error doesn't interfere with anything since we try-catch it and suggestions are disabled, but we should fix this.

[Tracking Requested - why for this release]:
Small follow-up fix to bug 1745297, sorry.

Blocks: 1745297
Flags: qe-verify+
Flags: in-testsuite?

This is a small follow-up to bug 1745297. UrlbarQuickSuggest can now be queried
even when suggestions are disabled and its _rs property (the remote settings
client instance) is null, which is a problem for _fetchIcon since it assumes
_rs is non-null. It can just bail in that case.

Flags: in-testsuite? → in-testsuite-
Pushed by dwillcoxon@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8ed24cf28fba Modify UrlbarQuickSuggest._fetchIcon() so it bails when the remote settings client is null. r=mythmon
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 97 Branch

I have verified this issue on the latest Nightly 97.0a1 build (Build ID: 20211213093143) on Windows 10 x64, macOS 10.15.7 and Linux Mint 20.

  • No errors are displayed in the browser console after following the STR described in Bug 1745297 comment 2.

I will also leave the "qe-verify" flag set, to reverify this if it will be uplifted to Beta.

Status: RESOLVED → VERIFIED

Comment on attachment 9254827 [details]
Bug 1745460 - Modify UrlbarQuickSuggest._fetchIcon() so it bails when the remote settings client is null.

Beta/Release Uplift Approval Request

  • User impact if declined: This is a small follow-up fix to bug 1745297, which we need for the next Firefox Suggest rollout on 96.
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce: Please see bug comments
  • List of other uplifts needed: 1745297 should be uplifted first
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): One-line patch that fixes a harmless JS error.
  • String changes made/needed:
Attachment #9254827 - Flags: approval-mozilla-beta?

Comment on attachment 9254827 [details]
Bug 1745460 - Modify UrlbarQuickSuggest._fetchIcon() so it bails when the remote settings client is null.

Approved for 96.0b5

Attachment #9254827 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
QA Whiteboard: [qa-triaged]

I have verified this issue on the latest Beta 96.0b5 (Build ID: 20211214203716) on Windows 10 x64, macOS 10.15.7 and Linux Mint 20.

  • No errors are displayed in the browser console after following the STR described in Bug 1745297 comment 2.
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: