amIWebInstallListener
is used to notify about new installs triggered by websites. The default implementation displays a confirmation dialog when add-ons are ready to install and uses the observer service to notify when installations are blocked.
nsISupports
Last changed in Gecko 8.0 (Firefox 8.0 / Thunderbird 8.0 / SeaMonkey 2.5)boolean onWebInstallBlocked(in nsIDOMWindow aWindow, in nsIURI aUri, [array, size_is(aCount)] in nsIVariant aInstalls, [optional] in PRUint32 aCount); |
void onWebInstallDisabled(in nsIDOMWindow aWindow, in nsIURI aUri, [array, size_is(aCount)] in nsIVariant aInstalls, [optional] in PRUint32 aCount); |
boolean onWebInstallRequested(in nsIDOMWindow aWindow, in nsIURI aUri, [array, size_is(aCount)] in nsIVariant aInstalls, [optional] in PRUint32 aCount); |
Note: Prior to Gecko 8.0, all references to nsIDOMWindow
used in this interface were nsIDOMWindowInternal
.
Called when the website is not allowed to directly prompt the user to install add-ons.
boolean onWebInstallBlocked(
in nsIDOMWindow aWindow,
in nsIURI aUri,
[array, size_is(aCount)] in nsIVariant aInstalls,
in PRUint32 aCount Optional
);
aWindow
aUri
aInstalls
AddonInstall
s that were blocked.aCount
OptionalAddonInstall
s.true
if the caller should start the installs.
Called when installation by websites is currently disabled.
void onWebInstallDisabled(
in nsIDOMWindow aWindow,
in nsIURI aUri,
[array, size_is(aCount)] in nsIVariant aInstalls,
in PRUint32 aCount Optional
);
aWindow
aUri
aInstalls
AddonInstall
s that were blocked.aCount
OptionalAddonInstall
s.Called when a website wants to ask the user to install add-ons.
boolean onWebInstallRequested(
in nsIDOMWindow aWindow,
in nsIURI aUri,
[array, size_is(aCount)] in nsIVariant aInstalls,
in PRUint32 aCount Optional
);
aWindow
aUri
aInstalls
AddonInstall
s that were requested.aCount
OptionalAddonInstall
s.true
if the caller should start the installs.