scheme, and use it in the confirmation dialog that asks whether to launch such
links.
bug 258802
windows and cross-platform part: r=ere sr=neil,bz
linux part: r=bz sr=bryner
git-svn-id: svn://10.0.0.236/trunk@163896 18797224-902f-48f8-a5cc-f745e15eee43
using nsIPromptService directly. this removes the dom and windowwatcher
dependency from exthandler.
r=bzbarsky sr=darin
git-svn-id: svn://10.0.0.236/trunk@163745 18797224-902f-48f8-a5cc-f745e15eee43
don't delete incomplete files when the download is cancelled/aborts
tell the download impl about the location of the temp file, if it is interested
244448 r=bzbarsky sr=darin
git-svn-id: svn://10.0.0.236/trunk@156962 18797224-902f-48f8-a5cc-f745e15eee43
parameter from nsIContentHandler::handleContent, and change the type of
aWindowContext to nsIInterfaceRequestor.
r=bzbarsky sr=darin
git-svn-id: svn://10.0.0.236/trunk@154988 18797224-902f-48f8-a5cc-f745e15eee43
o) also return from GetFileTokenForPath when the base class implementation failed
with NS_ERROR_FILE_NOT_FOUND.
o) Do not return NS_ERROR_FILE_NOT_FOUND from the
base class impl if the file path is both relative and does not exist in the
mozilla directory.
o) Make sure to break out of the loop in the unix GetFileTokenForPath even if
ApendRelativePath fails
r+sr=bzbarsky a=asa
git-svn-id: svn://10.0.0.236/trunk@154411 18797224-902f-48f8-a5cc-f745e15eee43
This adds a new method launchWithFile on nsIMIMEInfo which takes care of opening
the selected (preferred or default) application on the mime info with a
specified document. defaultDescription is now readonly, and defaultApplication
no longer available.
This also removes the clone method which was unused in the entire tree.
git-svn-id: svn://10.0.0.236/trunk@153118 18797224-902f-48f8-a5cc-f745e15eee43
in the "ext-to-type-mapping" category, where the name is the extension and the
value the mime type.
r=bzbarsky sr=darin
git-svn-id: svn://10.0.0.236/trunk@152422 18797224-902f-48f8-a5cc-f745e15eee43
Leak in nsExternalAppHandler, due to reference cycle between the nsIDownload implementation,
the helper app service, and the helper app dialog.
now, the reference cycle with the helper app dialog is broken in Cancel/CreateProgressListener,
and the cycle with the nsIDownload will be broken in Cancel/CloseProgressWindow/OnStopRequest
r=bzbarsky sr=darin
git-svn-id: svn://10.0.0.236/trunk@151980 18797224-902f-48f8-a5cc-f745e15eee43
also fixes: If the OS has info for a type, but prefs contain neither info via type nor via
ext, we would get the mimeinfo from extras.
r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@150777 18797224-902f-48f8-a5cc-f745e15eee43
fix this by always setting the real mime type on a mime info got from prefs.
r=bzbarsky sr=darin a=asa
git-svn-id: svn://10.0.0.236/trunk@150239 18797224-902f-48f8-a5cc-f745e15eee43
This gives a useful error message if a helper app could not be found (for another error code)
r=bzbarsky sr=darin a=asa
git-svn-id: svn://10.0.0.236/trunk@149992 18797224-902f-48f8-a5cc-f745e15eee43
also fixes: GetMIMEInfoForExtensionFromExtras does not set a mime type on the mime info
r+sr=bzbarsky; this addresses the problem that the information in extras is never used
git-svn-id: svn://10.0.0.236/trunk@149456 18797224-902f-48f8-a5cc-f745e15eee43
r=bzbarsky sr=darin
also changes nsIMIMEService functions to start with a lowercase letter (only affects JS Callers)
git-svn-id: svn://10.0.0.236/trunk@149270 18797224-902f-48f8-a5cc-f745e15eee43