Closed Bug 1572141 Opened 5 years ago Closed 5 years ago

Add an nsISearchService.originalDefaultPrivateEngine to return the private browsing engine from the configuration

Categories

(Firefox :: Search, task, P1)

task
Points:
3

Tracking

()

RESOLVED FIXED
Firefox 70
Iteration:
70.3 - Aug 5 - 18
Tracking Status
firefox70 --- fixed

People

(Reporter: standard8, Assigned: standard8)

References

Details

Attachments

(1 file)

Splitting out from bug 1562922. This patch implements a new API for the search service - originalDefaultPrivateEngine.

This API returns the private browsing engine as defined by the configuration (e.g. list.json or the new remote settings config once we have it). If the configuration doesn't have one defined, or if the browser.search.separatePrivateDefault preference is false, then we fallback to returning the same default engine as the normal mode.

test_list_json_searchdefault.js is repurposed, as the tests in the searchconfig sub-directory already check the default engine.

Pushed by mbanner@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/f8ad8591b11b
Add nsISearchService.originalDefaultPrivateEngine to return the private browsing engine from the configuration. r=daleharvey
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 70
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: