Closed Bug 1665123 Opened 4 years ago Closed 4 years ago

Search start-up service intialization browser console error

Categories

(Firefox :: Address Bar, defect, P1)

Firefox 82
Desktop
All
defect
Points:
2

Tracking

()

VERIFIED FIXED
82 Branch
Iteration:
82.2 - Sep 7 - Sep 20
Tracking Status
firefox-esr68 --- unaffected
firefox-esr78 --- unaffected
firefox80 --- unaffected
firefox81 --- unaffected
firefox82 --- disabled
firefox83 --- verified

People

(Reporter: aflorinescu, Assigned: bugzilla)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

[Sugested Severity:]

S4 until investigated

[Description:]

First startup + fast type @ in the address bar

[Environment:]

Ubuntu 20.04 / Windows 10
82.0a1 2020-09-15

[Steps:]
  1. Create a new profile.
  2. At fist start-up fast type @ in the addressbar.
[Actual Result:]

Error: Something tried to use the search service before it's been properly intialized. Please examine the stack trace to figure out what and where to fix it:
_ensureinitialized@resource://gre/modules/searchservice.jsm:233:15
getenginebyname@resource://gre/modules/searchservice.jsm:1408:10
setsearchmode@resource:///modules/urlbarinput.jsm:1270:34
seturi@resource:///modules/urlbarinput.jsm:364:12
onlocationchange@chrome://browser/content/browser.js:5289:15
calllisteners@chrome://browser/content/tabbrowser.js:832:31
_callprogresslisteners@chrome://browser/content/tabbrowser.js:846:22
_callprogresslisteners@chrome://browser/content/tabbrowser.js:5826:46
onlocationchange@chrome://browser/content/tabbrowser.js:6239:14
SearchService.jsm:233:15

[Note:]

  1. It's a bit intermittent, so a slow PC would help.
  2. This might also be a search shortcuts (bug 1644572) related issue, but blocking post-modernization first for investigation.

This is the address bar (search shortcuts) trying to access the search service too early and not checking if it is initialised first:

https://searchfox.org/mozilla-central/rev/30e70f2fe80c97bfbfcd975e68538cefd7f58b2a/browser/components/urlbar/UrlbarInput.jsm#1270

Component: Search → Address Bar
Assignee: nobody → htwyford
Severity: -- → S3
Status: NEW → ASSIGNED
Iteration: --- → 82.2 - Sep 7 - Sep 20
Points: --- → 2
Priority: -- → P1
Regressed by: 1657801
Has Regression Range: --- → yes
Pushed by htwyford@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/60314c2f5125 Avoid early calls to setSearchMode and add a check for search service initialization. r=adw
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 82 Branch
Flags: qe-verify+

Verified that the search initialization issue is solved on Win10 - 82.0b7. However, given that the search shortcuts is now disabled on 82, this is not entirely relevant, so moving the flags to keep this bug tracked for further verification on 83.

I have managed to reproduce the issue using Fx82.0a1 on Ubuntu and Windows as mentioned in the bug.
Verified the issue using the latest Fx83.0a1 on Windows 10 and Ubuntu 18.04. The eror is no longer when '@' is typed as soon as Firefox starts.

Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: