nsIURLFormatter

Methods

formatURL(aFormat)

formatURL - Formats a string URL

The set of known variables is predefined.
If a variable is unknown, it is left unchanged and a non-fatal error is reported.

Parameters

aFormat string Unformatted URL.

Returns

The formatted URL.

formatURLPref(aPref)

formatURLPref - Formats a string URL stored in a preference

If the preference value cannot be retrieved, a fatal error is reported
and the “about:blank” URL is returned.

Parameters

aPref string Preference name.

Returns

The formatted URL returned by formatURL(), or "about:blank".