Interface nsIURIFixupInfoType

Interface indicating what we found/corrected when fixing up a URI

Hierarchy

Properties

consumer: BrowsingContext

Consumer that asked for fixed up URI.

fixedURI: nsIURI

The fixed-up original input, never using a keyword search. (might be null if the original input was not recoverable as a URL, e.g. "foo bar"!)

fixupChangedProtocol: boolean

Whether we changed the protocol instead of using one from the input as-is.

fixupCreatedAlternateURI: boolean

Whether we created an alternative URI. We might have added a prefix and/or suffix, the contents of which are controlled by the browser.fixup.alternate.prefix and .suffix prefs, with the defaults being "www." and ".com", respectively.

keywordAsSent: string

The keyword as used for the search (post trimming etc.) empty string if no keyword search was done.

keywordProviderName: string

The name of the keyword search provider used to provide a keyword search; empty string if no keyword search was done.

originalInput: string

The original input

postData: nsIInputStream

The POST data to submit with the returned URI (see nsISearchSubmission).

preferredURI: nsIURI

Our best guess as to what URI the consumer will want. Might be null if we couldn't salvage anything (for instance, because the input was invalid as a URI and FIXUP_FLAG_ALLOW_KEYWORD_LOOKUP was not passed)

Methods

  • Increases the reference count for this interface. The associated instance will not be deleted unless the reference count is returned to zero.

    Returns

    The resulting reference count.

    Returns number

  • Parameters

    • aIID: object
    • Optional aInstancePtr: object

    Returns any

  • A run time mechanism for interface discovery.

    Returns

    NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.

    aInstancePtr must not be null.

    Parameters

    • aIID: object

      [in] A requested interface IID

    • aInstancePtr: object

      [out] A pointer to an interface pointer to receive the result.

    Returns void

  • Decreases the reference count for this interface. Generally, if the reference count returns to zero, the associated instance is deleted.

    Returns

    The resulting reference count.

    Returns number

Generated using TypeDoc