Closed Bug 1672146 Opened 5 years ago Closed 5 years ago

UrlbarProviderSearchTips should deal with update manager not existing

Categories

(Firefox :: Address Bar, defect, P3)

Desktop
Linux
defect
Points:
1

Tracking

()

RESOLVED FIXED
84 Branch
Iteration:
84.1 - Oct 19 - Nov 01
Tracking Status
firefox-esr78 --- wontfix
firefox82 --- wontfix
firefox83 --- wontfix
firefox84 --- fixed

People

(Reporter: Gijs, Assigned: adw)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

On distro builds on Linux, there is no update manager, so I see:

Cc[aContract] is undefined XPCOMUtils.jsm:144
    XPCU_serviceLambda resource://gre/modules/XPCOMUtils.jsm:144
    get resource://gre/modules/XPCOMUtils.jsm:58
    lastBrowserUpdateDate resource:///modules/UrlbarProviderSearchTips.jsm:496
    _maybeShowTipForUrl resource:///modules/UrlbarProviderSearchTips.jsm:361
    InterpretGeneratorResume self-hosted:1468
    AsyncFunctionNext self-hosted:674

on release. AFAICT this code is all still there on nightly.

It should probably check AppConstants.MOZ_UPDATER or something.

Severity: -- → S3
Points: --- → 1
Keywords: regression
Priority: -- → P3
Regressed by: 1606904
Has Regression Range: --- → yes
Assignee: nobody → adw
Status: NEW → ASSIGNED
Iteration: --- → 84.1 - Oct 19 - Nov 01

In the bug, Gijs suggests checking AppConstants.MOZ_UPDATER, but the stack
shows that Cc[aContract] isn't defined, so it seems better to check for that
instead.

I'm not sure how or whether it's even possible to write a test where there's no
updater, so I haven't added one, and in the case where there is an updater,
that's covered by our existing tests of course.

Pushed by dwillcoxon@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f03b9e19229e Make UrlbarProviderSearchTips deal with the update manager not existing. r=harry
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 84 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: