Re: gtk file picker and firefox
On 2/22/06, Nic <nferrier@tapsellferrier.co.uk> wrote:
> Here's the instructions again to provide some context:
>
> following in nsFilePicker.js which is located in the app's components
> directory. After making the change you have to re-register the
> components which is easily accomplished by disabling then re-enabling
> an extension and then restarting. Installing or un-installing an
> extension will also force a component registration.
> **** change:
> compMgr.registerFactoryLocation(FILEPICKER_CID,
> "FilePicker JS Component",
> //@line 278 *snip*
> "",
> //@line 280 *snip*
> fileSpec,
> location,
> type);
> **** to:
> Code:
> compMgr.registerFactoryLocation(FILEPICKER_CID,
> "FilePicker JS Component",
> //@line 278 *snip*
> FILEPICKER_CONTRACTID,
> //@line 280 *snip*
> fileSpec,
> location,
> type);
OK, I'm an idiot. I had quotes around FILEPICKER_CONTRACTID, so of
course it didn't work. Now it does, though I still have the same
problem with "Save As..." in page info. More specifically, I'm trying
to save the embedded sample music clips from Amazon's CD listings, but
firefox still thinks I want to save a (non-existent) image.
> You can compile GM into a real firefox extension if you're worried
> about that.
I'll have to take a look at that -- thanks for the pointer.
--
Michael A. Marsh
http://www.umiacs.umd.edu/~mmarsh
http://mamarsh.blogspot.com
Reply to: