Redirect URL

2007-01-11 Thread Andrei Korostelev
I need to have a Firefox extension which redirects certain URLs to another location. AFAIK using OnStartURIOpen() is not appropriate since it only allows or disallows the url load and cannot handle redirection. Any ideas? Firefox 2.0. ___ dev-embedding

Get firefox default profile directory from non-extension

2006-12-20 Thread Andrei Korostelev
Hi, the following code, when called from Firefox extension, retrieves firefox profile directory location. nsresult rv = NS_InitXPCOM2(nsnull, nsnull, nsnull); if (NS_FAILED(rv)) return; nsCOMPtrnsIProperties fileLocator = do_GetService(@mozilla.org/file/directory_service;1, rv); if

Re: Get firefox default profile directory from non-extension

2006-12-20 Thread Andrei Korostelev
On Dec 20, 4:06 pm, Andrei Korostelev [EMAIL PROTECTED] wrote: Hi, the following code, when called from Firefox extension, retrieves firefox profile directory location. nsresult rv = NS_InitXPCOM2(nsnull, nsnull, nsnull); if (NS_FAILED(rv)) return; nsCOMPtrnsIProperties fileLocator

Intercepting URL in Firefox extension

2006-12-19 Thread Andrei Korostelev
I need a Firefox extension which performs some actions (redirect and others) before the URL is open. Simply using Mozilla's window.addEventListener(load, Handler, ..) does not work since I have to catch the URL *before* the page is loaded. Not too exotic task on my thought. I also read a couple of