Closed Bug 1968218 Opened 1 year ago Closed 5 months ago

Persisted search term is displayed after after a websearch refinement while using DDG as default engine

Categories

(Firefox :: Address Bar, defect, P3)

Desktop
All
defect

Tracking

()

RESOLVED FIXED
148 Branch
Tracking Status
firefox139 --- wontfix
firefox140 --- wontfix
firefox148 --- fixed

People

(Reporter: cbaica, Assigned: daisuke)

References

Details

(Whiteboard: [sng-scotchbonnet-followon][scotchbonnet-persistsearchterms])

Attachments

(2 files)

Attached video persist bug for ddg

Found in

  • Fx140.0a1

Affected versions

  • Fx140.0a1
  • Fx139.0

Affected platforms

  • Windows
  • Ubuntu
  • macOS

Steps to reproduce

  1. Launch Firefox and set DDG as default search engine.
  2. Perform a search from the address bar.
  3. Using the websearch, refine the search (input additional characters and do the search).

Expected result

  • Full URL is displayed in the address bar.

Actual result

  • The refined Search Term is displayed in the address bar.

Regression range

  • This is not a recent regression. DDG treated sub-pages (videos, images) differently as well.

Additional notes

  • This issue DOES NOT occur for Google or Bing, where the FULL URL is displayed on step 3.

Results in an inconsistency with other built-in search engines, but could benefit with follow-up experience review as part of Scotch Bonnet follow-ons.

Severity: -- → S3
Priority: -- → P3
Whiteboard: [sng-scotchbonnet-followon][scotchbonnet-persistsearchterms]
Assignee: nobody → daisuke
Status: NEW → ASSIGNED

Hi James!
It seems that this issue happens since we have only two search engines (duckduckgo and qwant) in Remote Settings.
Can we add more engines to them, or do we have any constraints?

Flags: needinfo?(jteow)

Hmm so the reason why this is sort of different from Bing and Google is searches using an in content search boxes result in an entirely different URL.

I suppose we could try making the behaviour consistent and just do either one of the following:

  • Have all searches in the search box result in the search terms persisting - Change Google/Bing/etc. to persist
  • Never have it do it - Unfortunately, this would require additional logic or state keeping because persisted search relies heavily on looking at the URL to extract the current state and doesn't really "know" where the search originally came from (e.g. from a SAP? From content?).

I feel like a lot of the complexity with Persisted Search could be solved by knowing and storing whether or not the search actually came from a SAP or if it came from content.

The engines in Remote Settings were really meant for just search engines with single page app like behaviour where we explicitly spell out the key value pairing that match a search page. For example, in DDG's case it's ia=web.

Flags: needinfo?(jteow)
Attachment #9519429 - Attachment description: Bug 1968218: Show persisted search term if it is possible to retrieve the search term from the URI → Bug 1968218: Address the requirement that is mandatory in the schema
Depends on: 2006785
Attachment #9519429 - Attachment description: Bug 1968218: Address the requirement that is mandatory in the schema → Bug 1968218: Handles empty arrays or undefined includeParams
Status: ASSIGNED → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED
Target Milestone: --- → 148 Branch
Blocks: 2007314
QA Whiteboard: [qa-found-in-c140] → [qa-found-in-c140] [search] [qa-triage-done-c148/b147] [qa-ver-needed-c148/b147]

James, can you please clarify what the expected result is here? On websearch refine we still reproduce the persisted ddg search term instead of full link.

Flags: needinfo?(jteow)

Hi Adrian, we closed this bug because we updated the code base to allow us to fix this issue, but we still need to update Remote Settings in Bug 2007314 at which point the behaviour should be fixed. Is it alright if we use that bug to QA instead?

Flags: needinfo?(jteow)
See Also: → 2025933
Regressions: 2027510
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: