Closed Bug 1722395 Opened 4 years ago Closed 4 years ago

Firefox home page search says "Search with Google" regardless of default search engine

Categories

(Firefox :: Search, defect, P2)

Firefox 90
defect
Points:
2

Tracking

()

RESOLVED FIXED
92 Branch
Iteration:
92.2 - Jul 26 - Aug 8
Tracking Status
firefox-esr78 --- unaffected
firefox-esr91 --- fixed
firefox90 --- wontfix
firefox91 --- wontfix
firefox92 --- fixed

People

(Reporter: mjnino, Assigned: bugzilla)

References

(Regression)

Details

(Keywords: regression)

Attachments

(2 files)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:90.0) Gecko/20100101 Firefox/90.0

Steps to reproduce:

I downloaded a fresh install of FF for mac (90.0.2 (64-bit)) and noticed the gray hint text in the search box on the home page always refers to Google regardless of the default search.

  • I updated Firefox on my macbook pro (catalina 10.15.7 (19H1217))
  • Changed my default search engine to DuckDuckGo
  • Opened a new browser window

Actual results:

  • The FF homepage searchbox hint text said "Search with Google or enter address" even though my default search was DDG
  • The searchbox functioned correctly as a DDG search box
  • I tried all other search engines as default and the text always referred to Google
  • The URL bar on top of the browser window correctly refers to the default search engine

Expected results:

  • The hint text should reflect the default search engine.
  • i.e., it should have said "Search with DuckDuckGo or enter address" to reflect my default search engine.

The Bugbug bot thinks this bug should belong to the 'Firefox::Search' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → Search

I just noticed this was connected to my FF History Settings. The search hint text is correct unless a non-default setting is selected for History.

From what I can tell, the search hint text is inconsistent only when one of these is the case for my History settings:
A) "Firefox will never remember history" is selected, or
B) "Firefox will use custom settings for history" is the selected and the "Always use private browsing mode" checkbox is checked

If the correct search engine logo is showing in the field (and the correct search function), it seems it should be possible to have the text show the correct search engine name. If that's not possible, maybe it's possible to avoid showing the search engine name when the browser cannot remember history.

It looks really bad (broken) when the search engine logo does not match the text immediately to the right of it. I hope you can fix.

Thanks

Reproduced in latest Nightly 92.0a1 by setting Nightly to Never remember history and changing the default search engine after browser restart.

According to mozregression, this was regressed by:
Bug 1616700 - Part 3 - Update the placeholder string on the handoff input to read "Search with {engine} or enter address"

Severity: -- → S4
Status: UNCONFIRMED → NEW
Has Regression Range: --- → yes
Has STR: --- → yes
Ever confirmed: true
Keywords: regression
OS: Unspecified → All
Regressed by: 1616700
Hardware: Unspecified → All

Harry, can you look into this?

Assignee: nobody → htwyford
Status: NEW → ASSIGNED
Iteration: --- → 92.2 - Jul 26 - Aug 8
Points: --- → 2
Flags: needinfo?(htwyford)
Priority: -- → P2

The issue here is that the code that powers the search box on about:home and about:privatebrowsing does not distinguish between windows in private browsing mode and thus windows that are on about:privatebrowsing; and windows that are in permanent private browsing mode and thus are on about:home.

about:newtab doesn't load aboutPrivateBrowsing.ftl and conversely about:privatebrowsing doesn't load newtab.ftl. Since permanent private browsing mode uses about:newtab as its new tab, we need to make sure we load our strings from newtab.ftl in that case.

Pushed by htwyford@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/bee56878871a Fix placeholder string in handoff input in permanent private browsing mode. r=Standard8
Flags: needinfo?(htwyford)
Pushed by htwyford@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/86c5a61c6b78 Fix placeholder string in handoff input in permanent private browsing mode. r=Standard8
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 92 Branch
Flags: needinfo?(htwyford) → in-testsuite+

Please nominate this for ESR91 approval when you get a chance.

Flags: needinfo?(htwyford)

Comment on attachment 9234505 [details]
Bug 1722395 - Fix placeholder string in handoff input in permanent private browsing mode. r?standard8!

ESR Uplift Approval Request

  • If this is not a sec:{high,crit} bug, please state case for ESR consideration: This bug can display an incorrect engine name on the new tab page when permanent private browsing mode is enabled. Permanent private browsing mode may be more common in ESR environments, such as libraries. We don't want to be displaying incorrect engine names in the UI given the business-critical nature of search engine contracts.
  • User impact if declined: Users may see an incorrect engine name on the new tab page when permanent private browsing mode.
  • Fix Landed on Version: 92
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Small front-end patch. Narrowly scoped and well-understood. It's baked for over a week on Nightly with no known regressions.
  • String or UUID changes made by this patch:
Flags: needinfo?(htwyford)
Attachment #9234505 - Flags: approval-mozilla-esr91?

Comment on attachment 9234505 [details]
Bug 1722395 - Fix placeholder string in handoff input in permanent private browsing mode. r?standard8!

Approved for 91.1esr.

Attachment #9234505 - Flags: approval-mozilla-esr91? → approval-mozilla-esr91+
Blocks: 1867620
See Also: → 1956101
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: