Hi All, I am working to develop a web browser using mozilla API. I am doveloping browser on windows using MFC and VC2005.
Now I want to implement downloading in my web browser. I found OnStartURIOpen callback of nsIURIContentListener is appropriate location to check for type of URI being opened. The problem is how can I get that URI that is being opened can't be handled by our browser and we need to ask to download it or open it with any other application. Trying to explaining with example... let us assume that if I click on a link pointing to a zip file so i want to know here. 1. What is the type of URI (i.e link is pointing to a zip file) being opened? 2. Can our browser handle zip files? 3. If no then which other application can handle it or I need to download target file? so first i want to get type of uri being opened. Is nsIMimeInfo interface the exact thing for this? If yes how can i get mime info from any uri using it? second how can i get that this uri can't be handled by the browser? and i have to perform any specific action. third if the file can be opened with any specific application how can i get which application i can open file with and how to open it with that application. Is nsIHelperAppLauncher and nsIHelperAppLauncherDialog interfaces are correct one to use here? If yes how can i use it? -- View this message in context: http://www.nabble.com/How-can-I-get-information-about-a-URI-being-opened--tp21804938p21804938.html Sent from the Mozilla - Embedding mailing list archive at Nabble.com. _______________________________________________ dev-embedding mailing list [email protected] https://lists.mozilla.org/listinfo/dev-embedding
