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.
With the host associated with the URI, use nsIDNSService to determine if an IP address can be found for this host. This method will ignore checking hosts that are IP addresses. If the host does not contain any periods, depending on the browser.urlbar.dnsResolveFullyQualifiedNames preference value, a period may be appended in order to make it a fully qualified domain name.
NS_ERROR_FAILURE if aURI does not have a displayHost or asciiHost.
The URI to parse and pass into the DNS lookup.
The listener when the result from the lookup is available.
The originAttributes to pass the DNS lookup.
Given a uri-like string with a protocol, attempt to fix and convert it into an instance of nsIURIFixupInfo.
Differently from getFixupURIInfo, this assumes the input string is an http/https uri, and can add a prefix and/or suffix to its hostname.
The scheme will be changed to the scheme defined in "browser.fixup.alternate.protocol", which is by default, https.
If the prefix and suffix of the host are missing, it will add them to the host using the preferences "browser.fixup.alternate.prefix" and "browser.fixup.alternate.suffix" as references.
If a hostname suffix is present, but the URI doesn't contain a prefix, it will add the prefix via "browser.fixup.alternate.prefix"
nsIURIFixupInfo A nsIURIFixupInfo object with the property fixedURI which contains the modified URI.
NS_ERROR_FAILURE If aUriString is undefined, or the scheme is not http/https.
The URI to fixup and convert.
Tries to converts the specified string into a URI, first attempting to correct any errors in the syntax or other vagaries. It returns information about what it corrected (e.g. whether we could rescue the URI or "just" generated a keyword search URI instead).
Candidate URI.
Flags that govern ways the URI may be fixed up. Defaults to FIXUP_FLAG_NONE.
Returns true if the specified domain is known and false otherwise. A known domain is relevant when we have a single word and can't be sure whether to treat the word as a host name or should instead be treated as a search term.
A domain name to query.
Converts the specified keyword string into a URI. Note that it's the caller's responsibility to check whether keywords are enabled and whether aKeyword is a sensible keyword.
The keyword string to convert into a URI
Whether this is invoked from a private context.
Convert load flags from nsIWebNavigation to URI fixup flags for use in getFixupURIInfo.
Candidate URI; used for determining whether to allow keyword lookups.
Load flags from nsIDocShell to convert.
Generated using TypeDoc
Interface implemented by objects capable of fixing up strings into URIs