Services.search.originalDefaultEngine is null on Linux Mint (breaking some non default engines since FF 57)

UNCONFIRMED
Unassigned

Status

()

Firefox
Search
P5
normal
UNCONFIRMED
26 days ago
12 days ago

People

(Reporter: Valdo, Unassigned)

Tracking

57 Branch
x86_64
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

26 days ago
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0
Build ID: 20171130143349

Steps to reproduce:

Since FF 57, I noticed that the search field turned to be unusable with my default search engine (qwant.com). While non-default search engines are still usable.

Note: I don't have any Search engine ADD-ON installed. Only search engines added over the time via the search field.


Actual results:

Since FF 57, when typing keywords in the search field, then pressing Enter (or clicking on the default engine just below) doesn't do anything (the search is not triggered).
While clicking on any non-default s.e. works as expected.


Expected results:

Pressing Enter or clicking on the default s.e. just below should trigger the search.

Additional information:
1/ This issue was only detected with Linux Mint 18 (I didn't test with my other GNU/Linux distros), it's not present on Win7 for instance.
2/ Changing my default s.e. to startpage.com produces the same issue. Qwant.com - having turned into a non-default s.e. - works correctly again.
3/ Changing my default s.e. to duckduckgo.com solves the issue! (but DDG is not my preferred s.e.) Meaning the issue occurs with SOME s.e. not with all of them.

Comment 1

25 days ago
Please check if you can reproduce the problem in a brand new profile.
https://support.mozilla.org/kb/profile-manager-create-and-remove-firefox-profiles
Component: Untriaged → Search
OS: Unspecified → Linux
Hardware: Unspecified → x86_64
(Reporter)

Comment 2

21 days ago
Thanks for the test case.
Actually not, I can't reproduce this issue with a brand new profile.

Updated

20 days ago
Duplicate of this bug: 1427604

Updated

18 days ago
See Also: → bug 1426616

Comment 4

18 days ago
In your profile with the problem, could you please open the browser console (Tools > Web Developer > Browser Console), reproduce the problem, and then see if any errors show up in the console?
Flags: needinfo?(pubalapoub)
(Reporter)

Comment 5

16 days ago
Correct, a few errors show up as soon as I press Enter to (try to) trigger a search:

TypeError: Services.search.originalDefaultEngine is null[En savoir plus]  nsSearchService.js:2363:1
NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS: [JavaScript Error: "Services.search.originalDefaultEngine is null" {file: "jar:file:///usr/lib/firefox/omni.ja!/components/nsSearchService.js" line: 2363}]'[JavaScript Error: "Services.search.originalDefaultEngine is null" {file: "jar:file:///usr/lib/firefox/omni.ja!/components/nsSearchService.js" line: 2363}]' when calling method: [nsISearchEngine::speculativeConnect]  search.xml:525
TypeError: Services.search.originalDefaultEngine is null[En savoir plus]  nsSearchService.js:2363:1
NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS: [JavaScript Error: "Services.search.originalDefaultEngine is null" {file: "jar:file:///usr/lib/firefox/omni.ja!/components/nsSearchService.js" line: 2363}]'[JavaScript Error: "Services.search.originalDefaultEngine is null" {file: "jar:file:///usr/lib/firefox/omni.ja!/components/nsSearchService.js" line: 2363}]' when calling method: [nsISearchEngine::getSubmission]

Qwant.com was used as default search engine in this case. I get the same error with StartPage.com.
Surprisingly, Ixquick.com works correctly (while being more or less the same s.e. as StartPage.com).
Flags: needinfo?(pubalapoub)

Comment 6

14 days ago
Florian, do you think this might be related to your work in bug 1419941?  Please see comment 5.
Flags: needinfo?(florian)
(In reply to Drew Willcoxon :adw from comment #6)
> Florian, do you think this might be related to your work in bug 1419941? 
> Please see comment 5.

Somehow related, yes, in that it's the patch in bug 1419941 that started using Services.search.originalDefaultEngine. But given that this happens only on Linux Mint and not other Linux distribution, it's likely something triggered by the specific way Firefox is packaged on Mint.

Services.search.originalDefaultEngine should never be null, and I would be curious to know what they do to end up in this case.
Flags: needinfo?(florian)
Summary: [Search field] Some DEFAULT search engines no longer work since FF 57 (GNU/Linux) → Services.search.originalDefaultEngine is null on Linux Mint (breaking some non default engines since FF 57)
(In reply to Florian Quèze [:florian] from comment #7)

> Services.search.originalDefaultEngine should never be null, and I would be
> curious to know what they do to end up in this case.

I was told they install language packs by default.
Priority: -- → P5

Updated

13 days ago
Duplicate of this bug: 1426616
I just did a fresh Mint install and switched my default to Qwant and it's working for me, so I think there's something else at work here.

Can folks encountering this problem please go to about:config and tell me the value for general.useragent.locale? Also, go to about:addons and tell me all languages listed in the Languages section.
(In reply to Mike Kaply [:mkaply] from comment #10)
> I just did a fresh Mint install and switched my default to Qwant and it's
> working for me, so I think there's something else at work here.

Since I spent the entire day debugging bug 1420775, you might need to try installing a different localization in Linux (e.g. French), then create a new user using that language
(Reporter)

Comment 12

12 days ago
(In reply to Mike Kaply [:mkaply] from comment #10)
> I just did a fresh Mint install and switched my default to Qwant and it's
> working for me, so I think there's something else at work here.

Thanks for your test Mike. The outcome confirms what I tested myself: a new FF profile solves the issue.
As to the value for general.useragent.locale: fr in my case.
Installed languages:
- English (GB) Language Pack
- English (South Africa) Language Pack
- Français Language Pack
You need to log in before you can comment on or make changes to this bug.