Implemented by
This interface is used to display a confirmatino dialog before launching a "helper app" to handle content not handled by Mozilla. Usage: Clients (of which there is one: the nsIExternalHelperAppService implementation in mozilla/uriloader/exthandler) create an instance of this interface (using the contract ID) and then call the show() method. The dialog is shown non-modally. The implementation of the dialog will access methods of the nsIHelperAppLauncher passed in to show() in order to cause a "save to disk" or "open using" action.
[scriptable, uuid(64355793-988d-40a5-ba8e-fcde78cac631)]
interface nsIHelperAppLauncherDialog : nsISupports
Constants
This request is passed to the helper app dialog because Gecko can not handle content of this type.
const
unsigned long
REASON_CANTHANDLE = 0
The server requested external handling.
const
unsigned long
REASON_SERVERREQUEST = 1
Gecko detected that the type sent by the server (e.g. text/plain) does not match the actual type.
const
unsigned long
REASON_TYPESNIFFED = 2
Methods
nsILocalFile
promptForSaveToFile(in nsIHelperAppLauncher aLauncher, in nsISupports aWindowContext, in wstring aDefaultFile, in wstring aSuggestedFileExtension)
void
show(in nsIHelperAppLauncher aLauncher, in nsISupports aContext, in unsigned long aReason)
Compare to: