Readonly
descriptionA text description describing the engine.
Whether the engine should be hidden from the user.
Readonly
iconURIA nsIURI corresponding to the engine's icon, stored locally. May be null.
Readonly
idThe display of the search engine id. This is a unique identifier.
Readonly
identifierAn optional unique identifier for this search engine within the context of the distribution, as provided by the distributing entity.
Readonly
inWhether or not this engine is an in-memory only search engine. These engines are typically application provided or policy engines, where they are loaded every time on SearchService initialization using the policy JSON or the extension manifest. Minimal details of the in-memory engines are saved to disk, but they are never loaded from the user's saved settings file.
Readonly
isWhether or not this engine is provided by the application, e.g. it is in the list of configured search engines.
Readonly
isWhether or not this engine is a "general" search engine, e.g. is it for generally searching the web, or does it have a specific purpose like shopping.
Readonly
nameThe display name of the search engine. This is a unique identifier.
Readonly
searchThe searchForm URL points to the engine's organic search page. This should not contain neither search term parameters nor partner codes, but may contain parameters which set the engine in the correct way.
This URL is typically the prePath and filePath of the search submission URI, but may vary for different engines. For example, some engines may use a different domain, e.g. https://sub.example.com for the search URI but https://example.org/ for the organic search page.
Readonly
searchThe domain from which search results are returned for this engine.
the domain of the the search URL.
Readonly
searchReturns the public suffix for the submission URL of type
SearchUtils.URL_TYPE.SEARCH
.
A string which is a known public suffix, or empty string if one cannot be found.
Readonly
searchReturns the name of the parameter used for the search terms for a submission
URL of type SearchUtils.URL_TYPE.SEARCH
.
A string which is the name of the parameter, or empty string if no parameter cannot be found or is not supported (e.g. POST).
Readonly
sendA boolean to indicate if we should send an attribution request to Mozilla's server.
Readonly
telemetryThe identifier to use for this engine when submitting to telemetry.
Optional
aInstancePtr: objectA run time mechanism for interface discovery.
NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.
aInstancePtr must not be null.
[in] A requested interface IID
[out] A pointer to an interface pointer to receive the result.
Returns a string with the URL to an engine's icon matching both width and height. Returns null if icon with specified dimensions is not found.
Width of the requested icon.
Height of the requested icon.
Gets a nsISearchSubmission object that contains information about what to send to the search engine, including the URI and postData, if applicable.
nsISearchSubmission The submission data. If no appropriate submission can be determined for the request type, this may be null.
The search term(s) for the submission.
[optional] The MIME type that we'd like to receive in response to this submission. If null, will default to "text/html".
[optional] A string that indicates the context of the search request. This may then be used to provide different submission data depending on the context.
Returns the search term of a possible search result URI if and only if:
A string representing the termsParameterName value of the URI, or an empty string if the URI isn't matched to the engine.
A URI that may or may not be from a search result matching the engine.
Opens a speculative connection to the engine's search URI (and suggest URI, if different) to reduce request latency
NS_ERROR_INVALID_ARG if options is omitted or lacks required elemeents
An object that must contain the following fields: {window} the content window for the window performing the search {originAttributes} the originAttributes for performing the search
Generated using TypeDoc
An optional shortcut alias for the engine. When not an empty string, this is a unique identifier.