First you need to do "make xpi" in the [build directory]/extensions/jssh
directory. This will create xpi in the following directory:
[build directory]/dist.

I use the following .mozconfig file for building Firefox with JSSh on
windows:
. $topsrcdir/browser/config/mozconfig
mk_add_options moz_objd...@topsrcdir@/fx35-jssh

ac_add_options --disable-installer
ac_add_options --disable-vista-sdk
ac_add_options --disable-vista-sdk-requirements
ac_add_options --enable-extensions=default,jssh
ac_add_options --disable-xpconnect-idispatch
ac_add_options --disable-activex
ac_add_options --disable-activex-scripting
ac_add_options --disable-accessibility

Thanks,
Angrez

On Mon, Jul 6, 2009 at 3:45 PM, Haridharan Nattamai Gangadharan <
haridha...@gmail.com> wrote:

> I tried to make the new XPI; but there were no make rules defined in the
> client.mk.  I tried to modify the debug flag details and it seems to be
> working fine now.
>
> I'm able to use them on FireFox 3.5.  Could you suggest what are the basic
> necessary flags.
>
> thanks,
> Hari.
>
>
> On Mon, Jul 6, 2009 at 3:10 PM, Angrez Singh <ang...@gmail.com> wrote:
>
>> I think you should create the new xpi using "MAKE xpi" command in JSSH
>> directory. After that you can unpack it and re-structure it like the one
>> that is being used for 3.0. Make sure you don't replace any files just
>> restructure the new XPI. It should work.
>>
>> - Angrez
>>
>>
>> On Mon, Jul 6, 2009 at 2:57 PM, Hari <haridha...@gmail.com> wrote:
>>
>>>
>>> Hi Angrez,
>>>
>>> I'm trying to use the FireWatir for automating on Firefox 3.5 on Mac
>>> OS X Leopard (Intel arch).  The JSSh XPI I downloaded for Firefox 3.0
>>> was from
>>> http://wiki.openqa.org/download/attachments/13893658/jssh-20080924-Darwin.xpi
>>> .
>>>
>>> I tried to unpack the XPI and modify the <em:maxVersion> value to
>>> 3.*.* and repacked.  This does not open the port 9997 when Firefox
>>> launched as
>>> # ./firefox-bin -jssh
>>>
>>> I tried to download the Mozilla source for v3.5 and build with the
>>> extension jssh.  The built firefox-bin (available at ./fx-jssh/dist/
>>> firefox/Shiretoko.app/Contents/MacOS/firefox-bin) solves the problem
>>> but not completely.  I'm expecting to have an XPI that could be
>>> installed on a Firefox bundle that is available in the
>>> www.mozilla.com/firefox/
>>>
>>> Steps I used to build the firefox are
>>>
>>> 1.  Download tar ball from
>>>
>>> ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/3.5rc3/source/firefox-3.5rc3-source.tar.bz2
>>>
>>> 2.  Install Xcode, MacPorts and ports for mercurial, libidl and
>>> autoconf213.
>>>
>>> 3.  Create .mozconfig file in the home directory with the contents
>>> ######### ~/.mozconfig #############
>>> . $topsrcdir/browser/config/mozconfig
>>> mk_add_options moz_objd...@topsrcdir@/fx-jssh
>>> mk_add_options MOZ_CO_PROJECT=browser,xulrunner
>>> ac_add_options --enable-extensions=default,jssh
>>> #ac_add_options --enable-debug --disable-optimize
>>> #ac_add_options --enable-shared --disable-static
>>> #ac_add_options --enable-static
>>> ac_add_options --with-macos-sdk=/Developer/SDKs/MacOSX10.4u.sdk
>>> mk_add_options MOZ_MAKE_FLAGS="-s -j4"
>>>
>>> 4.  Compile the source
>>> # cd mozilla; make -f client.mk build
>>>
>>> Then I grabbed the libjssh.dylib from the newly built Firefox;
>>> replaced it for the libjssh.dylib in the XPI that was working for
>>> v3.0.  Modify the max version tag in the install.rdf and repack it.
>>>
>>> The newly packed XPI does not work for both Firefox 3.0 & 3.5.  Could
>>> you please help me over here and let me know if I have been doing
>>> something wrong.
>>>
>>> thanks,
>>> Hari.
>>>
>>> On Jul 6, 12:01 pm, Angrez Singh <ang...@gmail.com> wrote:
>>> > You need to build Firefox with the JSSh extension enabled. To create
>>> the XPI
>>> > go to JSSh directory and say "make xpi" that will generate the XPI. The
>>> only
>>> > problem with the generated XPI is that its format is compatible with
>>> only
>>> > Firefox 1.5.x versions. We need to tweak the XPI (nothing but a zip
>>> file) a
>>> > bit. Let me know if you need any help while compiling Firefox code.
>>> >
>>> > Thanks,
>>> > Angrez
>>> >
>>> > On Fri, Jul 3, 2009 at 6:45 PM, Felipe Knorr Kuhn <fkn...@gmail.com>
>>> wrote:
>>> >
>>> > > Hello Angrez,
>>> >
>>> > > To build the XPI, do you have to go through the whole Firefox
>>> building
>>> > > process?
>>> >
>>> > > I've seen guides to build Firefox+JSSh, but I don't know if it
>>> creates the
>>> > > extension file separately or not :)
>>> >
>>> > > I could try to build it for Linux.
>>> >
>>> > > FK
>>> >
>>> > > On Fri, Jul 3, 2009 at 9:44 AM, Angrez Singh <ang...@gmail.com>
>>> wrote:
>>> >
>>> > >> Sure let me know where it fails
>>> >
>>> > >> On Fri, Jul 3, 2009 at 5:28 PM, Gonza <gonzalogte...@gmail.com>
>>> wrote:
>>> >
>>> > >>> Works fine! After testing it for a while I can tell you It works!
>>> I've
>>> > >>> several TCs, if any fails because jssh, I'll let you know.
>>> >
>>> > >>> Thanks,
>>> >
>>> > >>> Gonza
>>>
>>>
>>>
>>
>>
>>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to