Re: Problem with gmail on embedded browser

2008-05-01 Thread Glen Gray
Hey Chris,


On 1 May 2008, at 16:57, Christopher Blizzard wrote:

 Glen Gray wrote:
 So, I'm guessing that somethings going wrong with the javascript/  
 session but I've no idea how to debug that. So some suggestions  
 are  definitely most welcome.

 This is a pretty vague bug report and I think that we would need a  
 lot more data to be able to help you.  I guess I would start with a  
 few questions:


Thanks for the reply. It was a bit vague alright, I'd a meeting to get  
to and didn't really finish the email properly.


 1.  Under the exact same environment does it work fine with an  
 official Firefox 2 release?

Yes it works fine under firefox2 in the same environment.

 2. Can you trim it down to a very small test case that shows the  
 problem outside of gmail?

Not as of yet. I've not experienced the problem anywhere else other  
than gmail and have had no reports of anything that would tie in from  
our customers to indicate it's happening anywhere else. Of course it  
doesn't mean it isn't happening. Isolating what's going wrong beyond  
gmail doesn't work is my current goal.

 3. Do you have access to a Firefox 3 release and if so does it  
 happen there as well?

Yes, I've made and experimental Fedora9 version of our terminal, using  
the latest beta5 from the Fedora9 repositories and it exhibits the  
same problem. So that definitely points to something that I'm doing  
wrong.

I guess another reason the original email was pretty vague is that I'm  
at a loss to where it's failing. I'm still trying to get a handle on  
what's going on. Given that most of the page loads seem to be driven  
via Javascript I'm not seeing very much coming back up the stack via  
the callbacks to help pinpoint what's different between a click on the  
Compose Mail link and reloading the current page.

I'm currently investigating the code for handling the net_state_all  
and js_status.
--
Glen Gray
[EMAIL PROTECTED]

___
dev-embedding mailing list
dev-embedding@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-embedding


Re: Problem with gmail on embedded browser

2008-05-02 Thread Glen Gray
Ok, thanks to Chris's IRC prompting yesterday, I rebuilt xulrunner  
with --enable-tests (on F9, firefox's --enable-tests doesn't do  
anything for GtkMozEmbed testing, it has to be xulrunner).

After a long re-build, I was able to test with TestGtkEmbed. I'm  
pleased to say that TestGtkEmbed DOESN'T exhibit the problem. This is  
good news for me as it means I've a reference implementation to  
compare API calls with and see if I'm doing anything stupid or missing  
anything in my initialization of the browser.

I'll keep you posted as to any further progress I make with my own  
code base.
--
Glen Gray
[EMAIL PROTECTED]




On 1 May 2008, at 18:04, Glen Gray wrote:

 I'd done a few cookie tests and cookies do seem to be enabled and
 active. And that video seems to playback fine.
 --
 Glen Gray
 [EMAIL PROTECTED]




 On 1 May 2008, at 17:13, steve lu wrote:

 Does the video loads and play automatically if you visit this page in
 your embedded browser?

 http://www.cnn.com/video/#/video/crime/2008/05/01/
 pkg.pregnant.woman.dui.baynews9

 I believe the Gmail issue is caused by not able to write to your
 cookie
 by the web site (exactly what happened in the CNN video site).

 Make sure you compile Gecko with:

 ac_add_options --enable-extensions=default,cookie

 -Steve


 Christopher Blizzard wrote:
 Glen Gray wrote:

 So, I'm guessing that somethings going wrong with the javascript/
 session but I've no idea how to debug that. So some suggestions are
 definitely most welcome.



 This is a pretty vague bug report and I think that we would need a
 lot
 more data to be able to help you.  I guess I would start with a few
 questions:

 1.  Under the exact same environment does it work fine with an
 official
 Firefox 2 release?

 2. Can you trim it down to a very small test case that shows the
 problem
 outside of gmail?

 3. Do you have access to a Firefox 3 release and if so does it  
 happen
 there as well?

 --Chris
 ___
 dev-embedding mailing list
 dev-embedding@lists.mozilla.org
 https://lists.mozilla.org/listinfo/dev-embedding



 ___
 dev-embedding mailing list
 dev-embedding@lists.mozilla.org
 https://lists.mozilla.org/listinfo/dev-embedding

 ___
 dev-embedding mailing list
 dev-embedding@lists.mozilla.org
 https://lists.mozilla.org/listinfo/dev-embedding

___
dev-embedding mailing list
dev-embedding@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-embedding


Re: Problem with gmail on embedded browser

2008-05-02 Thread Glen Gray
User-Agent string was one of the first things I looked at. The example  
CNN Video that Steve Lu mentioned yesterday for example, won't play  
with out standard user-agent string but does when left unmodified.


--
Glen Gray
[EMAIL PROTECTED]




On 2 May 2008, at 14:37, Grant Gayed wrote:

 Hi Glen,

 There was a problem until recently in SWT's Safari-based Browsers when
 accessing gmail and google calendar because they look for certain  
 user-agent
 strings in the request header to decide what to enable.  Embedding  
 cases may
 not have these strings if they are added by the browser (eg.-  
 Firefox/...)
 as opposed to the renderer (eg.- Gecko/...).  I don't know if this  
 is what
 you're seeing, but I see some similarity in your description.  The  
 swt bug
 report is https://bugs.eclipse.org/bugs/show_bug.cgi?id=220836.

 HTH,
 Grant


 Glen Gray [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
 Thanks Chris,

 I am glad though, as it means it's a problem in code that I'm
 comfortable with and I've a working reference point.

 I'm getting swamped with some other stuff at the moment so I probably
 won't get to finish this off today. But the plan is to strip it right
 back in my code and build it up again to see if I can isolate it. I'm
 sure I'll have a few questions about some of the API's that I didn't
 recognize, so you'll still be hearing from me.

 Regards,
 --
 Glen Gray
 [EMAIL PROTECTED]




 On 2 May 2008, at 13:27, Christopher Blizzard wrote:

 Glen Gray wrote:
 Ok, thanks to Chris's IRC prompting yesterday, I rebuilt xulrunner
 with --enable-tests (on F9, firefox's --enable-tests doesn't do
 anything for GtkMozEmbed testing, it has to be xulrunner).

 After a long re-build, I was able to test with TestGtkEmbed. I'm
 pleased to say that TestGtkEmbed DOESN'T exhibit the problem.  
 This is
 good news for me as it means I've a reference implementation to
 compare API calls with and see if I'm doing anything stupid or
 missing
 anything in my initialization of the browser.

 I'll keep you posted as to any further progress I make with my own
 code base.
 --

 I'm actually sad that it wasn't easy to reproduce in TestGtkEmbed.
 Now
 we can't help you track it down. :(

 --Chris
 ___
 dev-embedding mailing list
 dev-embedding@lists.mozilla.org
 https://lists.mozilla.org/listinfo/dev-embedding



 ___
 dev-embedding mailing list
 dev-embedding@lists.mozilla.org
 https://lists.mozilla.org/listinfo/dev-embedding

___
dev-embedding mailing list
dev-embedding@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-embedding


Re: Problem with gmail on embedded browser

2008-05-08 Thread Glen Gray
hey guys

I've isolated the code that was causing me those Gmail problems. it  
was unnecessarily being called in the load completed callback code, so  
I just removed it. But I'm still a little confused as to why it was  
causing problems

The code in question that was being triggered handles our GTK+  
controls on screen, so if the current uri matches one from a whitelist  
for fullscreen pages, then we hide our browser tool and status bars.  
Some pages can be configured to display just the status bar or just  
the toolbar or have the onscreen keyboard popup automatically etc.

It's pretty simply code and really just calls gtk show/hide on various  
controls, however, it was also doing a flush of any pending GTK+  
events I'm wondering if that was what was triggering the problems with  
gmail ? I'll do some further tests on this tomorrow.
--
Glen Gray
[EMAIL PROTECTED]




On 2 May 2008, at 15:42, Glen Gray wrote:

 User-Agent string was one of the first things I looked at. The example
 CNN Video that Steve Lu mentioned yesterday for example, won't play
 with out standard user-agent string but does when left unmodified.


 --
 Glen Gray
 [EMAIL PROTECTED]




 On 2 May 2008, at 14:37, Grant Gayed wrote:

 Hi Glen,

 There was a problem until recently in SWT's Safari-based Browsers  
 when
 accessing gmail and google calendar because they look for certain
 user-agent
 strings in the request header to decide what to enable.  Embedding
 cases may
 not have these strings if they are added by the browser (eg.-
 Firefox/...)
 as opposed to the renderer (eg.- Gecko/...).  I don't know if this
 is what
 you're seeing, but I see some similarity in your description.  The
 swt bug
 report is https://bugs.eclipse.org/bugs/show_bug.cgi?id=220836.

 HTH,
 Grant


 Glen Gray [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
 Thanks Chris,

 I am glad though, as it means it's a problem in code that I'm
 comfortable with and I've a working reference point.

 I'm getting swamped with some other stuff at the moment so I  
 probably
 won't get to finish this off today. But the plan is to strip it  
 right
 back in my code and build it up again to see if I can isolate it.  
 I'm
 sure I'll have a few questions about some of the API's that I didn't
 recognize, so you'll still be hearing from me.

 Regards,
 --
 Glen Gray
 [EMAIL PROTECTED]




 On 2 May 2008, at 13:27, Christopher Blizzard wrote:

 Glen Gray wrote:
 Ok, thanks to Chris's IRC prompting yesterday, I rebuilt xulrunner
 with --enable-tests (on F9, firefox's --enable-tests doesn't do
 anything for GtkMozEmbed testing, it has to be xulrunner).

 After a long re-build, I was able to test with TestGtkEmbed. I'm
 pleased to say that TestGtkEmbed DOESN'T exhibit the problem.
 This is
 good news for me as it means I've a reference implementation to
 compare API calls with and see if I'm doing anything stupid or
 missing
 anything in my initialization of the browser.

 I'll keep you posted as to any further progress I make with my own
 code base.
 --

 I'm actually sad that it wasn't easy to reproduce in TestGtkEmbed.
 Now
 we can't help you track it down. :(

 --Chris
 ___
 dev-embedding mailing list
 dev-embedding@lists.mozilla.org
 https://lists.mozilla.org/listinfo/dev-embedding



 ___
 dev-embedding mailing list
 dev-embedding@lists.mozilla.org
 https://lists.mozilla.org/listinfo/dev-embedding

 ___
 dev-embedding mailing list
 dev-embedding@lists.mozilla.org
 https://lists.mozilla.org/listinfo/dev-embedding

___
dev-embedding mailing list
dev-embedding@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-embedding


Drag threshold on FF2

2008-07-07 Thread Glen Gray
Hey Guys,

We use a GKT+ based browser with FF2/GTKMozEmbed for a bedside  
terminal. The terminal uses a touchscreen input and has a fullscreen  
web based ui. I currently have Drag Events disabled in the Xorg config  
to stop people accidentally dragging and select web page elements when  
they mean to press them. However, we may have need for drag and drop  
events in another application we're working on and so I'm wondering if  
it's possible to disable drag events in FireFox 2 or to render it  
useless by adjusting the threshold it uses to distinguish a press/ 
release from a press/drag/release.

Kind Regards,
--
Glen Gray
[EMAIL PROTECTED]




___
dev-embedding mailing list
dev-embedding@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-embedding


Re: how to disable the DND function of GtkMozEmbed

2009-01-13 Thread Glen Gray
That's a very interesting patch and might be useful to us here in  
Lincor.


reading over this briefly everything seems to make sense, though, I  
wasn't clear on what lcms is, any one care to enlighten me ?



On 13 Jan 2009, at 14:59, tonikitoo (Antonio Gomes) wrote:


Hi Li,

that wont work. You will have to disable the service in engine side,
more specifically in gtk widget code.

take a look at MOZ_NO_DRAGSERVICE bits in

https://garage.maemo.org/svn/browser/mozilla/trunk/microb-engine/microb-engine/debian/patches/microbfootprint/020_MICROB_non_conf_components_disable.diff

Br

On Tue, Jan 13, 2009 at 10:34 AM, LI Daobing lidaob...@gmail.com  
wrote:

Hello,

how to disable the DND function of GtkMozEmbed?

I use following code, but it sounds does not work:

GtkWidget* widget = gtk_moz_embed_new();
gtk_drag_dest_unset(widget);


Thanks.
LI Daobing
___
dev-embedding mailing list
dev-embedding@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-embedding





--
--Antonio Gomes
___
dev-embedding mailing list
dev-embedding@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-embedding


--
Glen Gray
sla...@slaine.org




___
dev-embedding mailing list
dev-embedding@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-embedding


gtkmozembed in Fedora 10 ?

2009-01-29 Thread Glen Gray

Hey Guys,

Trying out an F10 build of our platform. Was hoping that the initial  
work I did to get our gtkmozembed browser running on F9 would be good  
enough to get it work on F10. But it's changed yet again. Anyone know  
what provies firefox-gtkmozembed for my configure.in checks.


Thanks in advance
--
Glen Gray
sla...@slaine.org




___
dev-embedding mailing list
dev-embedding@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-embedding


Re: gtkmozembed in Fedora 10 ?

2009-02-06 Thread Glen Gray

Ok, further to this, seems lots of stuff has changed.

We'd lots of calls to mozilla_preference_set_int type functions, which  
seem to be gone 


grep'ing in /usr/include/xulrunner-sdk-1.9 dir doesn't turn up  
anything for preference_set_int.


any suggestions ?

On 29 Jan 2009, at 18:40, Glen Gray wrote:


Thanks Martin,

I don't know what I was grep'ing for on pkg-config --list-all for  
when I looked earlier (thought i was looking for mozembed).


Cheers

On 29 Jan 2009, at 16:06, Martin Stransky wrote:


Those two:

mozilla-gtkmozembed
mozilla-gtkmozembed-embedding

ma.

Glen Gray wrote:

Hey Guys,
Trying out an F10 build of our platform. Was hoping that the  
initial work I did to get our gtkmozembed browser running on F9  
would be good enough to get it work on F10. But it's changed yet  
again. Anyone know what provies firefox-gtkmozembed for my  
configure.in checks.

Thanks in advance
--
Glen Gray
sla...@slaine.org
___
dev-embedding mailing list
dev-embedding@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-embedding


___
dev-embedding mailing list
dev-embedding@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-embedding


--
Glen Gray
sla...@slaine.org




___
dev-embedding mailing list
dev-embedding@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-embedding


--
Glen Gray
sla...@slaine.org




___
dev-embedding mailing list
dev-embedding@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-embedding


Issues migrating GtkMozEmbed app to gecko 1.9

2009-12-01 Thread Glen Gray

Hey Guys,

I've emailed about this before but the project never really went 
anywhere. It's in full swing now and I'm not having much of a fun time. 
Basically, we've got a Gtk application on Linux that's been using 
GtkMozEmbed since pre Mozilla 1.0 days. It's used as a fullscreen 
browser for the UI on a touchscreen device.


I'm currently porting from using FireFox 2.0 on an older Fedora Core 
platform to FireFox 3.5.5(xulrunner 1.9.1) on Fedora12.


I'd like some pointers on how to build the TestGtkEmbed.cpp file outside 
the scope of the xulrunner/ path. I think the compiler and linker 
changes are the key to my problems, so if I could get that side of 
things working properly then I'd have a good platform to figure out why 
my code isn't working.


1) I've replicated the API calls from TestGtkEmbed.cpp for the new GRE 
and XPCOMGlue changes
2) I've used the pkg_config --cflags and --libs values from 
mozilla-gtkmozembed-embedding, which gives me

 pkg-config --libs mozilla-gtkmozembed-embedding
-L/usr/lib/xulrunner-sdk-1.9.1/lib -lxpcomglue -lplds4 -lplc4 -lnspr4 
-lpthread -ldl

3)  At runtime, I'm segfaulting in gtk_moz_embed_new()

Found xpcom path [/usr/lib/xulrunner-1.9.1/libxpcom.so]
Setting profile to [/home/glen]

Program received signal SIGSEGV, Segmentation fault.
_dl_runtime_resolve () at ../sysdeps/i386/dl-trampoline.S:43
43ret $12# Jump to function address.
Current language:  auto
The current source language is auto; currently asm.
(gdb) bt
#0  _dl_runtime_resolve () at ../sysdeps/i386/dl-trampoline.S:43
#1  0x02fbf43e in gtk_moz_embed_new () at gtkmozembed2.cpp:418
#2  0x0805a4f6 in moz_embed_new () at moz_embed.c:83
#3  0x08053d39 in main_window_init () at main.c:527
#4  0x08055347 in main (argc=3, argv=0xb274) at main.c:151

Thanks in advance,

--
Glen Graysla...@slaine.org
http://slaine.org

___
dev-embedding mailing list
dev-embedding@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-embedding


Problems compiling against GtkMozEmbed

2009-12-02 Thread Glen Gray
I stupidly replied to another thread with my email on this yesterday. 
Reposting with some updates.


I've created a project for testing out my problems and I've copied it to 
http://slaine.org/files/testgtkembed.tar.bz2


This is basically an autotools project that tries to build 
TestGtkEmbed.cpp file from 
xulrunner/embedding/browser/gtk/tests/TestGtkEmbed.cpp


I've taken a look at yelp which does compile and run on my system, and 
I've replicated as much of their m4 macro for detecting the correct 
include paths and linker paths.


I've verified that the -I and -L params I'm seeing match that of what I 
see when I compile yelp. Yet, I'm still have failures at link time, like 
the following...


SNIP
-L/usr/lib/xulrunner-sdk-1.9.1/sdk/lib -lxpcomglue -lplds4 -lplc4 
-lnspr4 -lpthread -ldl-L/usr/lib/xulrunner-sdk-1.9.1/bin 
-lxpcomglue  -o testgtkembed testgtkembed-TestGtkEmbed.o

testgtkembed-TestGtkEmbed.o: In function `main':
/home/glen/src/TestGtkEmbed/testgtkembed/src/TestGtkEmbed.cpp:210: 
undefined reference to `GRE_GetGREPathWithProperties'
/home/glen/src/TestGtkEmbed/testgtkembed/src/TestGtkEmbed.cpp:216: 
undefined reference to `XPCOMGlueStartup'

testgtkembed-TestGtkEmbed.o: In function `GTKEmbedGlueStartup':
/usr/include/xulrunner-sdk-1.9.1/unstable/gtkmozembed_glue.cpp:109: 
undefined reference to `XPCOMGlueLoadXULFunctions'

testgtkembed-TestGtkEmbed.o: In function `nsCOMPtr':
/usr/include/xulrunner-sdk-1.9.1/stable/nsCOMPtr.h:604: undefined 
reference to 
`nsCOMPtr_base::assign_from_gs_contractid(nsGetServiceByContractID, nsID 
const)'

SNIP

Thanks in advance for any help

--
Glen Graysla...@slaine.org
http://slaine.org

___
dev-embedding mailing list
dev-embedding@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-embedding


Re: Problems compiling against GtkMozEmbed

2009-12-02 Thread Glen Gray

[brown paper bag]
With all the to'ing and fro'ing I ended up forgetting to make sure that 
the xpcomglue linking was passed after the .o files.


Now I've got a proper working reference, I'll see if I can get my main 
app working after lunch.


I've updated the http://slaine.org/files/testgtkembed.tar.bz2 file with 
the tweak so it should be usable if anyones interested in playing with it.


On 02/12/09 13:29, Glen Gray wrote:
I stupidly replied to another thread with my email on this yesterday. 
Reposting with some updates.


I've created a project for testing out my problems and I've copied it 
to http://slaine.org/files/testgtkembed.tar.bz2


This is basically an autotools project that tries to build 
TestGtkEmbed.cpp file from 
xulrunner/embedding/browser/gtk/tests/TestGtkEmbed.cpp


I've taken a look at yelp which does compile and run on my system, and 
I've replicated as much of their m4 macro for detecting the correct 
include paths and linker paths.


I've verified that the -I and -L params I'm seeing match that of what 
I see when I compile yelp. Yet, I'm still have failures at link time, 
like the following...


SNIP
-L/usr/lib/xulrunner-sdk-1.9.1/sdk/lib -lxpcomglue -lplds4 -lplc4 
-lnspr4 -lpthread -ldl-L/usr/lib/xulrunner-sdk-1.9.1/bin 
-lxpcomglue  -o testgtkembed testgtkembed-TestGtkEmbed.o

testgtkembed-TestGtkEmbed.o: In function `main':
/home/glen/src/TestGtkEmbed/testgtkembed/src/TestGtkEmbed.cpp:210: 
undefined reference to `GRE_GetGREPathWithProperties'
/home/glen/src/TestGtkEmbed/testgtkembed/src/TestGtkEmbed.cpp:216: 
undefined reference to `XPCOMGlueStartup'

testgtkembed-TestGtkEmbed.o: In function `GTKEmbedGlueStartup':
/usr/include/xulrunner-sdk-1.9.1/unstable/gtkmozembed_glue.cpp:109: 
undefined reference to `XPCOMGlueLoadXULFunctions'

testgtkembed-TestGtkEmbed.o: In function `nsCOMPtr':
/usr/include/xulrunner-sdk-1.9.1/stable/nsCOMPtr.h:604: undefined 
reference to 
`nsCOMPtr_base::assign_from_gs_contractid(nsGetServiceByContractID, 
nsID const)'

SNIP

Thanks in advance for any help




--
Glen Graysla...@slaine.org
http://slaine.org

___
dev-embedding mailing list
dev-embedding@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-embedding


nsIWebBrowser and GtkMozEmbed

2009-12-07 Thread Glen Gray

Hey Guys,

Running into a runtime issue with GtkMozEmbed. When I call 
gtk_moz_embed_get_nsIWebBrowser, I'm getting a segfault with a stack 
trace that's pointing to NULL.


(gdb) bt
#0  0x in ?? ()
#1  0x0807b91f in mozilla_purge_history (embed=0x80d5810 [GtkMozEmbed],
full_purge=1) at mozilla.c:292
#2  0x08066e9d in moz_embed_uri_open (moz_embed=0x80d5810 [GtkMozEmbed], 
uri=

0x87522d0 http://localhost/main_menu.php;) at moz_embed.c:336


290  if (embed != NULL  GTK_IS_MOZ_EMBED (embed)) {
291gtk_moz_embed_get_nsIWebBrowser (GTK_MOZ_EMBED(embed),
292 browser);
293//getter_AddRefs(browser));
294  }

I've tried with getter_AddRefs based on browser being declared as
nsCOMPtrnsIWebBrowser browser;

And above with browser declared as
nsIWebBrowser *browser;

Behaves the same way in both instances. This would seem to be a runtime 
issue. I'm using XPCOM_GLUE and attempted to follow the standalone glue 
model.


Does anyone have any tips. I can't see what could be wrong. I've 
verified that the 'embed' parameter is valid and is a GtkMozEmbed 
object. I can follow the stack through some of the marshalling code with 
GDB.


If I step into the call to gtk_moz_emed_get_nsIWebBrowser, I can see it 
going into
GType gtk_moz_embed_get_type(void). The static GType varaible in there 
is not 0, so it steps down to the return part of the function. Stepping 
on the return call takes me to
GTypeInstance* g_type_check_instance_cast (GTypeInstance *type_instance, 
GType iface_type).

In there I can see that type_instance is GtkMozEmbed

(gdb) print type_instance
$1 = 0x80d5810 [GtkMozEmbed]

In the gtype.c code it performs a few checks and then if check variable 
is TRUE, it returns type_instance. This the point where it fails and I 
get a segfault in 0x000


This to me points to some sort of runtime late binding issue.

--
Glen Graysla...@slaine.org
http://slaine.org

___
dev-embedding mailing list
dev-embedding@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-embedding


Plugin crash protection and GtkMozEmbed

2010-06-28 Thread Glen Gray
Hey Guys,

I'm wondering if GtkMozEmbed based applications will take advantage of the 
plugin crash protection offered under the release of FireFox 3.6.4/ xulrunner 
1.9.2.4 ?

Are there are recommended ways of testing this crash protection ?
--
Glen Gray
sla...@slaine.org




___
dev-embedding mailing list
dev-embedding@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-embedding


Re: Plugin crash protection and GtkMozEmbed

2010-06-28 Thread Glen Gray

On 28 Jun 2010, at 15:27, Benjamin Smedberg wrote:

 On 6/28/10 10:04 AM, Glen Gray wrote:
 So to be clear, I can enable this for all plugins via
 
 dom.ipc.plugins.enabled.plugin_name  true
 
 OR, I can enable it for all plugins via
 dom.ipc.plugins.enabled true
 
 Is that correct ?
 
 Yes.

Cool, thanks.

Anyone got a known flash site that breaks on Linux for me to test :) ?

--
Glen Gray
sla...@slaine.org




___
dev-embedding mailing list
dev-embedding@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-embedding


Re: where to get libxul-embedding for ubuntu 9.10 (karmic)

2011-04-08 Thread Glen Gray
There's an open bug in the bugzilla db on this, for a long long time.

We've submitted patches to it that resolve it for us. 
https://bugzilla.mozilla.org/show_bug.cgi?id=533245

On 8 Apr 2011, at 02:29, Ratin wrote:

 On Thu, Apr 7, 2011 at 4:29 PM, Ratin rat...@gmail.com wrote:
 Hi all, I am trying to build mozembed project on ubuntu 9.10 linux
 AMD-64 and I got all the necessary packages - i am getting this :
 checking pkg-config is at least version 0.9.0... yes
 checking for GTK... yes
 checking for LIBXUL_EMBEDDING... no
 configure: error: libxul-embedding is required
 
 
 sudo add-apt-repository ppa:ubuntu-mozilla-daily/ppa
 sudo apt-get install xulrunner-2.0-gnome-support
 sudo apt-get install xulrunner-2.0
 sudo apt-get install xulrunner-2.0-mozjs
 sudo apt-get install libxul-dev
 
 
 The libxul-dev package is installed along with these :
 xulrunner-2.0-gnome-support,  xulrunner-2.0, xulrunner-2.0-mozjs,
 libxul-dev
 
 Any clue where to get this package called libxul-embedding ?
 
 Thanks a lot in advance
 
 
 
 
 Never mind - I got it to work by installing the xulrunner-dev package,
 I am seeing one issue though, when I launch the test browser, and goto
 youtube page for example, the input box is not editable. Not sure if i
 am missing a component or have to add support for it explicitly. I am
 brand new on this..
 ___
 dev-embedding mailing list
 dev-embedding@lists.mozilla.org
 https://lists.mozilla.org/listinfo/dev-embedding

--
Glen Gray
sla...@slaine.org




___
dev-embedding mailing list
dev-embedding@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-embedding


How to do embedding now

2011-09-01 Thread Glen Gray
Hey Guys,

Now that GtkMozEmbed etc. are gone, is there a documented and supported way to 
build Gecko based browsers ? If so, what's the url for the docs.

Thanks in advance,
--
Glen Gray
sla...@slaine.org




___
dev-embedding mailing list
dev-embedding@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-embedding


Re: Embedding basics

2011-11-07 Thread Glen Gray
Is there an online how-to/tutorial for using the below methods ?


On 3 Nov 2011, at 13:12, Sunil Kumar wrote:

 I need to know what all I need to do and in Which order to load a URL in
 nsWebBrowser instance.
 
 In reality I get NS_ERROR_UNEXPECTED(0x8000) when I run following code.
 
 code
 #includeiostream
 #includexpcom-config.h
 #includensXPCOMGlue.h
 #includensXPCOM.h
 #includensCOMPtr.h
 #includensStringAPI.h
 #includensEmbedString.h
 #includensILocalFile.h
 #includensIWebBrowser.h
 #includensCWebBrowser.h
 #includensIWebNavigation.h
 #includensComponentManagerUtils.h
 #includensServiceManagerUtils.h
 
 using namespace std;
 
 int main()
 {
 nsresult rv;
 nsCOMPtrnsILocalFile bin_dir;
 rv = NS_NewLocalFile(nsEmbedString(LC:\\xulrunner-sdk\\bin), PR_FALSE,
 getter_AddRefs(bin_dir));
 if(NS_FAILED(rv))
 {
 coutFailed for file. rv=rvendl;
 exit(-1);
 }
 printf(Initializing\n);
 
 nsCOMPtrnsIServiceManager sm;
 rv = NS_InitXPCOM2(getter_AddRefs(sm), bin_dir, nsnull);
 if(NS_FAILED(rv))
 {
 coutFailed INIT. rv=rvendl;
 exit(-2);
 }
 
 printf(Creating Browser components\n);
 nsCOMPtrnsIWebBrowser nsBrowser;
 nsBrowser = do_CreateInstance(NS_WEBBROWSER_CONTRACTID, rv);
 if(NS_FAILED(rv))
 coutFailed to create Browser, rv: rvendl;
 
 nsCOMPtrnsIWebNavigation nsWebNav;
 nsWebNav = do_QueryInterface(nsBrowser, rv);
 if(NS_FAILED(rv))
 coutFailed to create WebNav, Code:rvendl;
 
 char* uri = http://www.google.com;;
 rv = nsWebNav-LoadURI((const PRUnichar *)uri,
 nsIWebNavigation::LOAD_FLAGS_NONE, nsnull, nsnull, nsnull);
 if(NS_FAILED(rv))
 coutFailed to load URI, rv: rvendl;
 else
 coutURI Loaded. HoooLaalaa\n;
 
 coutShutting Down\n;
 NS_ShutdownXPCOM(nsnull);
 coutDone...\n;
 //getchar();
 return rv;
 }
 /code
 
 Any help with this? Please.
 -- 
 Your smile is the most precious thing that doesn't cost you. Keep smiling.
 :)
 ===
 SunilKumar
 --
 http://in.linkedin.com/in/sunilkr86/
 ===
 ___
 dev-embedding mailing list
 dev-embedding@lists.mozilla.org
 https://lists.mozilla.org/listinfo/dev-embedding

-- 
Glen Gray
sla...@slaine.org





___
dev-embedding mailing list
dev-embedding@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-embedding


Re: Embedding basics

2011-11-28 Thread Glen Gray
Hey Sunil,

I was wondering if you ever solved your problem here ?

On 8 Nov 2011, at 05:17, Sunil Kumar wrote:

 On Tue, Nov 8, 2011 at 10:33 AM, Sunil Kumar badboy...@gmail.com wrote:
 
 
 
 On Mon, Nov 7, 2011 at 8:26 PM, g...@novadsp.com g...@novadsp.com wrote:
 
 Hi Sunil
 
 How 'headless' does it need to be? And for which OS?
 
 
 On 07/11/2011 13:37, Sunil Kumar wrote:
 
 Is there any documentation for 'offscreen' branch?
 
 On Mon, Nov 7, 2011 at 7:05 PM, Sunil Kumarbadboy...@gmail.com  wrote:
 
 I wish it was there.
 I could not find any proper documentation for this.
 This code is taken from bits of codes from many projects.
 
 On Mon, Nov 7, 2011 at 6:46 PM, Glen Graysla...@slaine.org  wrote:
 
 Is there an online how-to/tutorial for using the below methods ?
 
 
 On 3 Nov 2011, at 13:12, Sunil Kumar wrote:
 
 I need to know what all I need to do and in Which order to load a URL
 in
 nsWebBrowser instance.
 
 In reality I get NS_ERROR_UNEXPECTED(**0x8000) when I run
 following
 
 code.
 
 
 code
 #includeiostream
 #includexpcom-config.h
 #includensXPCOMGlue.h
 #includensXPCOM.h
 #includensCOMPtr.h
 #includensStringAPI.h
 #includensEmbedString.h
 #includensILocalFile.h
 #includensIWebBrowser.h
 #includensCWebBrowser.h
 #includensIWebNavigation.h
 #include**nsComponentManagerUtils.h
 #include**nsServiceManagerUtils.h
 
 using namespace std;
 
 int main()
 {
 nsresult rv;
 nsCOMPtrnsILocalFile  bin_dir;
 rv = NS_NewLocalFile(nsEmbedString(**LC:\\xulrunner-sdk\\bin),
 PR_FALSE,
 getter_AddRefs(bin_dir));
 if(NS_FAILED(rv))
 {
 coutFailed for file. rv=rvendl;
 exit(-1);
 }
 printf(Initializing\n);
 
 nsCOMPtrnsIServiceManager  sm;
 rv = NS_InitXPCOM2(getter_AddRefs(**sm), bin_dir, nsnull);
 if(NS_FAILED(rv))
 {
 coutFailed INIT. rv=rvendl;
 exit(-2);
 }
 
 printf(Creating Browser components\n);
 nsCOMPtrnsIWebBrowser  nsBrowser;
 nsBrowser = do_CreateInstance(NS_**WEBBROWSER_CONTRACTID,rv);
 if(NS_FAILED(rv))
 coutFailed to create Browser, rv:rvendl;
 
 nsCOMPtrnsIWebNavigation  nsWebNav;
 nsWebNav = do_QueryInterface(nsBrowser,**rv);
 if(NS_FAILED(rv))
 coutFailed to create WebNav, Code:rvendl;
 
 char* uri = http://www.google.com;;
 rv = nsWebNav-LoadURI((const PRUnichar *)uri,
 nsIWebNavigation::LOAD_FLAGS_**NONE, nsnull, nsnull, nsnull);
 if(NS_FAILED(rv))
 coutFailed to load URI, rv:rvendl;
 else
 coutURI Loaded. HoooLaalaa\n;
 
 coutShutting Down\n;
 NS_ShutdownXPCOM(nsnull);
 coutDone...\n;
 //getchar();
 return rv;
 }
 /code
 
 Any help with this? Please.
 --
 Your smile is the most precious thing that doesn't cost you. Keep
 
 smiling.
 
 :)
 ===
SunilKumar
 --
 http://in.linkedin.com/in/**sunilkr86/http://in.linkedin.com/in/sunilkr86/
 ===
 __**_
 dev-embedding mailing list
 dev-embedding@lists.mozilla.**org dev-embedding@lists.mozilla.org
 https://lists.mozilla.org/**listinfo/dev-embeddinghttps://lists.mozilla.org/listinfo/dev-embedding
 
 
 --
 Glen Gray
 sla...@slaine.org
 
 
 
 
 
 
 
 
 --
 Your smile is the most precious thing that doesn't cost you. Keep
 smiling.
 :)
 ===
 SunilKumar
 --
 http://in.linkedin.com/in/**sunilkr86/http://in.linkedin.com/in/sunilkr86/
 ===
 
 
 
 
 
 
 
 I m a newbie in embedding mozilla.
 But it should be OS neutral.
 
 
 --
 Your smile is the most precious thing that doesn't cost you. Keep smiling.
 :)
 ===
 SunilKumar
 --
 http://in.linkedin.com/in/sunilkr86/
 ===
 
 
 i have added a GtkWindow to nsIBaseWindow and now it crashes at EIP 0x49.
 line: nsBaseWindow-Create();
 
 code
 
nsCOMPtrnsIWebNavigation nsNav;
 nsNav = do_QueryInterface(nsBrowser, rv);
 nsCOMPtrnsIBaseWindow nsBaseWindow;
 nsBaseWindow = do_QueryInterface(nsBrowser, rv);
 nsCOMPtrnsIWebBrowserFocus nsWBFocus;
 nsWBFocus = do_QueryInterface(nsBrowser,rv);
 
 GtkWidget* gtkWindow = InitWindow();
 nsBaseWindow-InitWindow((nativeWindow) gtkWindow, nsnull, 0, 0, 500, 500);
 nsBaseWindow-Create();
 
 coutLoading URL...\n;
 rv = nsNav-LoadURI((PRUnichar*)http://www.google.com;,
 nsIWebNavigation::LOAD_FLAGS_NONE, nsnull, nsnull, nsnull);
 
 /code
 -- 
 Your smile is the most precious thing that doesn't cost you. Keep smiling.
 :)
 ===
 SunilKumar
 --
 http://in.linkedin.com/in/sunilkr86/
 ===
 ___
 dev-embedding mailing list
 dev-embedding@lists.mozilla.org
 https://lists.mozilla.org/listinfo/dev-embedding

-- 
Glen Gray
sla...@slaine.org





___
dev-embedding mailing list
dev-embedding@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-embedding


Re: Focus problem with mozembed

2012-11-05 Thread Glen Gray
This thread might be of help, it's old but may still be relevant.

https://bugzilla.mozilla.org/show_bug.cgi?id=533245

On 2 Nov 2012, at 14:29, Zoltan Boszormenyi zboszorme...@sicom.com wrote:

 Hi,
 
 by running the gtk/tests/test.cpp code, I have noticed that the embedded 
 Gecko engine cannot get the focus. The GtkEntry for the URL and the 
 GtkNotebook page headers are highlighted when tabbing through them but the 
 notebook leaf, the page content cannot. E.g. the entry for the Google 
 search box doesn't get keyboard events, although all other events seem to get 
 through. E.g. clicking on the keyboard icon in the right side of the search 
 entry box shows the on-screen keyboard and it accepts clicks which make the 
 letters appear in the search box. So, everything seems to work except the 
 keyboard focus.
 
 I am using 64-bit Fedora 17, xulrunner-16.0.2 and mozembed tip (29ac0fe51754) 
 with the previously posted patch.
 
 I also noticed that gtk/x11/moz-web-view.cpp and gtk/win32/moz-web-view.cpp 
 are very different. Why? The keyboard focus problem may be solved by unifying 
 them, no? Can someone help me?
 
 Thanks in advance,
 Zoltán Böszörményi
 ___
 dev-embedding mailing list
 dev-embedding@lists.mozilla.org
 https://lists.mozilla.org/listinfo/dev-embedding

-- 
Glen Gray
sla...@slaine.org





___
dev-embedding mailing list
dev-embedding@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-embedding