Boris Zbarsky wrote:
But what gave you the idea that you want to set the preferredAction to that value? nsIMIMEInfo has a |alwaysAskBeforeHandling| boolean property that you should set as needed.
That doesn't make launchWithFile open the dialog either, of course - for that, you need to use nsIExternalHelperAppService::doContent. (http://lxr.mozilla.org/seamonkey/source/uriloader/exthandler/nsIExternalHelperAppService.idl#57)
And note that just setting stuff on an nsIMIMEInfo alone does not save those values anywhere. That needs to be done separately.
-christian _______________________________________________ dev-tech-xpcom mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-xpcom
