amIWebInstallListener
The registered 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.
Methods
onWebInstallDisabled(aOriginator, aUri, aInstalls, aCount)
Called when installation by websites is currently disabled.
Parameters
| aOriginator |
The window or browser that triggered the installs
|
| aUri |
The URI of the site that triggered the installs
|
| aInstalls |
The AddonInstalls that were blocked
|
| aCount |
The number of AddonInstalls
|
onWebInstallBlocked(aOriginator, aUri, aInstalls, aCount)
Called when the website is not allowed to directly prompt the user to
install add-ons.
Parameters
| aWindow |
The window or browser that triggered the installs
|
| aUri |
The URI of the site that triggered the installs
|
| aInstalls |
The AddonInstalls that were blocked
|
| aCount |
The number of AddonInstalls
|
Returns
| true if the caller should start the installs
|
onWebInstallRequested(aOriginator, aUri, aInstalls, aCount)
Called when a website wants to ask the user to install add-ons.
Parameters
| aWindow |
The window or browser that triggered the installs
|
| aUri |
The URI of the site that triggered the installs
|
| aInstalls |
The AddonInstalls that were requested
|
| aCount |
The number of AddonInstalls
|
Returns
| true if the caller should start the installs
|