<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-6665</id>
	<title>Nabble - Mozilla - Embedding</title>
	<updated>2009-12-11T03:23:35Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/Mozilla---Embedding-f6665.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Mozilla---Embedding-f6665.html" />
	<subtitle type="html">For embedding Mozilla components such as Gecko, ender, and JavaScript into software (see also Layout, small-device embedding, and footprint.</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26742600</id>
	<title>unable to write in textbox/text area</title>
	<published>2009-12-11T03:23:35Z</published>
	<updated>2009-12-11T03:23:35Z</updated>
	<author>
		<name>testols ols</name>
	</author>
	<content type="html">I have embedded Xulrunner into my native application. The webpage
&lt;br&gt;opens up in xulrunner browser and renders the html page correctly.
&lt;br&gt;However the browser is not letting me to enter text into the text
&lt;br&gt;fields or text area. Is there anything specific required for letting
&lt;br&gt;the user enter text.
&lt;br&gt;_______________________________________________
&lt;br&gt;dev-embedding mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26742600&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-embedding@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.mozilla.org/listinfo/dev-embedding&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.mozilla.org/listinfo/dev-embedding&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/unable-to-write-in-textbox-text-area-tp26742600p26742600.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26739964</id>
	<title>Re: Getting the CSS rules collection</title>
	<published>2009-12-10T23:56:22Z</published>
	<updated>2009-12-10T23:56:22Z</updated>
	<author>
		<name>Boris Zbarsky</name>
	</author>
	<content type="html">On 12/10/09 8:22 AM, martin wrote:
&lt;br&gt;&amp;gt; Thank you for your answer. I have to tell that I'm not familiar with
&lt;br&gt;&amp;gt; things like JSContext, nsIJSContextStack yet. I tried to push current
&lt;br&gt;&amp;gt; JSContext on the stack, but no success. Could you please provide some
&lt;br&gt;&amp;gt; advice more in detail please?
&lt;br&gt;&lt;br&gt;You could try looking through nsContentUtils.h/cpp for places that push 
&lt;br&gt;JSContexts and do likewise...
&lt;br&gt;&lt;br&gt;Sorry, I'm not going to write the code right now.
&lt;br&gt;&lt;br&gt;&amp;gt; What I'm trying to do is to retrieve all stylesheets, change it and
&lt;br&gt;&amp;gt; set this new value. I just want to edit the document's CSS. If there's
&lt;br&gt;&amp;gt; some better way to achieve this, please let me know. Probably I didn't
&lt;br&gt;&amp;gt; choose the right way.
&lt;br&gt;&lt;br&gt;I don't believe there's a good way to do this in C++. &amp;nbsp;Certainly not if 
&lt;br&gt;you plan to modify the rules.
&lt;br&gt;&lt;br&gt;-Boris
&lt;br&gt;_______________________________________________
&lt;br&gt;dev-embedding mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26739964&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-embedding@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.mozilla.org/listinfo/dev-embedding&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.mozilla.org/listinfo/dev-embedding&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Getting-the-CSS-rules-collection-tp26680613p26739964.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26730274</id>
	<title>Re: Getting the CSS rules collection</title>
	<published>2009-12-10T08:22:36Z</published>
	<updated>2009-12-10T08:22:36Z</updated>
	<author>
		<name>martin-278</name>
	</author>
	<content type="html">On 8. Dec., 06:18 h., Boris Zbarsky &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26730274&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bzbar...@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On 12/7/09 9:15 AM, martin wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; it doesn't pass the 'if (rules)' condition and I wasn't able to find
&lt;br&gt;&amp;gt; &amp;gt; out what's wrong.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; You're calling this from C++, and presumably without JS on the stack,
&lt;br&gt;&amp;gt; and therefore end up failing the security check GetCSSRules does.  Had
&lt;br&gt;&amp;gt; you checked the return value you would have known at least that you were
&lt;br&gt;&amp;gt; failing a security check...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; You may be able to work around this by pushing the document's JSContext
&lt;br&gt;&amp;gt; on the JS context stack, though if that context can be running script in
&lt;br&gt;&amp;gt; your situation and if that script is not same-origin with the stylesheet
&lt;br&gt;&amp;gt; (or heck, if the document is not same-origin with the stylesheet) you
&lt;br&gt;&amp;gt; won't get the rules.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If this is Gecko 1.9.2 or later, you can probably use
&lt;br&gt;&amp;gt; pushContextPrincipal on the security manager to push a new jscontext and
&lt;br&gt;&amp;gt; the stylesheet's principal; that would guarantee things to work.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -Boris
&lt;/div&gt;&lt;br&gt;Hi Boris,
&lt;br&gt;Thank you for your answer. I have to tell that I'm not familiar with
&lt;br&gt;things like JSContext, nsIJSContextStack yet. I tried to push current
&lt;br&gt;JSContext on the stack, but no success. Could you please provide some
&lt;br&gt;advice more in detail please? I don't know how to retrieve document's
&lt;br&gt;JSContext. The Gecko version is lower then 1.9.2 unfortunately.
&lt;br&gt;&lt;br&gt;What I'm trying to do is to retrieve all stylesheets, change it and
&lt;br&gt;set this new value. I just want to edit the document's CSS. If there's
&lt;br&gt;some better way to achieve this, please let me know. Probably I didn't
&lt;br&gt;choose the right way.
&lt;br&gt;&lt;br&gt;Thank you!
&lt;br&gt;&lt;br&gt;Martin
&lt;br&gt;_______________________________________________
&lt;br&gt;dev-embedding mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26730274&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-embedding@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.mozilla.org/listinfo/dev-embedding&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.mozilla.org/listinfo/dev-embedding&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Getting-the-CSS-rules-collection-tp26680613p26730274.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26722028</id>
	<title>Re: Does anyone know the work-around for this gtkmozembed focus  issue?</title>
	<published>2009-12-09T20:25:06Z</published>
	<updated>2009-12-09T20:25:06Z</updated>
	<author>
		<name>Xianzhu Wang</name>
	</author>
	<content type="html">I just found the workaround method:
&lt;br&gt;&lt;br&gt;In widget/src/gtk2/nsWindow.cpp, change the following line (line No. 2887
&lt;br&gt;for 1.9.1):
&lt;br&gt;&amp;nbsp; &amp;nbsp;if (!gFocusWindow &amp;&amp; containerWindow) {
&lt;br&gt;to
&lt;br&gt;&amp;nbsp; &amp;nbsp;if (containerWindow) {
&lt;br&gt;&lt;br&gt;I also found another bug in 1.9.2 (
&lt;br&gt;&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=533245&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://bugzilla.mozilla.org/show_bug.cgi?id=533245&lt;/a&gt;) that clicking a
&lt;br&gt;focusable element in an embedded browser window can't make the element
&lt;br&gt;focused. I also found the workaround (the above workaround is not needed),
&lt;br&gt;please see in the bug report if you are interested.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Xianzhu
&lt;br&gt;&lt;br&gt;2009/12/7 Xianzhu Wang &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26722028&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;phnixwxz@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; We encountered a bug of gtkmozembed that it can't correctly transfer
&lt;br&gt;&amp;gt; focus between two embedded browsers in one window. We submitted the
&lt;br&gt;&amp;gt; bug report (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=490447&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://bugzilla.mozilla.org/show_bug.cgi?id=490447&lt;/a&gt;) half
&lt;br&gt;&amp;gt; a year ago, but we still haven't the solution. I have tried to
&lt;br&gt;&amp;gt; discover the cause, but the focus logic is too complex to me.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Has anyone encountered the same issue, and knows the work-around?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt; Xianzhu
&lt;br&gt;&amp;gt;
&lt;/div&gt;_______________________________________________
&lt;br&gt;dev-embedding mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26722028&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-embedding@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.mozilla.org/listinfo/dev-embedding&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.mozilla.org/listinfo/dev-embedding&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Does-anyone-know-the-work-around-for-this-gtkmozembed-focus-issue--tp26672523p26722028.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26717611</id>
	<title>How to Embed Intro? ( Any help would be greatly appreciated)</title>
	<published>2009-12-09T12:59:52Z</published>
	<updated>2009-12-09T12:59:52Z</updated>
	<author>
		<name>ghost-12</name>
	</author>
	<content type="html">Hey All,
&lt;br&gt;&lt;br&gt;I'm needing assistance getting started. I've looked at Mozilla docs 
&lt;br&gt;which I will continue to do and am grateful to have, however from an SDK 
&lt;br&gt;API standpoint, I was hoping to find something more like.
&lt;br&gt;&lt;br&gt;To Embed do the following:
&lt;br&gt;&lt;br&gt;1. Download xulrunner-XXX or Firefox-XXX source (whats the difference?)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a) To build for embedding purposes, .mozconfig should be?
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b) How to install ( e.g. make install or equiv which puts libs?)
&lt;br&gt;&lt;br&gt;2. When compiling include:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a) Which switches (e.g. -DMOZILLA_INTERNAL_API -DMOZ_XUL )
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b) Which headers to include ( normally, but I think I got this )
&lt;br&gt;&lt;br&gt;3. When Linking:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a) Which libs (e.g. -lxul , but I don't see a libxul.a or dylib)
&lt;br&gt;&lt;br&gt;4. Sample/minimal Hello World (helpful, but I can use the more 
&lt;br&gt;complicated apps that embed mozilla, which makes it more complicated to 
&lt;br&gt;focus on what is necessary. But now I'm using Camino as a guide )
&lt;br&gt;&lt;br&gt;5. And Any gotchas would be nice, but I live without.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Instead what I get at times when I thinking I'm getting somewhere, is a 
&lt;br&gt;document that read &amp;quot;Warning: &amp;nbsp;This document is out of date. &amp;nbsp;You should 
&lt;br&gt;instead build XULRunner and use it for all new embedding...&amp;quot; as found in 
&lt;br&gt;&amp;nbsp; document titled &amp;quot;Roll your own browser - An embedding HowTo&amp;quot;, which 
&lt;br&gt;appeared to be what I wanted, as apposed to the XUL doc which wants to 
&lt;br&gt;write XUL script, which is not the kind of embedding I want, etc.
&lt;br&gt;&lt;br&gt;Basically, I desire a C/C++ Unix/X11 gecko embed, without using say 
&lt;br&gt;MozEmbed Gtk or the like, which 0on't expose all the API features.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Any help would be greatly appreciated, answers or references to valid 
&lt;br&gt;docs that have them, meanwhile I'll be poking around still. Many Thanks!
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;dev-embedding mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26717611&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-embedding@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.mozilla.org/listinfo/dev-embedding&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.mozilla.org/listinfo/dev-embedding&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-Embed-Intro--%28-Any-help-would-be-greatly-appreciated%29-tp26717611p26717611.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26694765</id>
	<title>Re: nsIWebBrowser and GtkMozEmbed</title>
	<published>2009-12-08T06:29:56Z</published>
	<updated>2009-12-08T06:29:56Z</updated>
	<author>
		<name>Glen Gray</name>
	</author>
	<content type="html">Ok, found the problem. Seems there's an additional step to bind the glue 
&lt;br&gt;correctly.
&lt;br&gt;&lt;br&gt;I couldn't find any documentation on this. Aside from the &amp;nbsp;
&lt;br&gt;GTKEmbedGlueStartup() call, you also need to call 
&lt;br&gt;GTKEmbedGlueStartupInternal().
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;On 07/12/09 15:27, Glen Gray wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hey Guys,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Running into a runtime issue with GtkMozEmbed. When I call 
&lt;br&gt;&amp;gt; gtk_moz_embed_get_nsIWebBrowser, I'm getting a segfault with a stack 
&lt;br&gt;&amp;gt; trace that's pointing to NULL.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; (gdb) bt
&lt;br&gt;&amp;gt; #0 &amp;nbsp;0x00000000 in ?? ()
&lt;br&gt;&amp;gt; #1 &amp;nbsp;0x0807b91f in mozilla_purge_history (embed=0x80d5810 [GtkMozEmbed],
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; full_purge=1) at mozilla.c:292
&lt;br&gt;&amp;gt; #2 &amp;nbsp;0x08066e9d in moz_embed_uri_open (moz_embed=0x80d5810 
&lt;br&gt;&amp;gt; [GtkMozEmbed], uri=
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; 0x87522d0 &amp;quot;&lt;a href=&quot;http://localhost/main_menu.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://localhost/main_menu.php&lt;/a&gt;&amp;quot;) at moz_embed.c:336
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 290 &amp;nbsp; &amp;nbsp; &amp;nbsp;if (embed != NULL &amp;&amp; GTK_IS_MOZ_EMBED (embed)) {
&lt;br&gt;&amp;gt; 291 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;gtk_moz_embed_get_nsIWebBrowser (GTK_MOZ_EMBED(embed),
&lt;br&gt;&amp;gt; 292 &amp;browser);
&lt;br&gt;&amp;gt; 293 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//getter_AddRefs(browser));
&lt;br&gt;&amp;gt; 294 &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I've tried with getter_AddRefs based on browser being declared as
&lt;br&gt;&amp;gt; nsCOMPtr&amp;lt;nsIWebBrowser&amp;gt; browser;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; And above with browser declared as
&lt;br&gt;&amp;gt; nsIWebBrowser *browser;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Behaves the same way in both instances. This would seem to be a 
&lt;br&gt;&amp;gt; runtime issue. I'm using XPCOM_GLUE and attempted to follow the 
&lt;br&gt;&amp;gt; standalone glue model.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Does anyone have any tips. I can't see what could be wrong. I've 
&lt;br&gt;&amp;gt; verified that the 'embed' parameter is valid and is a GtkMozEmbed 
&lt;br&gt;&amp;gt; object. I can follow the stack through some of the marshalling code 
&lt;br&gt;&amp;gt; with GDB.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If I step into the call to gtk_moz_emed_get_nsIWebBrowser, I can see 
&lt;br&gt;&amp;gt; it going into
&lt;br&gt;&amp;gt; GType gtk_moz_embed_get_type(void). The static GType varaible in there 
&lt;br&gt;&amp;gt; is not 0, so it steps down to the return part of the function. 
&lt;br&gt;&amp;gt; Stepping on the return call takes me to
&lt;br&gt;&amp;gt; GTypeInstance* g_type_check_instance_cast (GTypeInstance 
&lt;br&gt;&amp;gt; *type_instance, GType iface_type).
&lt;br&gt;&amp;gt; In there I can see that type_instance is GtkMozEmbed
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; (gdb) print type_instance
&lt;br&gt;&amp;gt; $1 = 0x80d5810 [GtkMozEmbed]
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; In the gtype.c code it performs a few checks and then if check 
&lt;br&gt;&amp;gt; variable is TRUE, it returns type_instance. This the point where it 
&lt;br&gt;&amp;gt; fails and I get a segfault in 0x0000000
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This to me points to some sort of runtime late binding issue.
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Glen Gray&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26694765&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;slaine@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;a href=&quot;http://slaine.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://slaine.org&lt;/a&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;dev-embedding mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26694765&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-embedding@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.mozilla.org/listinfo/dev-embedding&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.mozilla.org/listinfo/dev-embedding&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/nsIWebBrowser-and-GtkMozEmbed-tp26678850p26694765.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26692210</id>
	<title>Embedding Gecko/XULRunner for ARM Environment.</title>
	<published>2009-12-08T03:07:29Z</published>
	<updated>2009-12-08T03:07:29Z</updated>
	<author>
		<name>Wrangler-2</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;Can I build Gecko/XULRunner for ARM Environment? If yes, can anybody
&lt;br&gt;let me know the process in detail?
&lt;br&gt;&lt;br&gt;The following are the contents of the &amp;quot;mozconfig&amp;quot; file that I'm using
&lt;br&gt;-
&lt;br&gt;------------------------------------------------------------------------------------------------------
&lt;br&gt;CROSS_COMPILE=1
&lt;br&gt;mk_add_options MOZ_CO_PROJECT=xulrunner
&lt;br&gt;mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-xulrunner
&lt;br&gt;ac_add_options --enable-application=xulrunner
&lt;br&gt;ac_add_options --disable-javaxpcom
&lt;br&gt;# with Windows XP support
&lt;br&gt;# ac_add_options --with-windows-version=600
&lt;br&gt;--host=i686
&lt;br&gt;--target=arm
&lt;br&gt;-------------------------------------------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;But, after I build the Mozilla Sources and then go to the Directory
&lt;br&gt;&amp;quot;obj-xulrunner/embedding/config/&amp;quot; and run make there, it comes up with
&lt;br&gt;the following error -
&lt;br&gt;----------------------------------------------------------------------------------------------------------------------
&lt;br&gt;d:/Projects/mozilla-1.9.2/obj-xulrunner/config/nsinstall -t ../../dist/
&lt;br&gt;bin/mfcem
&lt;br&gt;bed.exe ../../dist/Embed
&lt;br&gt;nsinstall: ..\..\dist\bin\mfcembed.exe: No such file or directory
&lt;br&gt;make[2]: *** [embed_copy] Error 3
&lt;br&gt;make[2]: Leaving directory `/d/Projects/mozilla-1.9.2/obj-xulrunner/
&lt;br&gt;embedding/co
&lt;br&gt;nfig'
&lt;br&gt;make[1]: *** [libs] Error 2
&lt;br&gt;make[1]: Leaving directory `/d/Projects/mozilla-1.9.2/obj-xulrunner/
&lt;br&gt;embedding/co
&lt;br&gt;nfig'
&lt;br&gt;make: *** [all] Error 2
&lt;br&gt;-----------------------------------------------------------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Somebody please help, as I stand in a crossroad, from where I can't
&lt;br&gt;move further.
&lt;br&gt;&lt;br&gt;-Wrangler.
&lt;br&gt;_______________________________________________
&lt;br&gt;dev-embedding mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26692210&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-embedding@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.mozilla.org/listinfo/dev-embedding&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.mozilla.org/listinfo/dev-embedding&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Embedding-Gecko-XULRunner-for-ARM-Environment.-tp26692210p26692210.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26688895</id>
	<title>Re: Getting the CSS rules collection</title>
	<published>2009-12-07T21:18:55Z</published>
	<updated>2009-12-07T21:18:55Z</updated>
	<author>
		<name>Boris Zbarsky</name>
	</author>
	<content type="html">On 12/7/09 9:15 AM, martin wrote:
&lt;br&gt;&amp;gt; it doesn't pass the 'if (rules)' condition and I wasn't able to find
&lt;br&gt;&amp;gt; out what's wrong.
&lt;br&gt;&lt;br&gt;You're calling this from C++, and presumably without JS on the stack, 
&lt;br&gt;and therefore end up failing the security check GetCSSRules does. &amp;nbsp;Had 
&lt;br&gt;you checked the return value you would have known at least that you were 
&lt;br&gt;failing a security check...
&lt;br&gt;&lt;br&gt;You may be able to work around this by pushing the document's JSContext 
&lt;br&gt;on the JS context stack, though if that context can be running script in 
&lt;br&gt;your situation and if that script is not same-origin with the stylesheet 
&lt;br&gt;(or heck, if the document is not same-origin with the stylesheet) you 
&lt;br&gt;won't get the rules.
&lt;br&gt;&lt;br&gt;If this is Gecko 1.9.2 or later, you can probably use 
&lt;br&gt;pushContextPrincipal on the security manager to push a new jscontext and 
&lt;br&gt;the stylesheet's principal; that would guarantee things to work.
&lt;br&gt;&lt;br&gt;-Boris
&lt;br&gt;_______________________________________________
&lt;br&gt;dev-embedding mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26688895&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-embedding@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.mozilla.org/listinfo/dev-embedding&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.mozilla.org/listinfo/dev-embedding&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Getting-the-CSS-rules-collection-tp26680613p26688895.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26680613</id>
	<title>Getting the CSS rules collection</title>
	<published>2009-12-07T09:15:00Z</published>
	<updated>2009-12-07T09:15:00Z</updated>
	<author>
		<name>martin-278</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I'm trying to get the collection of CSS rules of certain document.
&lt;br&gt;Following is the source code I try to use to retrieve those rules.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nsCOMPtr&amp;lt;nsIInterfaceRequestor&amp;gt; requestor;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this-&amp;gt;GetInterfaceRequestor(getter_AddRefs(requestor));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nsCOMPtr&amp;lt;nsIDOMDocument&amp;gt; document = do_GetInterface(requestor);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nsCOMPtr&amp;lt;nsIDOMDocumentStyle&amp;gt; doc = do_QueryInterface(document);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (doc)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nsCOMPtr&amp;lt;nsIDOMStyleSheetList&amp;gt; sheets;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nsresult rv = doc-&amp;gt;GetStyleSheets(getter_AddRefs(sheets));
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PRUint32 length;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sheets-&amp;gt;GetLength(&amp;length);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (PRUint32 i = 0; i &amp;lt; length; ++i)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nsCOMPtr&amp;lt;nsIDOMStyleSheet&amp;gt; sheet;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sheets-&amp;gt;Item(i, getter_AddRefs(sheet));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nsCOMPtr&amp;lt;nsIDOMCSSStyleSheet&amp;gt; cssSheet = do_QueryInterface(sheet);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (cssSheet)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nsCOMPtr&amp;lt;nsIDOMCSSRuleList&amp;gt; rules;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cssSheet-&amp;gt;GetCssRules(getter_AddRefs(rules));
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (rules)//this will be false!!!
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PRUint32 rulesLength;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rv = rules-&amp;gt;GetLength(&amp;rulesLength);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (PRUint32 j = 0; j &amp;lt; rulesLength; j++)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nsCOMPtr&amp;lt;nsIDOMCSSRule&amp;gt; rule;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rules-&amp;gt;Item(j, getter_AddRefs(rule));
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nsAutoString ruleText;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rule-&amp;gt;GetCssText(ruleText);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;it doesn't pass the 'if (rules)' condition and I wasn't able to find
&lt;br&gt;out what's wrong. If you were able to help, it would be really great.
&lt;br&gt;Thank you in advance!
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;martin
&lt;br&gt;_______________________________________________
&lt;br&gt;dev-embedding mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26680613&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-embedding@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.mozilla.org/listinfo/dev-embedding&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.mozilla.org/listinfo/dev-embedding&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Getting-the-CSS-rules-collection-tp26680613p26680613.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26678850</id>
	<title>nsIWebBrowser and GtkMozEmbed</title>
	<published>2009-12-07T07:27:01Z</published>
	<updated>2009-12-07T07:27:01Z</updated>
	<author>
		<name>Glen Gray</name>
	</author>
	<content type="html">Hey Guys,
&lt;br&gt;&lt;br&gt;Running into a runtime issue with GtkMozEmbed. When I call 
&lt;br&gt;gtk_moz_embed_get_nsIWebBrowser, I'm getting a segfault with a stack 
&lt;br&gt;trace that's pointing to NULL.
&lt;br&gt;&lt;br&gt;(gdb) bt
&lt;br&gt;#0 &amp;nbsp;0x00000000 in ?? ()
&lt;br&gt;#1 &amp;nbsp;0x0807b91f in mozilla_purge_history (embed=0x80d5810 [GtkMozEmbed],
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;full_purge=1) at mozilla.c:292
&lt;br&gt;#2 &amp;nbsp;0x08066e9d in moz_embed_uri_open (moz_embed=0x80d5810 [GtkMozEmbed], 
&lt;br&gt;uri=
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;0x87522d0 &amp;quot;&lt;a href=&quot;http://localhost/main_menu.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://localhost/main_menu.php&lt;/a&gt;&amp;quot;) at moz_embed.c:336
&lt;br&gt;&lt;br&gt;&lt;br&gt;290 &amp;nbsp; &amp;nbsp; &amp;nbsp;if (embed != NULL &amp;&amp; GTK_IS_MOZ_EMBED (embed)) {
&lt;br&gt;291 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;gtk_moz_embed_get_nsIWebBrowser (GTK_MOZ_EMBED(embed),
&lt;br&gt;292 &amp;browser);
&lt;br&gt;293 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//getter_AddRefs(browser));
&lt;br&gt;294 &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&lt;br&gt;I've tried with getter_AddRefs based on browser being declared as
&lt;br&gt;nsCOMPtr&amp;lt;nsIWebBrowser&amp;gt; browser;
&lt;br&gt;&lt;br&gt;And above with browser declared as
&lt;br&gt;nsIWebBrowser *browser;
&lt;br&gt;&lt;br&gt;Behaves the same way in both instances. This would seem to be a runtime 
&lt;br&gt;issue. I'm using XPCOM_GLUE and attempted to follow the standalone glue 
&lt;br&gt;model.
&lt;br&gt;&lt;br&gt;Does anyone have any tips. I can't see what could be wrong. I've 
&lt;br&gt;verified that the 'embed' parameter is valid and is a GtkMozEmbed 
&lt;br&gt;object. I can follow the stack through some of the marshalling code with 
&lt;br&gt;GDB.
&lt;br&gt;&lt;br&gt;If I step into the call to gtk_moz_emed_get_nsIWebBrowser, I can see it 
&lt;br&gt;going into
&lt;br&gt;GType gtk_moz_embed_get_type(void). The static GType varaible in there 
&lt;br&gt;is not 0, so it steps down to the return part of the function. Stepping 
&lt;br&gt;on the return call takes me to
&lt;br&gt;GTypeInstance* g_type_check_instance_cast (GTypeInstance *type_instance, 
&lt;br&gt;GType iface_type).
&lt;br&gt;In there I can see that type_instance is GtkMozEmbed
&lt;br&gt;&lt;br&gt;(gdb) print type_instance
&lt;br&gt;$1 = 0x80d5810 [GtkMozEmbed]
&lt;br&gt;&lt;br&gt;In the gtype.c code it performs a few checks and then if check variable 
&lt;br&gt;is TRUE, it returns type_instance. This the point where it fails and I 
&lt;br&gt;get a segfault in 0x0000000
&lt;br&gt;&lt;br&gt;This to me points to some sort of runtime late binding issue.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Glen Gray&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26678850&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;slaine@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;a href=&quot;http://slaine.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://slaine.org&lt;/a&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;dev-embedding mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26678850&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-embedding@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.mozilla.org/listinfo/dev-embedding&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.mozilla.org/listinfo/dev-embedding&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/nsIWebBrowser-and-GtkMozEmbed-tp26678850p26678850.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26672523</id>
	<title>Does anyone know the work-around for this gtkmozembed focus issue?</title>
	<published>2009-12-06T20:58:15Z</published>
	<updated>2009-12-06T20:58:15Z</updated>
	<author>
		<name>Xianzhu Wang</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;We encountered a bug of gtkmozembed that it can't correctly transfer
&lt;br&gt;focus between two embedded browsers in one window. We submitted the
&lt;br&gt;bug report (&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=490447&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://bugzilla.mozilla.org/show_bug.cgi?id=490447&lt;/a&gt;) half
&lt;br&gt;a year ago, but we still haven't the solution. I have tried to
&lt;br&gt;discover the cause, but the focus logic is too complex to me.
&lt;br&gt;&lt;br&gt;Has anyone encountered the same issue, and knows the work-around?
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Xianzhu
&lt;br&gt;_______________________________________________
&lt;br&gt;dev-embedding mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26672523&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-embedding@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.mozilla.org/listinfo/dev-embedding&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.mozilla.org/listinfo/dev-embedding&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Does-anyone-know-the-work-around-for-this-gtkmozembed-focus-issue--tp26672523p26672523.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26648762</id>
	<title>download UI</title>
	<published>2009-12-04T12:27:16Z</published>
	<updated>2009-12-04T12:27:16Z</updated>
	<author>
		<name>Beth Chen</name>
	</author>
	<content type="html">I am embedding xulrunner in Eclipse SWT browser. When download a file, the 
&lt;br&gt;progress window is display and it is not resizable. How do I make it 
&lt;br&gt;resizable like in Firefox?
&lt;br&gt;&lt;br&gt;Also, when the download completes, I got the download complete alert box 
&lt;br&gt;popup ( not sliding out from bottom right corner like Firefox 3.5.x ), and 
&lt;br&gt;the alert box is big and not able to resize either.
&lt;br&gt;&lt;br&gt;Would appreciate any help!
&lt;br&gt;&lt;br&gt;Regards
&lt;br&gt;-Beth 
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;dev-embedding mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26648762&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-embedding@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.mozilla.org/listinfo/dev-embedding&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.mozilla.org/listinfo/dev-embedding&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/download-UI-tp26648762p26648762.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26639748</id>
	<title>Re: AddWebBrowserListener fails (NS_ERROR_INVALID_POINTER)</title>
	<published>2009-12-04T01:15:50Z</published>
	<updated>2009-12-04T01:15:50Z</updated>
	<author>
		<name>victor-84</name>
	</author>
	<content type="html">might helps , refer to &amp;nbsp;&lt;a href=&quot;http://mxr.mozilla.org/firefox/source/embedding/browser/photon/src/EmbedPrivate.cpp#258&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mxr.mozilla.org/firefox/source/embedding/browser/photon/src/EmbedPrivate.cpp#258&lt;/a&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;dev-embedding mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26639748&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-embedding@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.mozilla.org/listinfo/dev-embedding&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.mozilla.org/listinfo/dev-embedding&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/AddWebBrowserListener-fails-%28NS_ERROR_INVALID_POINTER%29-tp26607783p26639748.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26622824</id>
	<title>Re: AddWebBrowserListener fails (NS_ERROR_INVALID_POINTER)</title>
	<published>2009-12-03T00:55:42Z</published>
	<updated>2009-12-03T00:55:42Z</updated>
	<author>
		<name>Blaine Monkey</name>
	</author>
	<content type="html">&amp;gt; I don't see your implementation of addref/release/queryinterface here. Are
&lt;br&gt;&amp;gt; you using NS_IMPL_ISUPPORTS1 or some hand-rolled code to implement those
&lt;br&gt;&amp;gt; methods?
&lt;br&gt;&lt;br&gt;I'm using NS_DECL_ISUPPORTS in the header, but as you sais, I didn't
&lt;br&gt;implement these methods.
&lt;br&gt;&lt;br&gt;&amp;gt; This code is definitely incorrect. You've declared a
&lt;br&gt;&amp;gt; nsCOMPtr&amp;lt;MyBrowserProgressListener&amp;gt; ml; but you haven't actually *created* a
&lt;br&gt;&amp;gt; MyBrowserProgressListener. Did you perhaps mean:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; nsCOMPtr&amp;lt;MyBrowserProgressListener&amp;gt; ml = new MyBrowserProgresListener();
&lt;br&gt;&amp;gt;
&lt;br&gt;You are right.
&lt;br&gt;&lt;br&gt;&amp;gt; Then you try to get a weak reference to your listener. I'm not sure why
&lt;br&gt;&amp;gt; you're trying to do this, but your MyBrowserProgressListener class doesn't
&lt;br&gt;&amp;gt; implement nsISupportsWeakReference and so do_GetWeakReference will
&lt;br&gt;&amp;gt; undoubtedly fail, leaving `listener` null. The typical and recommended way
&lt;br&gt;&amp;gt; to implement nsISupportsWeakReference is to inherit from
&lt;br&gt;&amp;gt; nsSupportsWeakReference and make sure your QueryInterface implementation
&lt;br&gt;&amp;gt; lists nsISupportsWeakReference.
&lt;br&gt;&lt;br&gt;I want to test if webprogresslistener is that I need.
&lt;br&gt;I want to execute some javascript in the html page after load it
&lt;br&gt;completly, and if is it possible, send with javascript a message to my
&lt;br&gt;gtk embedded browser application to close the browser and destroy the
&lt;br&gt;gtk window.
&lt;br&gt;&lt;br&gt;What is the best way to do this?
&lt;br&gt;&lt;br&gt;- Blaine-
&lt;br&gt;_______________________________________________
&lt;br&gt;dev-embedding mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26622824&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-embedding@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.mozilla.org/listinfo/dev-embedding&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.mozilla.org/listinfo/dev-embedding&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/AddWebBrowserListener-fails-%28NS_ERROR_INVALID_POINTER%29-tp26607783p26622824.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26609975</id>
	<title>Re: AddWebBrowserListener fails (NS_ERROR_INVALID_POINTER)</title>
	<published>2009-12-02T06:37:02Z</published>
	<updated>2009-12-02T06:37:02Z</updated>
	<author>
		<name>Benjamin Smedberg</name>
	</author>
	<content type="html">On 12/2/09 7:01 AM, Blaine Monkey wrote:
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; I defined the NS_STATIC_CAST in main.cpp code because isn't defined in
&lt;br&gt;&amp;gt; nscore.h. [#define NS_STATIC_CAST(__type, __ptr) &amp;nbsp; &amp;nbsp; &amp;nbsp;static_cast&amp;lt; &amp;nbsp;__type
&lt;br&gt;&amp;gt;&amp;gt; (__ptr)]
&lt;br&gt;&lt;br&gt;Indeed, we removed NS_STATIC_CAST and recommend that people just use 
&lt;br&gt;static_cast&amp;lt;type&amp;gt;() directly.
&lt;br&gt;&lt;br&gt;&amp;gt; What am I doing wrong? The code below:
&lt;br&gt;&lt;br&gt;I don't see your implementation of addref/release/queryinterface here. Are 
&lt;br&gt;you using NS_IMPL_ISUPPORTS1 or some hand-rolled code to implement those 
&lt;br&gt;methods?
&lt;br&gt;&lt;br&gt;&amp;gt; nsCOMPtr&amp;lt;MyBrowserProgressListener&amp;gt; &amp;nbsp;ml;
&lt;br&gt;&amp;gt; nsCOMPtr&amp;lt;nsIWeakReference&amp;gt;
&lt;br&gt;&amp;gt; listener(do_GetWeakReference(NS_STATIC_CAST(nsIWebProgressListener*, ml)));
&lt;br&gt;&lt;br&gt;This code is definitely incorrect. You've declared a 
&lt;br&gt;nsCOMPtr&amp;lt;MyBrowserProgressListener&amp;gt; ml; but you haven't actually *created* a 
&lt;br&gt;MyBrowserProgressListener. Did you perhaps mean:
&lt;br&gt;&lt;br&gt;nsCOMPtr&amp;lt;MyBrowserProgressListener&amp;gt; ml = new MyBrowserProgresListener();
&lt;br&gt;&lt;br&gt;Then you try to get a weak reference to your listener. I'm not sure why 
&lt;br&gt;you're trying to do this, but your MyBrowserProgressListener class doesn't 
&lt;br&gt;implement nsISupportsWeakReference and so do_GetWeakReference will 
&lt;br&gt;undoubtedly fail, leaving `listener` null. The typical and recommended way 
&lt;br&gt;to implement nsISupportsWeakReference is to inherit from 
&lt;br&gt;nsSupportsWeakReference and make sure your QueryInterface implementation 
&lt;br&gt;lists nsISupportsWeakReference.
&lt;br&gt;&lt;br&gt;--BDS
&lt;br&gt;_______________________________________________
&lt;br&gt;dev-embedding mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26609975&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-embedding@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.mozilla.org/listinfo/dev-embedding&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.mozilla.org/listinfo/dev-embedding&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/AddWebBrowserListener-fails-%28NS_ERROR_INVALID_POINTER%29-tp26607783p26609975.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26609528</id>
	<title>Re: Problems compiling against GtkMozEmbed</title>
	<published>2009-12-02T06:14:06Z</published>
	<updated>2009-12-02T06:14:06Z</updated>
	<author>
		<name>Glen Gray</name>
	</author>
	<content type="html">[brown paper bag]
&lt;br&gt;With all the to'ing and fro'ing I ended up forgetting to make sure that 
&lt;br&gt;the xpcomglue linking was passed after the .o files.
&lt;br&gt;&lt;br&gt;Now I've got a proper working reference, I'll see if I can get my main 
&lt;br&gt;app working after lunch.
&lt;br&gt;&lt;br&gt;I've updated the &lt;a href=&quot;http://slaine.org/files/testgtkembed.tar.bz2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://slaine.org/files/testgtkembed.tar.bz2&lt;/a&gt;&amp;nbsp;file with 
&lt;br&gt;the tweak so it should be usable if anyones interested in playing with it.
&lt;br&gt;&lt;br&gt;On 02/12/09 13:29, Glen Gray wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I stupidly replied to another thread with my email on this yesterday. 
&lt;br&gt;&amp;gt; Reposting with some updates.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I've created a project for testing out my problems and I've copied it 
&lt;br&gt;&amp;gt; to &lt;a href=&quot;http://slaine.org/files/testgtkembed.tar.bz2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://slaine.org/files/testgtkembed.tar.bz2&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This is basically an autotools project that tries to build 
&lt;br&gt;&amp;gt; TestGtkEmbed.cpp file from 
&lt;br&gt;&amp;gt; xulrunner/embedding/browser/gtk/tests/TestGtkEmbed.cpp
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I've taken a look at yelp which does compile and run on my system, and 
&lt;br&gt;&amp;gt; I've replicated as much of their m4 macro for detecting the correct 
&lt;br&gt;&amp;gt; include paths and linker paths.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I've verified that the -I and -L params I'm seeing match that of what 
&lt;br&gt;&amp;gt; I see when I compile yelp. Yet, I'm still have failures at link time, 
&lt;br&gt;&amp;gt; like the following...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;SNIP&amp;gt;
&lt;br&gt;&amp;gt; ....-L/usr/lib/xulrunner-sdk-1.9.1/sdk/lib -lxpcomglue -lplds4 -lplc4 
&lt;br&gt;&amp;gt; -lnspr4 -lpthread -ldl &amp;nbsp; &amp;nbsp;-L/usr/lib/xulrunner-sdk-1.9.1/bin 
&lt;br&gt;&amp;gt; -lxpcomglue &amp;nbsp;-o testgtkembed testgtkembed-TestGtkEmbed.o
&lt;br&gt;&amp;gt; testgtkembed-TestGtkEmbed.o: In function `main':
&lt;br&gt;&amp;gt; /home/glen/src/TestGtkEmbed/testgtkembed/src/TestGtkEmbed.cpp:210: 
&lt;br&gt;&amp;gt; undefined reference to `GRE_GetGREPathWithProperties'
&lt;br&gt;&amp;gt; /home/glen/src/TestGtkEmbed/testgtkembed/src/TestGtkEmbed.cpp:216: 
&lt;br&gt;&amp;gt; undefined reference to `XPCOMGlueStartup'
&lt;br&gt;&amp;gt; testgtkembed-TestGtkEmbed.o: In function `GTKEmbedGlueStartup':
&lt;br&gt;&amp;gt; /usr/include/xulrunner-sdk-1.9.1/unstable/gtkmozembed_glue.cpp:109: 
&lt;br&gt;&amp;gt; undefined reference to `XPCOMGlueLoadXULFunctions'
&lt;br&gt;&amp;gt; testgtkembed-TestGtkEmbed.o: In function `nsCOMPtr':
&lt;br&gt;&amp;gt; /usr/include/xulrunner-sdk-1.9.1/stable/nsCOMPtr.h:604: undefined 
&lt;br&gt;&amp;gt; reference to 
&lt;br&gt;&amp;gt; `nsCOMPtr_base::assign_from_gs_contractid(nsGetServiceByContractID, 
&lt;br&gt;&amp;gt; nsID const&amp;)'
&lt;br&gt;&amp;gt; &amp;lt;SNIP&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks in advance for any help
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Glen Gray&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26609528&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;slaine@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;a href=&quot;http://slaine.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://slaine.org&lt;/a&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;dev-embedding mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26609528&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-embedding@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.mozilla.org/listinfo/dev-embedding&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.mozilla.org/listinfo/dev-embedding&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problems-compiling-against-GtkMozEmbed-tp26608924p26609528.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26608924</id>
	<title>Problems compiling against GtkMozEmbed</title>
	<published>2009-12-02T05:29:53Z</published>
	<updated>2009-12-02T05:29:53Z</updated>
	<author>
		<name>Glen Gray</name>
	</author>
	<content type="html">I stupidly replied to another thread with my email on this yesterday. 
&lt;br&gt;Reposting with some updates.
&lt;br&gt;&lt;br&gt;I've created a project for testing out my problems and I've copied it to 
&lt;br&gt;&lt;a href=&quot;http://slaine.org/files/testgtkembed.tar.bz2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://slaine.org/files/testgtkembed.tar.bz2&lt;/a&gt;&lt;br&gt;&lt;br&gt;This is basically an autotools project that tries to build 
&lt;br&gt;TestGtkEmbed.cpp file from 
&lt;br&gt;xulrunner/embedding/browser/gtk/tests/TestGtkEmbed.cpp
&lt;br&gt;&lt;br&gt;I've taken a look at yelp which does compile and run on my system, and 
&lt;br&gt;I've replicated as much of their m4 macro for detecting the correct 
&lt;br&gt;include paths and linker paths.
&lt;br&gt;&lt;br&gt;I've verified that the -I and -L params I'm seeing match that of what I 
&lt;br&gt;see when I compile yelp. Yet, I'm still have failures at link time, like 
&lt;br&gt;the following...
&lt;br&gt;&lt;br&gt;&amp;lt;SNIP&amp;gt;
&lt;br&gt;....-L/usr/lib/xulrunner-sdk-1.9.1/sdk/lib -lxpcomglue -lplds4 -lplc4 
&lt;br&gt;-lnspr4 -lpthread -ldl &amp;nbsp; &amp;nbsp;-L/usr/lib/xulrunner-sdk-1.9.1/bin 
&lt;br&gt;-lxpcomglue &amp;nbsp;-o testgtkembed testgtkembed-TestGtkEmbed.o
&lt;br&gt;testgtkembed-TestGtkEmbed.o: In function `main':
&lt;br&gt;/home/glen/src/TestGtkEmbed/testgtkembed/src/TestGtkEmbed.cpp:210: 
&lt;br&gt;undefined reference to `GRE_GetGREPathWithProperties'
&lt;br&gt;/home/glen/src/TestGtkEmbed/testgtkembed/src/TestGtkEmbed.cpp:216: 
&lt;br&gt;undefined reference to `XPCOMGlueStartup'
&lt;br&gt;testgtkembed-TestGtkEmbed.o: In function `GTKEmbedGlueStartup':
&lt;br&gt;/usr/include/xulrunner-sdk-1.9.1/unstable/gtkmozembed_glue.cpp:109: 
&lt;br&gt;undefined reference to `XPCOMGlueLoadXULFunctions'
&lt;br&gt;testgtkembed-TestGtkEmbed.o: In function `nsCOMPtr':
&lt;br&gt;/usr/include/xulrunner-sdk-1.9.1/stable/nsCOMPtr.h:604: undefined 
&lt;br&gt;reference to 
&lt;br&gt;`nsCOMPtr_base::assign_from_gs_contractid(nsGetServiceByContractID, nsID 
&lt;br&gt;const&amp;)'
&lt;br&gt;&amp;lt;SNIP&amp;gt;
&lt;br&gt;&lt;br&gt;Thanks in advance for any help
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Glen Gray&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26608924&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;slaine@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;a href=&quot;http://slaine.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://slaine.org&lt;/a&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;dev-embedding mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26608924&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-embedding@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.mozilla.org/listinfo/dev-embedding&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.mozilla.org/listinfo/dev-embedding&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problems-compiling-against-GtkMozEmbed-tp26608924p26608924.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26607783</id>
	<title>AddWebBrowserListener fails (NS_ERROR_INVALID_POINTER)</title>
	<published>2009-12-02T04:01:54Z</published>
	<updated>2009-12-02T04:01:54Z</updated>
	<author>
		<name>Blaine Monkey</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I created a C++ class called MyBrowserProgressListener. This class
&lt;br&gt;implements the nsIWebProgressListener interface. When I run the application
&lt;br&gt;the AddWebBrowserListener fails. I returns 0x80004003
&lt;br&gt;(NS_ERROR_INVALID_POINTER)
&lt;br&gt;&lt;br&gt;I defined the NS_STATIC_CAST in main.cpp code because isn't defined in
&lt;br&gt;nscore.h. [#define NS_STATIC_CAST(__type, __ptr) &amp;nbsp; &amp;nbsp; &amp;nbsp;static_cast&amp;lt; __type
&lt;br&gt;&amp;gt;(__ptr)]
&lt;br&gt;I included the &amp;quot;nsIWeakReference.h&amp;quot; and &amp;quot;nsIWeakReferenceUtils.h&amp;quot; headers
&lt;br&gt;because without them the compiler returns: do_GetWakReference was not
&lt;br&gt;declared in this scope.
&lt;br&gt;&lt;br&gt;What am I doing wrong? The code below:
&lt;br&gt;&lt;br&gt;//Code of myBrowserProgressListener.h
&lt;br&gt;class MyBrowserProgressListener : public nsIWebProgressListener{
&lt;br&gt;&lt;br&gt;public:
&lt;br&gt;&amp;nbsp; &amp;nbsp; NS_DECL_ISUPPORTS
&lt;br&gt;&amp;nbsp; &amp;nbsp; NS_DECL_NSIWEBPROGRESSLISTENER
&lt;br&gt;};
&lt;br&gt;&lt;br&gt;//Code of myBrowserProgressListener.cpp
&lt;br&gt;#include &amp;quot;mybrowserProgressListener.h&amp;quot;
&lt;br&gt;#include &amp;lt;stdio.h&amp;gt;
&lt;br&gt;&lt;br&gt;NS_IMETHODIMP MyBrowserProgressListener::OnStateChange(nsIWebProgress
&lt;br&gt;*aWebProgress, nsIRequest *aRequest, PRUint32 aStateFlags, nsresult aStatus)
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; printf(&amp;quot;MyBrowserProgressListener::OnStateChange&amp;quot;);
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;NS_IMETHODIMP MyBrowserProgressListener::OnProgressChange(nsIWebProgress
&lt;br&gt;*aWebProgress, nsIRequest *aRequest, PRInt32 aCurSelfProgress, PRInt32
&lt;br&gt;aMaxSelfProgress, PRInt32 aCurTotalProgress, PRInt32 aMaxTotalProgress) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; printf(&amp;quot;MyBrowserProgressListener::OnProgressChange&amp;quot;);
&lt;br&gt;}
&lt;br&gt;NS_IMETHODIMP MyBrowserProgressListener::OnLocationChange(nsIWebProgress
&lt;br&gt;*aWebProgress, nsIRequest *aRequest, nsIURI *aLocation) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; printf(&amp;quot;MyBrowserProgressListener::OnLocationChange&amp;quot;);
&lt;br&gt;}
&lt;br&gt;NS_IMETHODIMP MyBrowserProgressListener::OnStatusChange(nsIWebProgress
&lt;br&gt;*aWebProgress, nsIRequest *aRequest, nsresult aStatus, const PRUnichar
&lt;br&gt;*aMessage) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; printf(&amp;quot;MyBrowserProgressListener::OnStatusChange&amp;quot;);
&lt;br&gt;}
&lt;br&gt;NS_IMETHODIMP MyBrowserProgressListener::OnSecurityChange(nsIWebProgress
&lt;br&gt;*aWebProgress, nsIRequest *aRequest, PRUint32 aState) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; printf(&amp;quot;MyBrowserProgressListener::OnSecurityChange&amp;quot;);
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;//Main.cpp Add listener.
&lt;br&gt;//I add &amp;quot;#define NS_STATIC_CAST(__type, __ptr) &amp;nbsp; &amp;nbsp; &amp;nbsp;static_cast&amp;lt; __type
&lt;br&gt;&amp;gt;(__ptr)&amp;quot; because NS_STATIC_CAST is not defined in nscore header
&lt;br&gt;//I included &amp;quot;nsIWeakReferenceUtils.h&amp;quot; and &amp;quot;nsIWeakReference.h&amp;quot; headers.
&lt;br&gt;mWebBrowser = do_CreateInstance ( NS_WEBBROWSER_CONTRACTID, &amp;rv );
&lt;br&gt;NS_ENSURE_SUCCESS ( rv, rv );
&lt;br&gt;mWindow = reinterpret_cast&amp;lt;nativeWindow&amp;gt; ( parentWindow );
&lt;br&gt;&lt;br&gt;mWebBrowser-&amp;gt;SetContainerWindow ( static_cast&amp;lt;nsIWebBrowserChrome*&amp;gt; ( this )
&lt;br&gt;);
&lt;br&gt;&lt;br&gt;nsCOMPtr&amp;lt;nsIDocShellTreeItem&amp;gt; dsti = do_QueryInterface ( mWebBrowser );
&lt;br&gt;dsti-&amp;gt;SetItemType ( nsIDocShellTreeItem::typeContentWrapper );
&lt;br&gt;&lt;br&gt;mBrowserBaseWindow = do_QueryInterface ( mWebBrowser ) ;
&lt;br&gt;&lt;br&gt;mBrowserBaseWindow-&amp;gt;InitWindow( mWindow, nsnull, x, y, width, height );
&lt;br&gt;mBrowserBaseWindow-&amp;gt;Create();
&lt;br&gt;&lt;br&gt;nsCOMPtr&amp;lt;MyBrowserProgressListener&amp;gt; ml;
&lt;br&gt;nsCOMPtr&amp;lt;nsIWeakReference&amp;gt;
&lt;br&gt;listener(do_GetWeakReference(NS_STATIC_CAST(nsIWebProgressListener*, ml)));
&lt;br&gt;rv = mWebBrowser-&amp;gt;AddWebBrowserListener(listener,
&lt;br&gt;NS_GET_IID(nsIWebProgressListener));
&lt;br&gt;if (NS_FAILED(rv))
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; printf(&amp;quot;Add listener FAILED (rv = 0x%08x)&amp;quot;, rv); //It returns
&lt;br&gt;0x80004003.
&lt;br&gt;&amp;nbsp; &amp;nbsp; return rv;
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;mBrowserBaseWindow-&amp;gt;SetVisibility ( PR_TRUE );
&lt;br&gt;_______________________________________________
&lt;br&gt;dev-embedding mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26607783&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-embedding@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.mozilla.org/listinfo/dev-embedding&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.mozilla.org/listinfo/dev-embedding&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/AddWebBrowserListener-fails-%28NS_ERROR_INVALID_POINTER%29-tp26607783p26607783.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26595038</id>
	<title>Issues migrating GtkMozEmbed app to gecko 1.9</title>
	<published>2009-12-01T09:06:31Z</published>
	<updated>2009-12-01T09:06:31Z</updated>
	<author>
		<name>Glen Gray</name>
	</author>
	<content type="html">Hey Guys,
&lt;br&gt;&lt;br&gt;I've emailed about this before but the project never really went 
&lt;br&gt;anywhere. It's in full swing now and I'm not having much of a fun time. 
&lt;br&gt;Basically, we've got a Gtk application on Linux that's been using 
&lt;br&gt;GtkMozEmbed since pre Mozilla 1.0 days. It's used as a fullscreen 
&lt;br&gt;browser for the UI on a touchscreen device.
&lt;br&gt;&lt;br&gt;I'm currently porting from using FireFox 2.0 on an older Fedora Core 
&lt;br&gt;platform to FireFox 3.5.5(xulrunner 1.9.1) on Fedora12.
&lt;br&gt;&lt;br&gt;I'd like some pointers on how to build the TestGtkEmbed.cpp file outside 
&lt;br&gt;the scope of the xulrunner/ path. I think the compiler and linker 
&lt;br&gt;changes are the key to my problems, so if I could get that side of 
&lt;br&gt;things working properly then I'd have a good platform to figure out why 
&lt;br&gt;my code isn't working.
&lt;br&gt;&lt;br&gt;1) I've replicated the API calls from TestGtkEmbed.cpp for the new GRE 
&lt;br&gt;and XPCOMGlue changes
&lt;br&gt;2) I've used the pkg_config --cflags and --libs values from 
&lt;br&gt;&amp;quot;mozilla-gtkmozembed-embedding&amp;quot;, which gives me
&lt;br&gt;&amp;nbsp; pkg-config --libs mozilla-gtkmozembed-embedding
&lt;br&gt;-L/usr/lib/xulrunner-sdk-1.9.1/lib -lxpcomglue -lplds4 -lplc4 -lnspr4 
&lt;br&gt;-lpthread -ldl
&lt;br&gt;3) &amp;nbsp;At runtime, I'm segfaulting in gtk_moz_embed_new()
&lt;br&gt;&lt;br&gt;Found xpcom path [/usr/lib/xulrunner-1.9.1/libxpcom.so]
&lt;br&gt;Setting profile to [/home/glen]
&lt;br&gt;&lt;br&gt;Program received signal SIGSEGV, Segmentation fault.
&lt;br&gt;_dl_runtime_resolve () at ../sysdeps/i386/dl-trampoline.S:43
&lt;br&gt;43 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ret $12 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;# Jump to function address.
&lt;br&gt;Current language: &amp;nbsp;auto
&lt;br&gt;The current source language is &amp;quot;auto; currently asm&amp;quot;.
&lt;br&gt;(gdb) bt
&lt;br&gt;#0 &amp;nbsp;_dl_runtime_resolve () at ../sysdeps/i386/dl-trampoline.S:43
&lt;br&gt;#1 &amp;nbsp;0x02fbf43e in gtk_moz_embed_new () at gtkmozembed2.cpp:418
&lt;br&gt;#2 &amp;nbsp;0x0805a4f6 in moz_embed_new () at moz_embed.c:83
&lt;br&gt;#3 &amp;nbsp;0x08053d39 in main_window_init () at main.c:527
&lt;br&gt;#4 &amp;nbsp;0x08055347 in main (argc=3, argv=0xbffff274) at main.c:151
&lt;br&gt;&lt;br&gt;Thanks in advance,
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Glen Gray&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26595038&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;slaine@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;a href=&quot;http://slaine.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://slaine.org&lt;/a&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;dev-embedding mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26595038&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-embedding@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.mozilla.org/listinfo/dev-embedding&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.mozilla.org/listinfo/dev-embedding&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/notify-when-event-handling-is-complete-tp26545490p26595038.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26595045</id>
	<title>How to close gtk window after execute all javascript code</title>
	<published>2009-12-01T09:02:32Z</published>
	<updated>2009-12-01T09:02:32Z</updated>
	<author>
		<name>Blaine Monkey</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I embedded Gecko in a GTK application. It opens pages containing javascript
&lt;br&gt;code. For example, they have some timers and make changes after load the
&lt;br&gt;page.
&lt;br&gt;&lt;br&gt;I wan't to close the gtk window when the page ends executing all.
&lt;br&gt;I thought that I could close the window with &amp;quot;window.close()&amp;quot; javascript
&lt;br&gt;function and get the event implementing niWebProgressListener interface or
&lt;br&gt;other interface, but the &amp;quot;window.close()&amp;quot; javascript function doesn't close
&lt;br&gt;the window because it's the main broser window.
&lt;br&gt;&lt;br&gt;How can I inform to gecko that a page has finished executing all and is
&lt;br&gt;ready to be closed?
&lt;br&gt;_______________________________________________
&lt;br&gt;dev-embedding mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26595045&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-embedding@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.mozilla.org/listinfo/dev-embedding&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.mozilla.org/listinfo/dev-embedding&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-close-gtk-window-after-execute-all-javascript-code-tp26595045p26595045.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26572409</id>
	<title>Re: Problems with javascript in embedded browser</title>
	<published>2009-11-30T02:25:09Z</published>
	<updated>2009-11-30T02:25:09Z</updated>
	<author>
		<name>Blaine Monkey</name>
	</author>
	<content type="html">On 26 nov, 15:47, Blaine Monkey &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26572409&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;blainem...@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On 26 nov, 11:50, Blaine Monkey &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26572409&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;blainem...@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I've a Linux C++ application with mozilla browser embedded.
&lt;br&gt;&amp;gt; &amp;gt; The embedded browser shows the google page well.
&lt;br&gt;&amp;gt; &amp;gt; I made a simple page with some javascript code, to do a test. The page has a
&lt;br&gt;&amp;gt; &amp;gt; table with a text and the javascript changes the text with an image. If I
&lt;br&gt;&amp;gt; &amp;gt; open the page with firefox it shows fine, but the embedded browser only
&lt;br&gt;&amp;gt; &amp;gt; shows the text. Embedded browser supports javascript as firefox, in't it?
&lt;br&gt;&amp;gt; &amp;gt; What's the problem?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Here is the source code:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;lt;html&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;  &amp;lt;head&amp;gt;&amp;lt;title&amp;gt;TESTING&amp;lt;/title&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;     &amp;lt;script src=&amp;quot;buildTable.js&amp;quot; type=&amp;quot;text/javascript&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;  &amp;lt;/head&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;     &amp;lt;body bgColor=&amp;quot;yellow&amp;quot; onload=&amp;quot;buildTable();&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;       &amp;lt;table id=&amp;quot;myTable&amp;quot; border=&amp;quot;2&amp;quot; width=&amp;quot;400&amp;quot; height=&amp;quot;400&amp;quot;&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;span&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; TEXT &amp;lt;/span&amp;gt;&amp;lt;/td&amp;lt;/tr&amp;gt;&amp;lt;table/&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;     &amp;lt;/body&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;lt;/html&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; // And this is the code of buildTable.js file:
&lt;br&gt;&amp;gt; &amp;gt; function buildTable(){
&lt;br&gt;&amp;gt; &amp;gt;  var build = '&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;img src=&amp;quot;food020.jpg&amp;quot; width=&amp;quot;100&amp;quot;
&lt;br&gt;&amp;gt; &amp;gt; height=&amp;quot;100&amp;quot;&amp;gt;&amp;lt;/img&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;';
&lt;br&gt;&amp;gt; &amp;gt;     document.all.myTable.innerHTML=build;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This is the application code:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; int main(int argc, char** argv) {
&lt;br&gt;&amp;gt;         GtkWidget *window;
&lt;br&gt;&amp;gt;         nsCOMPtr&amp;lt;nsIBaseWindow&amp;gt; baseWindow;
&lt;br&gt;&amp;gt;         nsCOMPtr&amp;lt;nsIWebBrowser&amp;gt; webBrowser;
&lt;br&gt;&amp;gt;         nsCOMPtr&amp;lt;nsILocalFile&amp;gt; libxul;
&lt;br&gt;&amp;gt;         nsCOMPtr&amp;lt;nsIWebNavigation&amp;gt; webNavigation;
&lt;br&gt;&amp;gt;         nsCOMPtr&amp;lt;nsIWebBrowserSetup&amp;gt; browserSetup;
&lt;br&gt;&amp;gt;         nsCOMPtr&amp;lt;nsIWebBrowserChrome&amp;gt; browserchrome;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;         nsDynamicFunctionLoad nsFuncs[] = {
&lt;br&gt;&amp;gt;                 {&amp;quot;XRE_InitEmbedding&amp;quot;, (NSFuncPtr*)&amp;XRE_InitEmbedding},
&lt;br&gt;&amp;gt;                 {&amp;quot;XRE_TermEmbedding&amp;quot;, (NSFuncPtr*)&amp;XRE_TermEmbedding},
&lt;br&gt;&amp;gt;                 {0, 0}
&lt;br&gt;&amp;gt;         };
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;         nsresult rv;
&lt;br&gt;&amp;gt;         gtk_init (&amp;argc, &amp;argv);
&lt;br&gt;&amp;gt;         window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
&lt;br&gt;&amp;gt;         gtk_widget_show(window);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;         rv = XPCOMGlueStartup(&amp;quot;/usr/lib/xulrunner-1.9/libxpcom.so&amp;quot;);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;         if (NS_FAILED(rv)) {
&lt;br&gt;&amp;gt;                 printf(&amp;quot;XPCOMGlueStartup\n&amp;quot;);
&lt;br&gt;&amp;gt;         }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;         rv = XPCOMGlueLoadXULFunctions(nsFuncs);
&lt;br&gt;&amp;gt;         if (NS_FAILED(rv)) {
&lt;br&gt;&amp;gt;                 printf(&amp;quot;XPCOMGlueLoadXULFunctions\n&amp;quot;);
&lt;br&gt;&amp;gt;         }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;         rv = NS_NewNativeLocalFile(nsEmbedCString(&amp;quot;/usr/lib/
&lt;br&gt;&amp;gt; xulrunner-1.9&amp;quot;), PR_FALSE, getter_AddRefs(libxul));
&lt;br&gt;&amp;gt;         if (NS_FAILED(rv)) {
&lt;br&gt;&amp;gt;                 printf(&amp;quot;NS_NewNativeLocalFile\n&amp;quot;);
&lt;br&gt;&amp;gt;         }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;         rv = XRE_InitEmbedding(libxul, 0, 0, 0, 0);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;         if (NS_FAILED(rv)) {
&lt;br&gt;&amp;gt;                         printf(&amp;quot;Error XRE_InitEmbedding %d\n&amp;quot;,rv);
&lt;br&gt;&amp;gt;                 return -1;
&lt;br&gt;&amp;gt;         }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;         webBrowser = do_CreateInstance(NS_WEBBROWSER_CONTRACTID, &amp;rv);
&lt;br&gt;&amp;gt;         if (NS_FAILED(rv)) {
&lt;br&gt;&amp;gt;                         printf(&amp;quot;do_CreateInstance webBrowser\n&amp;quot;);
&lt;br&gt;&amp;gt;         }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;         browserSetup =  do_QueryInterface(webBrowser,&amp;rv);
&lt;br&gt;&amp;gt;                 if (NS_FAILED(rv)) {
&lt;br&gt;&amp;gt;                   printf(&amp;quot;do_QueryInterface browserSetup\n&amp;quot;);
&lt;br&gt;&amp;gt;                 }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;                 browserSetup-&amp;gt;SetProperty
&lt;br&gt;&amp;gt; (nsIWebBrowserSetup::SETUP_ALLOW_PLUGINS,PR_TRUE);
&lt;br&gt;&amp;gt;                 browserSetup-&amp;gt;SetProperty
&lt;br&gt;&amp;gt; (nsIWebBrowserSetup::SETUP_ALLOW_JAVASCRIPT,PR_TRUE);
&lt;br&gt;&amp;gt;                 browserSetup-&amp;gt;SetProperty
&lt;br&gt;&amp;gt; (nsIWebBrowserSetup::SETUP_ALLOW_IMAGES,PR_TRUE);
&lt;br&gt;&amp;gt;                 browserSetup-&amp;gt;SetProperty
&lt;br&gt;&amp;gt; (nsIWebBrowserSetup::SETUP_ALLOW_META_REDIRECTS,PR_TRUE);
&lt;br&gt;&amp;gt;                 browserSetup-&amp;gt;SetProperty
&lt;br&gt;&amp;gt; (nsIWebBrowserSetup::SETUP_ALLOW_SUBFRAMES,PR_TRUE);
&lt;br&gt;&amp;gt;                 browserSetup-&amp;gt;SetProperty
&lt;br&gt;&amp;gt; (nsIWebBrowserSetup::SETUP_IS_CHROME_WRAPPER,PR_FALSE);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;         baseWindow = do_QueryInterface(webBrowser);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;         rv = baseWindow-&amp;gt;InitWindow(window, 0, 0, 0, 1300, 700);
&lt;br&gt;&amp;gt;         if (NS_FAILED(rv)) {
&lt;br&gt;&amp;gt;                 printf(&amp;quot;InitWindow\n&amp;quot;);
&lt;br&gt;&amp;gt;         }
&lt;br&gt;&amp;gt;         rv = baseWindow-&amp;gt;Create();
&lt;br&gt;&amp;gt;         if (NS_FAILED(rv)) {
&lt;br&gt;&amp;gt;                 printf(&amp;quot;Create\n&amp;quot;);
&lt;br&gt;&amp;gt;         }
&lt;br&gt;&amp;gt;         rv =baseWindow-&amp;gt;SetVisibility(PR_TRUE);
&lt;br&gt;&amp;gt;         if (NS_FAILED(rv)) {
&lt;br&gt;&amp;gt;                 printf(&amp;quot;SetVisibility\n&amp;quot;);
&lt;br&gt;&amp;gt;         }
&lt;br&gt;&amp;gt;         webNavigation = do_QueryInterface(webBrowser);
&lt;br&gt;&amp;gt;         rv = webNavigation-&amp;gt;LoadURI(NS_ConvertASCIItoUTF16(argv[1]).get
&lt;br&gt;&amp;gt; (),nsIWebNavigation::LOAD_FLAGS_NONE , 0, 0, 0);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;         if (NS_FAILED(rv)) {
&lt;br&gt;&amp;gt;                 printf(&amp;quot;LoadURI\n&amp;quot;);
&lt;br&gt;&amp;gt;         }
&lt;br&gt;&amp;gt;         g_signal_connect(G_OBJECT(window), &amp;quot;delete_event&amp;quot;, G_CALLBACK
&lt;br&gt;&amp;gt; (delete_event), 0);
&lt;br&gt;&amp;gt;         gtk_main();
&lt;br&gt;&amp;gt;         XRE_TermEmbedding();
&lt;br&gt;&amp;gt;         XPCOMGlueShutdown();
&lt;br&gt;&amp;gt;         exit(0);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; }
&lt;/div&gt;&lt;br&gt;Firstly, sorry for repeat the same post many times, I thought there
&lt;br&gt;was problems because the message didn't appear some time after send
&lt;br&gt;it.
&lt;br&gt;I resolve the javascript problem. I saw that nsIWebBrowserChrome is
&lt;br&gt;the key.
&lt;br&gt;_______________________________________________
&lt;br&gt;dev-embedding mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26572409&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-embedding@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.mozilla.org/listinfo/dev-embedding&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.mozilla.org/listinfo/dev-embedding&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problems-with-javascript-in-embedded-browser-tp26527595p26572409.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26554416</id>
	<title>Re: notify when event handling is complete</title>
	<published>2009-11-28T08:01:26Z</published>
	<updated>2009-11-28T08:01:26Z</updated>
	<author>
		<name>Boris Zbarsky</name>
	</author>
	<content type="html">On 11/28/09 2:14 AM, Jeeva Muthukrishnan wrote:
&lt;br&gt;&amp;gt; Is there a way for me to know if clicking a link, caused a NEW page load?
&lt;br&gt;&lt;br&gt;Yes; you can either watch for pageshow events or onLocationChange 
&lt;br&gt;notifications, depending on how you want to handle anchor scrolling on 
&lt;br&gt;the same page.
&lt;br&gt;&lt;br&gt;Note that this won't limit itself to links; it'll include scripted 
&lt;br&gt;location sets, form submissions, etc. &amp;nbsp;If you need to restrict 
&lt;br&gt;specifically to link clicks for some reason you might have to figure out 
&lt;br&gt;how to do that.
&lt;br&gt;&lt;br&gt;-Boris
&lt;br&gt;_______________________________________________
&lt;br&gt;dev-embedding mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26554416&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-embedding@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.mozilla.org/listinfo/dev-embedding&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.mozilla.org/listinfo/dev-embedding&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/notify-when-event-handling-is-complete-tp26545490p26554416.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26550970</id>
	<title>Re: notify when event handling is complete</title>
	<published>2009-11-27T23:14:43Z</published>
	<updated>2009-11-27T23:14:43Z</updated>
	<author>
		<name>jeeva.usa</name>
	</author>
	<content type="html">Thanks Boris.
&lt;br&gt;&lt;br&gt;Is there a way for me to know if clicking a link, caused a NEW page load?
&lt;br&gt;&lt;br&gt;e.g. &amp;lt;a href=&amp;quot;&lt;a href=&quot;http://google.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://google.com&lt;/a&gt;&amp;quot;&amp;gt;
&lt;br&gt;google&amp;lt;/a&amp;gt;.. when I click this link, is there a notifier that tells me that
&lt;br&gt;a NEW page load occured?
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;On Fri, Nov 27, 2009 at 11:29 PM, Boris Zbarsky &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26550970&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bzbarsky@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On 11/27/09 12:23 PM, Jeeva Muthukrishnan wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Question: when a user clicks on a LINK (anchor node), I want to know when
&lt;br&gt;&amp;gt;&amp;gt; the processing of the request is complete. i.e. if the link just updates
&lt;br&gt;&amp;gt;&amp;gt; the
&lt;br&gt;&amp;gt;&amp;gt; existing page with content, then I would like to know when the update is
&lt;br&gt;&amp;gt;&amp;gt; complete.. so that when I retrieve the DOM, I see the updated content..
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; So if the link click starts an animation that moves every 10ms after that
&lt;br&gt;&amp;gt; point.... when do you want to be notified?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;Right now, I just sleep for a minute and then parse the DOM. Most of the
&lt;br&gt;&amp;gt;&amp;gt; time this works, but I would like to know if there is a notifier that I
&lt;br&gt;&amp;gt;&amp;gt; could use.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; There isn't one, since the concept of &amp;quot;complete&amp;quot; is not exactly
&lt;br&gt;&amp;gt; well-defined here.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -Boris
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; dev-embedding mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26550970&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-embedding@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.mozilla.org/listinfo/dev-embedding&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.mozilla.org/listinfo/dev-embedding&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;/div&gt;_______________________________________________
&lt;br&gt;dev-embedding mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26550970&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-embedding@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.mozilla.org/listinfo/dev-embedding&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.mozilla.org/listinfo/dev-embedding&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/notify-when-event-handling-is-complete-tp26545490p26550970.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26550660</id>
	<title>Re: notify when event handling is complete</title>
	<published>2009-11-27T21:29:42Z</published>
	<updated>2009-11-27T21:29:42Z</updated>
	<author>
		<name>Boris Zbarsky</name>
	</author>
	<content type="html">On 11/27/09 12:23 PM, Jeeva Muthukrishnan wrote:
&lt;br&gt;&amp;gt; Question: when a user clicks on a LINK (anchor node), I want to know when
&lt;br&gt;&amp;gt; the processing of the request is complete. i.e. if the link just updates the
&lt;br&gt;&amp;gt; existing page with content, then I would like to know when the update is
&lt;br&gt;&amp;gt; complete.. so that when I retrieve the DOM, I see the updated content..
&lt;br&gt;&lt;br&gt;So if the link click starts an animation that moves every 10ms after 
&lt;br&gt;that point.... when do you want to be notified?
&lt;br&gt;&lt;br&gt;&amp;gt; Right now, I just sleep for a minute and then parse the DOM. Most of the
&lt;br&gt;&amp;gt; time this works, but I would like to know if there is a notifier that I
&lt;br&gt;&amp;gt; could use.
&lt;br&gt;&lt;br&gt;There isn't one, since the concept of &amp;quot;complete&amp;quot; is not exactly 
&lt;br&gt;well-defined here.
&lt;br&gt;&lt;br&gt;-Boris
&lt;br&gt;_______________________________________________
&lt;br&gt;dev-embedding mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26550660&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-embedding@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.mozilla.org/listinfo/dev-embedding&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.mozilla.org/listinfo/dev-embedding&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/notify-when-event-handling-is-complete-tp26545490p26550660.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26545490</id>
	<title>notify when event handling is complete</title>
	<published>2009-11-27T09:23:08Z</published>
	<updated>2009-11-27T09:23:08Z</updated>
	<author>
		<name>jeeva.usa</name>
	</author>
	<content type="html">I am working on embedding Gecko..
&lt;br&gt;&lt;br&gt;Question: when a user clicks on a LINK (anchor node), I want to know when
&lt;br&gt;the processing of the request is complete. i.e. if the link just updates the
&lt;br&gt;existing page with content, then I would like to know when the update is
&lt;br&gt;complete.. so that when I retrieve the DOM, I see the updated content..
&lt;br&gt;Right now, I just sleep for a minute and then parse the DOM. Most of the
&lt;br&gt;time this works, but I would like to know if there is a notifier that I
&lt;br&gt;could use.
&lt;br&gt;&lt;br&gt;e.g. In the code below, clicking on &amp;quot;Populate&amp;quot;, adds innerHTML to &amp;quot;div1&amp;quot;...
&lt;br&gt;I want to be notified when the processing of clicking on anchor is done, so
&lt;br&gt;that I can retrieve the DOM. I tried looking at the code but didn't see
&lt;br&gt;anything that would do this. I saw nsIDocumentObserver::BeginLoad() and
&lt;br&gt;EndLoad() and BeginUpdate() and EndUpdate()... Could someone point me to the
&lt;br&gt;right direction.. thanks
&lt;br&gt;&lt;br&gt;&amp;lt;html&amp;gt;
&lt;br&gt;&amp;lt;body&amp;gt;
&lt;br&gt;&amp;lt;div id=div1&amp;gt;
&lt;br&gt;&amp;lt;/div&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;lt;script&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp; function populate()
&lt;br&gt;&amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; var div1 = document.getElementById('div1')
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; div1.innerHTML = &amp;quot;&amp;lt;b&amp;gt;POPULATED&amp;lt;/b&amp;gt;&amp;quot;
&lt;br&gt;&lt;br&gt;&amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;lt;/script&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;lt;a href=&amp;quot;javascript:populate()&amp;quot;&amp;gt;Populate&amp;lt;/a&amp;gt;&amp;lt;br&amp;gt;
&lt;br&gt;&amp;lt;/body&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;lt;/html&amp;gt;
&lt;br&gt;_______________________________________________
&lt;br&gt;dev-embedding mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26545490&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-embedding@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.mozilla.org/listinfo/dev-embedding&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.mozilla.org/listinfo/dev-embedding&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/notify-when-event-handling-is-complete-tp26545490p26545490.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26530569</id>
	<title>Re: Problems with javascript in embedded browser</title>
	<published>2009-11-26T06:50:29Z</published>
	<updated>2009-11-26T06:50:29Z</updated>
	<author>
		<name>Blaine Monkey</name>
	</author>
	<content type="html">On 26 nov, 11:50, Blaine Monkey &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26530569&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;blainem...@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I've a Linux C++ application with mozilla browser embedded.
&lt;br&gt;&amp;gt; The embedded browser shows the google page well.
&lt;br&gt;&amp;gt; I made a simple page with some javascript code, to do a test. The page has a
&lt;br&gt;&amp;gt; table with a text and the javascript changes the text with an image. If I
&lt;br&gt;&amp;gt; open the page with firefox it shows fine, but the embedded browser only
&lt;br&gt;&amp;gt; shows the text. Embedded browser supports javascript as firefox, in't it?
&lt;br&gt;&amp;gt; What's the problem?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Here is the source code:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;html&amp;gt;
&lt;br&gt;&amp;gt;  &amp;lt;head&amp;gt;&amp;lt;title&amp;gt;TESTING&amp;lt;/title&amp;gt;
&lt;br&gt;&amp;gt;     &amp;lt;script src=&amp;quot;buildTable.js&amp;quot; type=&amp;quot;text/javascript&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;
&lt;br&gt;&amp;gt;  &amp;lt;/head&amp;gt;
&lt;br&gt;&amp;gt;     &amp;lt;body bgColor=&amp;quot;yellow&amp;quot; onload=&amp;quot;buildTable();&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt;       &amp;lt;table id=&amp;quot;myTable&amp;quot; border=&amp;quot;2&amp;quot; width=&amp;quot;400&amp;quot; height=&amp;quot;400&amp;quot;&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;span&amp;gt;
&lt;br&gt;&amp;gt; TEXT &amp;lt;/span&amp;gt;&amp;lt;/td&amp;lt;/tr&amp;gt;&amp;lt;table/&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;     &amp;lt;/body&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/html&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; // And this is the code of buildTable.js file:
&lt;br&gt;&amp;gt; function buildTable(){
&lt;br&gt;&amp;gt;  var build = '&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;img src=&amp;quot;food020.jpg&amp;quot; width=&amp;quot;100&amp;quot;
&lt;br&gt;&amp;gt; height=&amp;quot;100&amp;quot;&amp;gt;&amp;lt;/img&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;';
&lt;br&gt;&amp;gt;     document.all.myTable.innerHTML=build;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; }
&lt;/div&gt;&lt;br&gt;I set the SETUP_ALLOW_JAVASCRIPT property to true but doesn't work.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; webBrowser = do_CreateInstance(NS_WEBBROWSER_CONTRACTID, &amp;rv);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (NS_FAILED(rv)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;do_CreateInstance webBrowser\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; browserSetup = &amp;nbsp;do_QueryInterface(webBrowser,&amp;rv);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (NS_FAILED(rv)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;do_QueryInterface browserSetup\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; browserSetup-&amp;gt;SetProperty
&lt;br&gt;(nsIWebBrowserSetup::SETUP_ALLOW_PLUGINS,PR_TRUE);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; browserSetup-&amp;gt;SetProperty
&lt;br&gt;(nsIWebBrowserSetup::SETUP_ALLOW_JAVASCRIPT,PR_TRUE);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; browserSetup-&amp;gt;SetProperty
&lt;br&gt;(nsIWebBrowserSetup::SETUP_ALLOW_IMAGES,PR_TRUE);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; browserSetup-&amp;gt;SetProperty
&lt;br&gt;(nsIWebBrowserSetup::SETUP_ALLOW_META_REDIRECTS,PR_TRUE);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; browserSetup-&amp;gt;SetProperty
&lt;br&gt;(nsIWebBrowserSetup::SETUP_ALLOW_SUBFRAMES,PR_TRUE);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; browserSetup-&amp;gt;SetProperty
&lt;br&gt;(nsIWebBrowserSetup::SETUP_IS_CHROME_WRAPPER,PR_FALSE);
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; baseWindow = do_QueryInterface(webBrowser);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rv = baseWindow-&amp;gt;InitWindow(window, 0, 0, 0, 1300, 700);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (NS_FAILED(rv)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;InitWindow\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rv = baseWindow-&amp;gt;Create();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (NS_FAILED(rv)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;Create\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rv =baseWindow-&amp;gt;SetVisibility(PR_TRUE);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (NS_FAILED(rv)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;SetVisibility\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; webNavigation = do_QueryInterface(webBrowser);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rv = webNavigation-&amp;gt;LoadURI(NS_ConvertASCIItoUTF16(argv[1]).get
&lt;br&gt;(),nsIWebNavigation::LOAD_FLAGS_NONE , 0, 0, 0);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (NS_FAILED(rv)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;LoadURI\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; g_signal_connect(G_OBJECT(window), &amp;quot;delete_event&amp;quot;, G_CALLBACK
&lt;br&gt;(delete_event), 0);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; gtk_main();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; XRE_TermEmbedding();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; XPCOMGlueShutdown();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; exit(0);
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;dev-embedding mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26530569&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-embedding@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.mozilla.org/listinfo/dev-embedding&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.mozilla.org/listinfo/dev-embedding&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problems-with-javascript-in-embedded-browser-tp26527595p26530569.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26530516</id>
	<title>Re: Problems with javascript in embedded browser</title>
	<published>2009-11-26T06:47:40Z</published>
	<updated>2009-11-26T06:47:40Z</updated>
	<author>
		<name>Blaine Monkey</name>
	</author>
	<content type="html">On 26 nov, 11:50, Blaine Monkey &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26530516&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;blainem...@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I've a Linux C++ application with mozilla browser embedded.
&lt;br&gt;&amp;gt; The embedded browser shows the google page well.
&lt;br&gt;&amp;gt; I made a simple page with some javascript code, to do a test. The page has a
&lt;br&gt;&amp;gt; table with a text and the javascript changes the text with an image. If I
&lt;br&gt;&amp;gt; open the page with firefox it shows fine, but the embedded browser only
&lt;br&gt;&amp;gt; shows the text. Embedded browser supports javascript as firefox, in't it?
&lt;br&gt;&amp;gt; What's the problem?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Here is the source code:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;html&amp;gt;
&lt;br&gt;&amp;gt;  &amp;lt;head&amp;gt;&amp;lt;title&amp;gt;TESTING&amp;lt;/title&amp;gt;
&lt;br&gt;&amp;gt;     &amp;lt;script src=&amp;quot;buildTable.js&amp;quot; type=&amp;quot;text/javascript&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;
&lt;br&gt;&amp;gt;  &amp;lt;/head&amp;gt;
&lt;br&gt;&amp;gt;     &amp;lt;body bgColor=&amp;quot;yellow&amp;quot; onload=&amp;quot;buildTable();&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt;       &amp;lt;table id=&amp;quot;myTable&amp;quot; border=&amp;quot;2&amp;quot; width=&amp;quot;400&amp;quot; height=&amp;quot;400&amp;quot;&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;span&amp;gt;
&lt;br&gt;&amp;gt; TEXT &amp;lt;/span&amp;gt;&amp;lt;/td&amp;lt;/tr&amp;gt;&amp;lt;table/&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;     &amp;lt;/body&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/html&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; // And this is the code of buildTable.js file:
&lt;br&gt;&amp;gt; function buildTable(){
&lt;br&gt;&amp;gt;  var build = '&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;img src=&amp;quot;food020.jpg&amp;quot; width=&amp;quot;100&amp;quot;
&lt;br&gt;&amp;gt; height=&amp;quot;100&amp;quot;&amp;gt;&amp;lt;/img&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;';
&lt;br&gt;&amp;gt;     document.all.myTable.innerHTML=build;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; }
&lt;/div&gt;&lt;br&gt;This is the application code:
&lt;br&gt;&lt;br&gt;int main(int argc, char** argv) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; GtkWidget *window;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nsCOMPtr&amp;lt;nsIBaseWindow&amp;gt; baseWindow;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nsCOMPtr&amp;lt;nsIWebBrowser&amp;gt; webBrowser;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nsCOMPtr&amp;lt;nsILocalFile&amp;gt; libxul;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nsCOMPtr&amp;lt;nsIWebNavigation&amp;gt; webNavigation;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nsCOMPtr&amp;lt;nsIWebBrowserSetup&amp;gt; browserSetup;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nsCOMPtr&amp;lt;nsIWebBrowserChrome&amp;gt; browserchrome;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nsDynamicFunctionLoad nsFuncs[] = {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&amp;quot;XRE_InitEmbedding&amp;quot;, (NSFuncPtr*)&amp;XRE_InitEmbedding},
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&amp;quot;XRE_TermEmbedding&amp;quot;, (NSFuncPtr*)&amp;XRE_TermEmbedding},
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {0, 0}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; };
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nsresult rv;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; gtk_init (&amp;argc, &amp;argv);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; gtk_widget_show(window);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rv = XPCOMGlueStartup(&amp;quot;/usr/lib/xulrunner-1.9/libxpcom.so&amp;quot;);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (NS_FAILED(rv)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;XPCOMGlueStartup\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rv = XPCOMGlueLoadXULFunctions(nsFuncs);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (NS_FAILED(rv)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;XPCOMGlueLoadXULFunctions\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rv = NS_NewNativeLocalFile(nsEmbedCString(&amp;quot;/usr/lib/
&lt;br&gt;xulrunner-1.9&amp;quot;), PR_FALSE, getter_AddRefs(libxul));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (NS_FAILED(rv)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;NS_NewNativeLocalFile\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rv = XRE_InitEmbedding(libxul, 0, 0, 0, 0);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (NS_FAILED(rv)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;Error XRE_InitEmbedding %d\n&amp;quot;,rv);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return -1;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; webBrowser = do_CreateInstance(NS_WEBBROWSER_CONTRACTID, &amp;rv);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (NS_FAILED(rv)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;do_CreateInstance webBrowser\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; browserSetup = &amp;nbsp;do_QueryInterface(webBrowser,&amp;rv);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (NS_FAILED(rv)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;do_QueryInterface browserSetup\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; browserSetup-&amp;gt;SetProperty
&lt;br&gt;(nsIWebBrowserSetup::SETUP_ALLOW_PLUGINS,PR_TRUE);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; browserSetup-&amp;gt;SetProperty
&lt;br&gt;(nsIWebBrowserSetup::SETUP_ALLOW_JAVASCRIPT,PR_TRUE);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; browserSetup-&amp;gt;SetProperty
&lt;br&gt;(nsIWebBrowserSetup::SETUP_ALLOW_IMAGES,PR_TRUE);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; browserSetup-&amp;gt;SetProperty
&lt;br&gt;(nsIWebBrowserSetup::SETUP_ALLOW_META_REDIRECTS,PR_TRUE);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; browserSetup-&amp;gt;SetProperty
&lt;br&gt;(nsIWebBrowserSetup::SETUP_ALLOW_SUBFRAMES,PR_TRUE);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; browserSetup-&amp;gt;SetProperty
&lt;br&gt;(nsIWebBrowserSetup::SETUP_IS_CHROME_WRAPPER,PR_FALSE);
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; baseWindow = do_QueryInterface(webBrowser);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rv = baseWindow-&amp;gt;InitWindow(window, 0, 0, 0, 1300, 700);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (NS_FAILED(rv)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;InitWindow\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rv = baseWindow-&amp;gt;Create();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (NS_FAILED(rv)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;Create\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rv =baseWindow-&amp;gt;SetVisibility(PR_TRUE);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (NS_FAILED(rv)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;SetVisibility\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; webNavigation = do_QueryInterface(webBrowser);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rv = webNavigation-&amp;gt;LoadURI(NS_ConvertASCIItoUTF16(argv[1]).get
&lt;br&gt;(),nsIWebNavigation::LOAD_FLAGS_NONE , 0, 0, 0);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (NS_FAILED(rv)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;LoadURI\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; g_signal_connect(G_OBJECT(window), &amp;quot;delete_event&amp;quot;, G_CALLBACK
&lt;br&gt;(delete_event), 0);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; gtk_main();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; XRE_TermEmbedding();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; XPCOMGlueShutdown();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; exit(0);
&lt;br&gt;}
&lt;br&gt;_______________________________________________
&lt;br&gt;dev-embedding mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26530516&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-embedding@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.mozilla.org/listinfo/dev-embedding&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.mozilla.org/listinfo/dev-embedding&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problems-with-javascript-in-embedded-browser-tp26527595p26530516.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26530509</id>
	<title>Re: Problems with javascript in embedded browser</title>
	<published>2009-11-26T06:45:54Z</published>
	<updated>2009-11-26T06:45:54Z</updated>
	<author>
		<name>Blaine Monkey</name>
	</author>
	<content type="html">On 26 nov, 11:50, Blaine Monkey &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26530509&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;blainem...@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I've a Linux C++ application with mozilla browser embedded.
&lt;br&gt;&amp;gt; The embedded browser shows the google page well.
&lt;br&gt;&amp;gt; I made a simple page with some javascript code, to do a test. The page has a
&lt;br&gt;&amp;gt; table with a text and the javascript changes the text with an image. If I
&lt;br&gt;&amp;gt; open the page with firefox it shows fine, but the embedded browser only
&lt;br&gt;&amp;gt; shows the text. Embedded browser supports javascript as firefox, in't it?
&lt;br&gt;&amp;gt; What's the problem?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Here is the source code:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;html&amp;gt;
&lt;br&gt;&amp;gt;  &amp;lt;head&amp;gt;&amp;lt;title&amp;gt;TESTING&amp;lt;/title&amp;gt;
&lt;br&gt;&amp;gt;     &amp;lt;script src=&amp;quot;buildTable.js&amp;quot; type=&amp;quot;text/javascript&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;
&lt;br&gt;&amp;gt;  &amp;lt;/head&amp;gt;
&lt;br&gt;&amp;gt;     &amp;lt;body bgColor=&amp;quot;yellow&amp;quot; onload=&amp;quot;buildTable();&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt;       &amp;lt;table id=&amp;quot;myTable&amp;quot; border=&amp;quot;2&amp;quot; width=&amp;quot;400&amp;quot; height=&amp;quot;400&amp;quot;&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;span&amp;gt;
&lt;br&gt;&amp;gt; TEXT &amp;lt;/span&amp;gt;&amp;lt;/td&amp;lt;/tr&amp;gt;&amp;lt;table/&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;     &amp;lt;/body&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/html&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; // And this is the code of buildTable.js file:
&lt;br&gt;&amp;gt; function buildTable(){
&lt;br&gt;&amp;gt;  var build = '&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;img src=&amp;quot;food020.jpg&amp;quot; width=&amp;quot;100&amp;quot;
&lt;br&gt;&amp;gt; height=&amp;quot;100&amp;quot;&amp;gt;&amp;lt;/img&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;';
&lt;br&gt;&amp;gt;     document.all.myTable.innerHTML=build;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; }
&lt;/div&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;dev-embedding mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26530509&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-embedding@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.mozilla.org/listinfo/dev-embedding&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.mozilla.org/listinfo/dev-embedding&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problems-with-javascript-in-embedded-browser-tp26527595p26530509.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26529871</id>
	<title>How to get X11 Window Id?</title>
	<published>2009-11-26T05:57:21Z</published>
	<updated>2009-11-26T05:57:21Z</updated>
	<author>
		<name>Michael A. Borisov</name>
	</author>
	<content type="html">Hi All,
&lt;br&gt;&lt;br&gt;Need to write an XPCOM which returns X11 window id for the current 
&lt;br&gt;window. The entire problem is to save window thumbnail to some file to 
&lt;br&gt;pass it to some external application (a window manager actually). So, to 
&lt;br&gt;identify the saved thumbnail I would like to name the file as winid.png. 
&lt;br&gt;Is it possible to do that in JavaScript or in C++?
&lt;br&gt;&lt;br&gt;Respectfully,
&lt;br&gt;Michael
&lt;br&gt;_______________________________________________
&lt;br&gt;dev-embedding mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26529871&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-embedding@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.mozilla.org/listinfo/dev-embedding&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.mozilla.org/listinfo/dev-embedding&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-get-X11-Window-Id--tp26529871p26529871.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26530863</id>
	<title>Re: Problems with javascript in embedded browser</title>
	<published>2009-11-26T05:43:12Z</published>
	<updated>2009-11-26T05:43:12Z</updated>
	<author>
		<name>Blaine Monkey</name>
	</author>
	<content type="html">This is the code of the application:
&lt;br&gt;&lt;br&gt;#define XPCOM_GLUE 1
&lt;br&gt;#include &amp;lt;stdlib.h&amp;gt;
&lt;br&gt;#include &amp;lt;stdio.h&amp;gt;
&lt;br&gt;#include &amp;lt;limits.h&amp;gt;
&lt;br&gt;#include &amp;lt;gtk/gtk.h&amp;gt;
&lt;br&gt;#include &amp;quot;xpcom-config.h&amp;quot;
&lt;br&gt;#include &amp;quot;nsXPCOMGlue.h&amp;quot;
&lt;br&gt;#include &amp;quot;nsDebug.h&amp;quot;
&lt;br&gt;#include &amp;quot;nsCOMPtr.h&amp;quot;
&lt;br&gt;#include &amp;quot;widget/nsIBaseWindow.h&amp;quot;
&lt;br&gt;#include &amp;quot;nsILocalFile.h&amp;quot;
&lt;br&gt;#include &amp;quot;nsIWebBrowser.h&amp;quot;
&lt;br&gt;#include &amp;quot;nsIWebBrowserSetup.h&amp;quot;
&lt;br&gt;#include &amp;quot;docshell/nsIWebNavigation.h&amp;quot;
&lt;br&gt;#include &amp;quot;nsEmbedCID.h&amp;quot;
&lt;br&gt;#include &amp;quot;nsEmbedString.h&amp;quot;
&lt;br&gt;#include &amp;quot;xulapp/nsXULAppAPI.h&amp;quot;
&lt;br&gt;#include &amp;quot;nsComponentManagerUtils.h&amp;quot;
&lt;br&gt;&lt;br&gt;#include &amp;quot;nsIPrefService.h&amp;quot;
&lt;br&gt;&lt;br&gt;XRE_InitEmbeddingType XRE_InitEmbedding;
&lt;br&gt;XRE_TermEmbeddingType XRE_TermEmbedding;
&lt;br&gt;&lt;br&gt;static gboolean delete_event( GtkWidget *widget, GdkEvent *event,
&lt;br&gt;gpointer data ) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; gtk_main_quit();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return FALSE;
&lt;br&gt;&lt;br&gt;}
&lt;br&gt;&lt;br&gt;int main(int argc, char** argv) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; GtkWidget *window;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nsCOMPtr&amp;lt;nsIBaseWindow&amp;gt; baseWindow;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nsCOMPtr&amp;lt;nsIWebBrowser&amp;gt; webBrowser;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nsCOMPtr&amp;lt;nsILocalFile&amp;gt; libxul;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nsCOMPtr&amp;lt;nsIWebNavigation&amp;gt; webNavigation;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nsCOMPtr&amp;lt;nsIWebBrowserSetup&amp;gt; browserSetup;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nsDynamicFunctionLoad nsFuncs[] = {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&amp;quot;XRE_InitEmbedding&amp;quot;, (NSFuncPtr*)&amp;XRE_InitEmbedding},
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&amp;quot;XRE_TermEmbedding&amp;quot;, (NSFuncPtr*)&amp;XRE_TermEmbedding},
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {0, 0}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; };
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nsresult rv;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; gtk_init (&amp;argc, &amp;argv);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;gtk_widget_show(window);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rv = XPCOMGlueStartup(&amp;quot;/usr/lib/xulrunner-1.9/libxpcom.so&amp;quot;);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (NS_FAILED(rv)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;XPCOMGlueStartup\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rv = XPCOMGlueLoadXULFunctions(nsFuncs);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (NS_FAILED(rv)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;XPCOMGlueLoadXULFunctions\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rv = NS_NewNativeLocalFile(nsEmbedCString(&amp;quot;/usr/lib/
&lt;br&gt;xulrunner-1.9&amp;quot;), PR_FALSE, getter_AddRefs(libxul));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (NS_FAILED(rv)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;NS_NewNativeLocalFile\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rv = XRE_InitEmbedding(libxul, 0, 0, 0, 0);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (NS_FAILED(rv)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;Error XRE_InitEmbedding %d\n&amp;quot;,rv);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return -1;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; webBrowser = do_CreateInstance(NS_WEBBROWSER_CONTRACTID, &amp;rv);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (NS_FAILED(rv)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;do_CreateInstance webBrowser\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; browserSetup = &amp;nbsp;do_QueryInterface(webBrowser,&amp;rv);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (NS_FAILED(rv)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;do_QueryInterface browserSetup\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; browserSetup-&amp;gt;SetProperty
&lt;br&gt;(nsIWebBrowserSetup::SETUP_ALLOW_PLUGINS,PR_TRUE);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; browserSetup-&amp;gt;SetProperty
&lt;br&gt;(nsIWebBrowserSetup::SETUP_ALLOW_JAVASCRIPT,PR_TRUE);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; browserSetup-&amp;gt;SetProperty
&lt;br&gt;(nsIWebBrowserSetup::SETUP_ALLOW_IMAGES,PR_TRUE);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; browserSetup-&amp;gt;SetProperty
&lt;br&gt;(nsIWebBrowserSetup::SETUP_ALLOW_META_REDIRECTS,PR_TRUE);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; browserSetup-&amp;gt;SetProperty
&lt;br&gt;(nsIWebBrowserSetup::SETUP_ALLOW_SUBFRAMES,PR_TRUE);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; browserSetup-&amp;gt;SetProperty
&lt;br&gt;(nsIWebBrowserSetup::SETUP_IS_CHROME_WRAPPER,PR_FALSE);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //browserSetup-&amp;gt;SetProperty
&lt;br&gt;(nsIWebBrowserSetup::SETUP_ALLOW_IMAGES,PR_TRUE);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; baseWindow = do_QueryInterface(webBrowser);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rv = baseWindow-&amp;gt;InitWindow(window, 0, 0, 0, 1300, 700);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (NS_FAILED(rv)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;InitWindow\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rv = baseWindow-&amp;gt;Create();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (NS_FAILED(rv)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;Create\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rv =baseWindow-&amp;gt;SetVisibility(PR_TRUE);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (NS_FAILED(rv)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;SetVisibility\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; webNavigation = do_QueryInterface(webBrowser);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //rv = webNavigation-&amp;gt;LoadURI(NS_ConvertASCIItoUTF16(&amp;quot;http://
&lt;br&gt;www.google.com&amp;quot;).get(),nsIWebNavigation::LOAD_FLAGS_MASK , 0, 0, 0);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rv = webNavigation-&amp;gt;LoadURI(NS_ConvertASCIItoUTF16(argv[1]).get
&lt;br&gt;(),nsIWebNavigation::LOAD_FLAGS_NONE , 0, 0, 0);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (NS_FAILED(rv)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;LoadURI\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; g_signal_connect(G_OBJECT(window), &amp;quot;delete_event&amp;quot;, G_CALLBACK
&lt;br&gt;(delete_event), 0);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; gtk_main();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; XRE_TermEmbedding();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; XPCOMGlueShutdown();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; exit(0);
&lt;br&gt;}
&lt;br&gt;_______________________________________________
&lt;br&gt;dev-embedding mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26530863&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-embedding@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.mozilla.org/listinfo/dev-embedding&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.mozilla.org/listinfo/dev-embedding&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problems-with-javascript-in-embedded-browser-tp26527595p26530863.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26530868</id>
	<title>Re: Problems with javascript in embedded browser</title>
	<published>2009-11-26T03:49:31Z</published>
	<updated>2009-11-26T03:49:31Z</updated>
	<author>
		<name>Blaine Monkey</name>
	</author>
	<content type="html">On 26 nov, 11:50, Blaine Monkey &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26530868&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;blainem...@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I've a Linux C++ application with mozilla browser embedded.
&lt;br&gt;&amp;gt; The embedded browser shows the google page well.
&lt;br&gt;&amp;gt; I made a simple page with some javascript code, to do a test. The page has a
&lt;br&gt;&amp;gt; table with a text and the javascript changes the text with an image. If I
&lt;br&gt;&amp;gt; open the page with firefox it shows fine, but the embedded browser only
&lt;br&gt;&amp;gt; shows the text. Embedded browser supports javascript as firefox, in't it?
&lt;br&gt;&amp;gt; What's the problem?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Here is the source code:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;html&amp;gt;
&lt;br&gt;&amp;gt;  &amp;lt;head&amp;gt;&amp;lt;title&amp;gt;TESTING&amp;lt;/title&amp;gt;
&lt;br&gt;&amp;gt;     &amp;lt;script src=&amp;quot;buildTable.js&amp;quot; type=&amp;quot;text/javascript&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;
&lt;br&gt;&amp;gt;  &amp;lt;/head&amp;gt;
&lt;br&gt;&amp;gt;     &amp;lt;body bgColor=&amp;quot;yellow&amp;quot; onload=&amp;quot;buildTable();&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt;       &amp;lt;table id=&amp;quot;myTable&amp;quot; border=&amp;quot;2&amp;quot; width=&amp;quot;400&amp;quot; height=&amp;quot;400&amp;quot;&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;span&amp;gt;
&lt;br&gt;&amp;gt; TEXT &amp;lt;/span&amp;gt;&amp;lt;/td&amp;lt;/tr&amp;gt;&amp;lt;table/&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;     &amp;lt;/body&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/html&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; // And this is the code of buildTable.js file:
&lt;br&gt;&amp;gt; function buildTable(){
&lt;br&gt;&amp;gt;  var build = '&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;img src=&amp;quot;food020.jpg&amp;quot; width=&amp;quot;100&amp;quot;
&lt;br&gt;&amp;gt; height=&amp;quot;100&amp;quot;&amp;gt;&amp;lt;/img&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;';
&lt;br&gt;&amp;gt;     document.all.myTable.innerHTML=build;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; }
&lt;/div&gt;This is the application code:
&lt;br&gt;#define XPCOM_GLUE 1
&lt;br&gt;#include &amp;lt;stdlib.h&amp;gt;
&lt;br&gt;#include &amp;lt;stdio.h&amp;gt;
&lt;br&gt;#include &amp;lt;limits.h&amp;gt;
&lt;br&gt;#include &amp;lt;gtk/gtk.h&amp;gt;
&lt;br&gt;#include &amp;quot;xpcom-config.h&amp;quot;
&lt;br&gt;#include &amp;quot;nsXPCOMGlue.h&amp;quot;
&lt;br&gt;#include &amp;quot;nsDebug.h&amp;quot;
&lt;br&gt;#include &amp;quot;nsCOMPtr.h&amp;quot;
&lt;br&gt;#include &amp;quot;widget/nsIBaseWindow.h&amp;quot;
&lt;br&gt;#include &amp;quot;nsILocalFile.h&amp;quot;
&lt;br&gt;#include &amp;quot;nsIWebBrowser.h&amp;quot;
&lt;br&gt;#include &amp;quot;nsIWebBrowserSetup.h&amp;quot;
&lt;br&gt;#include &amp;quot;docshell/nsIWebNavigation.h&amp;quot;
&lt;br&gt;#include &amp;quot;nsEmbedCID.h&amp;quot;
&lt;br&gt;#include &amp;quot;nsEmbedString.h&amp;quot;
&lt;br&gt;#include &amp;quot;xulapp/nsXULAppAPI.h&amp;quot;
&lt;br&gt;#include &amp;quot;nsComponentManagerUtils.h&amp;quot;
&lt;br&gt;&lt;br&gt;#include &amp;quot;nsIPrefService.h&amp;quot;
&lt;br&gt;&lt;br&gt;XRE_InitEmbeddingType XRE_InitEmbedding;
&lt;br&gt;XRE_TermEmbeddingType XRE_TermEmbedding;
&lt;br&gt;&lt;br&gt;static gboolean delete_event( GtkWidget *widget, GdkEvent *event,
&lt;br&gt;gpointer data ) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; gtk_main_quit();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return FALSE;
&lt;br&gt;&lt;br&gt;}
&lt;br&gt;&lt;br&gt;int main(int argc, char** argv) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; GtkWidget *window;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nsCOMPtr&amp;lt;nsIBaseWindow&amp;gt; baseWindow;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nsCOMPtr&amp;lt;nsIWebBrowser&amp;gt; webBrowser;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nsCOMPtr&amp;lt;nsILocalFile&amp;gt; libxul;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nsCOMPtr&amp;lt;nsIWebNavigation&amp;gt; webNavigation;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nsCOMPtr&amp;lt;nsIWebBrowserSetup&amp;gt; browserSetup;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nsDynamicFunctionLoad nsFuncs[] = {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&amp;quot;XRE_InitEmbedding&amp;quot;, (NSFuncPtr*)&amp;XRE_InitEmbedding},
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&amp;quot;XRE_TermEmbedding&amp;quot;, (NSFuncPtr*)&amp;XRE_TermEmbedding},
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {0, 0}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; };
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nsresult rv;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; gtk_init (&amp;argc, &amp;argv);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; gtk_widget_show(window);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rv = XPCOMGlueStartup(&amp;quot;/usr/lib/xulrunner-1.9/libxpcom.so&amp;quot;);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (NS_FAILED(rv)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;XPCOMGlueStartup\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rv = XPCOMGlueLoadXULFunctions(nsFuncs);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (NS_FAILED(rv)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;XPCOMGlueLoadXULFunctions\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rv = NS_NewNativeLocalFile(nsEmbedCString(&amp;quot;/usr/lib/
&lt;br&gt;xulrunner-1.9&amp;quot;), PR_FALSE, getter_AddRefs(libxul));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (NS_FAILED(rv)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;NS_NewNativeLocalFile\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rv = XRE_InitEmbedding(libxul, 0, 0, 0, 0);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (NS_FAILED(rv)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;Error XRE_InitEmbedding %d\n&amp;quot;,rv);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return -1;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; webBrowser = do_CreateInstance(NS_WEBBROWSER_CONTRACTID, &amp;rv);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (NS_FAILED(rv)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;do_CreateInstance webBrowser\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; browserSetup = &amp;nbsp;do_QueryInterface(webBrowser,&amp;rv);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (NS_FAILED(rv)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;do_QueryInterface browserSetup\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; browserSetup-&amp;gt;SetProperty
&lt;br&gt;(nsIWebBrowserSetup::SETUP_ALLOW_PLUGINS,PR_TRUE);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; browserSetup-&amp;gt;SetProperty
&lt;br&gt;(nsIWebBrowserSetup::SETUP_ALLOW_JAVASCRIPT,PR_TRUE);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; browserSetup-&amp;gt;SetProperty
&lt;br&gt;(nsIWebBrowserSetup::SETUP_ALLOW_IMAGES,PR_TRUE);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; browserSetup-&amp;gt;SetProperty
&lt;br&gt;(nsIWebBrowserSetup::SETUP_ALLOW_META_REDIRECTS,PR_TRUE);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; browserSetup-&amp;gt;SetProperty
&lt;br&gt;(nsIWebBrowserSetup::SETUP_ALLOW_SUBFRAMES,PR_TRUE);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; baseWindow = do_QueryInterface(webBrowser);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rv = baseWindow-&amp;gt;InitWindow(window, 0, 0, 0, 1300, 700);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (NS_FAILED(rv)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;InitWindow\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rv = baseWindow-&amp;gt;Create();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (NS_FAILED(rv)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;Create\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rv =baseWindow-&amp;gt;SetVisibility(PR_TRUE);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (NS_FAILED(rv)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;SetVisibility\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; webNavigation = do_QueryInterface(webBrowser);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //rv = webNavigation-&amp;gt;LoadURI(NS_ConvertASCIItoUTF16(&amp;quot;http://
&lt;br&gt;www.google.com&amp;quot;).get(),nsIWebNavigation::LOAD_FLAGS_MASK , 0, 0, 0);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rv = webNavigation-&amp;gt;LoadURI(NS_ConvertASCIItoUTF16(argv[1]).get
&lt;br&gt;(),nsIWebNavigation::LOAD_FLAGS_NONE , 0, 0, 0);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (NS_FAILED(rv)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;LoadURI\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; g_signal_connect(G_OBJECT(window), &amp;quot;delete_event&amp;quot;, G_CALLBACK
&lt;br&gt;(delete_event), 0);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; gtk_main();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; XRE_TermEmbedding();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; XPCOMGlueShutdown();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; exit(0);
&lt;br&gt;}
&lt;br&gt;_______________________________________________
&lt;br&gt;dev-embedding mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26530868&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-embedding@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.mozilla.org/listinfo/dev-embedding&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.mozilla.org/listinfo/dev-embedding&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problems-with-javascript-in-embedded-browser-tp26527595p26530868.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26530785</id>
	<title>Re: Problems with javascript in embedded browser</title>
	<published>2009-11-26T03:45:13Z</published>
	<updated>2009-11-26T03:45:13Z</updated>
	<author>
		<name>Blaine Monkey</name>
	</author>
	<content type="html">On 26 nov, 11:50, Blaine Monkey &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26530785&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;blainem...@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I've a Linux C++ application with mozilla browser embedded.
&lt;br&gt;&amp;gt; The embedded browser shows the google page well.
&lt;br&gt;&amp;gt; I made a simple page with some javascript code, to do a test. The page has a
&lt;br&gt;&amp;gt; table with a text and the javascript changes the text with an image. If I
&lt;br&gt;&amp;gt; open the page with firefox it shows fine, but the embedded browser only
&lt;br&gt;&amp;gt; shows the text. Embedded browser supports javascript as firefox, in't it?
&lt;br&gt;&amp;gt; What's the problem?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Here is the source code:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;html&amp;gt;
&lt;br&gt;&amp;gt;  &amp;lt;head&amp;gt;&amp;lt;title&amp;gt;TESTING&amp;lt;/title&amp;gt;
&lt;br&gt;&amp;gt;     &amp;lt;script src=&amp;quot;buildTable.js&amp;quot; type=&amp;quot;text/javascript&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;
&lt;br&gt;&amp;gt;  &amp;lt;/head&amp;gt;
&lt;br&gt;&amp;gt;     &amp;lt;body bgColor=&amp;quot;yellow&amp;quot; onload=&amp;quot;buildTable();&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt;       &amp;lt;table id=&amp;quot;myTable&amp;quot; border=&amp;quot;2&amp;quot; width=&amp;quot;400&amp;quot; height=&amp;quot;400&amp;quot;&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;span&amp;gt;
&lt;br&gt;&amp;gt; TEXT &amp;lt;/span&amp;gt;&amp;lt;/td&amp;lt;/tr&amp;gt;&amp;lt;table/&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;     &amp;lt;/body&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/html&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; // And this is the code of buildTable.js file:
&lt;br&gt;&amp;gt; function buildTable(){
&lt;br&gt;&amp;gt;  var build = '&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;img src=&amp;quot;food020.jpg&amp;quot; width=&amp;quot;100&amp;quot;
&lt;br&gt;&amp;gt; height=&amp;quot;100&amp;quot;&amp;gt;&amp;lt;/img&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;';
&lt;br&gt;&amp;gt;     document.all.myTable.innerHTML=build;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; }
&lt;/div&gt;&lt;br&gt;This is the Application Code:
&lt;br&gt;&lt;br&gt;#define XPCOM_GLUE 1
&lt;br&gt;#include &amp;lt;stdlib.h&amp;gt;
&lt;br&gt;#include &amp;lt;stdio.h&amp;gt;
&lt;br&gt;#include &amp;lt;limits.h&amp;gt;
&lt;br&gt;#include &amp;lt;gtk/gtk.h&amp;gt;
&lt;br&gt;#include &amp;quot;xpcom-config.h&amp;quot;
&lt;br&gt;#include &amp;quot;nsXPCOMGlue.h&amp;quot;
&lt;br&gt;#include &amp;quot;nsDebug.h&amp;quot;
&lt;br&gt;#include &amp;quot;nsCOMPtr.h&amp;quot;
&lt;br&gt;#include &amp;quot;widget/nsIBaseWindow.h&amp;quot;
&lt;br&gt;#include &amp;quot;nsILocalFile.h&amp;quot;
&lt;br&gt;#include &amp;quot;nsIWebBrowser.h&amp;quot;
&lt;br&gt;#include &amp;quot;nsIWebBrowserSetup.h&amp;quot;
&lt;br&gt;#include &amp;quot;docshell/nsIWebNavigation.h&amp;quot;
&lt;br&gt;#include &amp;quot;nsEmbedCID.h&amp;quot;
&lt;br&gt;#include &amp;quot;nsEmbedString.h&amp;quot;
&lt;br&gt;#include &amp;quot;xulapp/nsXULAppAPI.h&amp;quot;
&lt;br&gt;#include &amp;quot;nsComponentManagerUtils.h&amp;quot;
&lt;br&gt;&lt;br&gt;#include &amp;quot;nsIPrefService.h&amp;quot;
&lt;br&gt;&lt;br&gt;XRE_InitEmbeddingType XRE_InitEmbedding;
&lt;br&gt;XRE_TermEmbeddingType XRE_TermEmbedding;
&lt;br&gt;&lt;br&gt;static gboolean delete_event( GtkWidget *widget, GdkEvent *event,
&lt;br&gt;gpointer data ) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; gtk_main_quit();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return FALSE;
&lt;br&gt;&lt;br&gt;}
&lt;br&gt;&lt;br&gt;int main(int argc, char** argv) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; GtkWidget *window;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nsCOMPtr&amp;lt;nsIBaseWindow&amp;gt; baseWindow;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nsCOMPtr&amp;lt;nsIWebBrowser&amp;gt; webBrowser;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nsCOMPtr&amp;lt;nsILocalFile&amp;gt; libxul;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nsCOMPtr&amp;lt;nsIWebNavigation&amp;gt; webNavigation;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nsCOMPtr&amp;lt;nsIWebBrowserSetup&amp;gt; browserSetup;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nsDynamicFunctionLoad nsFuncs[] = {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&amp;quot;XRE_InitEmbedding&amp;quot;, (NSFuncPtr*)&amp;XRE_InitEmbedding},
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&amp;quot;XRE_TermEmbedding&amp;quot;, (NSFuncPtr*)&amp;XRE_TermEmbedding},
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {0, 0}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; };
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nsresult rv;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; gtk_init (&amp;argc, &amp;argv);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; gtk_widget_show(window);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rv = XPCOMGlueStartup(&amp;quot;/usr/lib/xulrunner-1.9/libxpcom.so&amp;quot;);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (NS_FAILED(rv)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;XPCOMGlueStartup\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rv = XPCOMGlueLoadXULFunctions(nsFuncs);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (NS_FAILED(rv)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;XPCOMGlueLoadXULFunctions\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rv = NS_NewNativeLocalFile(nsEmbedCString(&amp;quot;/usr/lib/
&lt;br&gt;xulrunner-1.9&amp;quot;), PR_FALSE, getter_AddRefs(libxul));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (NS_FAILED(rv)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;NS_NewNativeLocalFile\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rv = XRE_InitEmbedding(libxul, 0, 0, 0, 0);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (NS_FAILED(rv)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;Error XRE_InitEmbedding %d\n&amp;quot;,rv);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return -1;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; webBrowser = do_CreateInstance(NS_WEBBROWSER_CONTRACTID, &amp;rv);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (NS_FAILED(rv)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;do_CreateInstance webBrowser\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; browserSetup = &amp;nbsp;do_QueryInterface(webBrowser,&amp;rv);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (NS_FAILED(rv)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;do_QueryInterface browserSetup\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; browserSetup-&amp;gt;SetProperty
&lt;br&gt;(nsIWebBrowserSetup::SETUP_ALLOW_PLUGINS,PR_TRUE);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; browserSetup-&amp;gt;SetProperty
&lt;br&gt;(nsIWebBrowserSetup::SETUP_ALLOW_JAVASCRIPT,PR_TRUE);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; browserSetup-&amp;gt;SetProperty
&lt;br&gt;(nsIWebBrowserSetup::SETUP_ALLOW_IMAGES,PR_TRUE);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; browserSetup-&amp;gt;SetProperty
&lt;br&gt;(nsIWebBrowserSetup::SETUP_ALLOW_META_REDIRECTS,PR_TRUE);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; browserSetup-&amp;gt;SetProperty
&lt;br&gt;(nsIWebBrowserSetup::SETUP_ALLOW_SUBFRAMES,PR_TRUE);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //browserSetup-&amp;gt;SetProperty
&lt;br&gt;(nsIWebBrowserSetup::SETUP_ALLOW_IMAGES,PR_TRUE);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; baseWindow = do_QueryInterface(webBrowser);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rv = baseWindow-&amp;gt;InitWindow(window, 0, 0, 0, 1300, 700);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (NS_FAILED(rv)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;InitWindow\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rv = baseWindow-&amp;gt;Create();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (NS_FAILED(rv)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;Create\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rv =baseWindow-&amp;gt;SetVisibility(PR_TRUE);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (NS_FAILED(rv)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;SetVisibility\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; webNavigation = do_QueryInterface(webBrowser);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //rv = webNavigation-&amp;gt;LoadURI(NS_ConvertASCIItoUTF16(&amp;quot;http://
&lt;br&gt;www.google.com&amp;quot;).get(),nsIWebNavigation::LOAD_FLAGS_NONE , 0, 0, 0);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rv = webNavigation-&amp;gt;LoadURI(NS_ConvertASCIItoUTF16(argv[1]).get
&lt;br&gt;(),nsIWebNavigation::LOAD_FLAGS_NONE , 0, 0, 0);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (NS_FAILED(rv)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;LoadURI\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; g_signal_connect(G_OBJECT(window), &amp;quot;delete_event&amp;quot;, G_CALLBACK
&lt;br&gt;(delete_event), 0);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; gtk_main();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; XRE_TermEmbedding();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; XPCOMGlueShutdown();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; exit(0);
&lt;br&gt;}
&lt;br&gt;_______________________________________________
&lt;br&gt;dev-embedding mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26530785&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-embedding@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.mozilla.org/listinfo/dev-embedding&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.mozilla.org/listinfo/dev-embedding&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problems-with-javascript-in-embedded-browser-tp26527595p26530785.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26527595</id>
	<title>Problems with javascript in embedded browser</title>
	<published>2009-11-26T02:50:04Z</published>
	<updated>2009-11-26T02:50:04Z</updated>
	<author>
		<name>Blaine Monkey</name>
	</author>
	<content type="html">I've a Linux C++ application with mozilla browser embedded.
&lt;br&gt;The embedded browser shows the google page well.
&lt;br&gt;I made a simple page with some javascript code, to do a test. The page has a
&lt;br&gt;table with a text and the javascript changes the text with an image. If I
&lt;br&gt;open the page with firefox it shows fine, but the embedded browser only
&lt;br&gt;shows the text. Embedded browser supports javascript as firefox, in't it?
&lt;br&gt;What's the problem?
&lt;br&gt;&lt;br&gt;Here is the source code:
&lt;br&gt;&lt;br&gt;&amp;lt;html&amp;gt;
&lt;br&gt;&amp;nbsp;&amp;lt;head&amp;gt;&amp;lt;title&amp;gt;TESTING&amp;lt;/title&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;script src=&amp;quot;buildTable.js&amp;quot; type=&amp;quot;text/javascript&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;
&lt;br&gt;&amp;nbsp;&amp;lt;/head&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;body bgColor=&amp;quot;yellow&amp;quot; onload=&amp;quot;buildTable();&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;table id=&amp;quot;myTable&amp;quot; border=&amp;quot;2&amp;quot; width=&amp;quot;400&amp;quot; height=&amp;quot;400&amp;quot;&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;span&amp;gt;
&lt;br&gt;TEXT &amp;lt;/span&amp;gt;&amp;lt;/td&amp;lt;/tr&amp;gt;&amp;lt;table/&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/body&amp;gt;
&lt;br&gt;&amp;lt;/html&amp;gt;
&lt;br&gt;&lt;br&gt;// And this is the code of buildTable.js file:
&lt;br&gt;function buildTable(){
&lt;br&gt;&amp;nbsp;var build = '&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;img src=&amp;quot;food020.jpg&amp;quot; width=&amp;quot;100&amp;quot;
&lt;br&gt;height=&amp;quot;100&amp;quot;&amp;gt;&amp;lt;/img&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;';
&lt;br&gt;&amp;nbsp; &amp;nbsp; document.all.myTable.innerHTML=build;
&lt;br&gt;}
&lt;br&gt;_______________________________________________
&lt;br&gt;dev-embedding mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527595&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-embedding@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.mozilla.org/listinfo/dev-embedding&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.mozilla.org/listinfo/dev-embedding&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problems-with-javascript-in-embedded-browser-tp26527595p26527595.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26526073</id>
	<title>Re: XRE_InitEmbedding Fails.</title>
	<published>2009-11-26T00:36:26Z</published>
	<updated>2009-11-26T00:36:26Z</updated>
	<author>
		<name>Blaine Monkey</name>
	</author>
	<content type="html">On 25 nov, 15:21, Benjamin Smedberg &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26526073&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;benja...@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; On 11/25/09 4:32 AM, Blaine Monkey wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; executables, I think this is the correct way, in't it? I saw the code
&lt;br&gt;&amp;gt; &amp;gt; of other examples and is the same. I don't know what can be the
&lt;br&gt;&amp;gt; &amp;gt; problem. Any idea?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; No, you'll need to actually debug the problem.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --BDS
&lt;br&gt;&lt;br&gt;I saw where is the problem, but now I've other problem. I downloaded
&lt;br&gt;xulrunner1.9.1.4 and installed it following the instructions, but
&lt;br&gt;Fedora installed an older version of xulrunner (1.0.15) in other path
&lt;br&gt;(/usr/lib/xulrunner-1.9). I change the path in the code and now the
&lt;br&gt;embedded browser appears. Thank you very much.
&lt;br&gt;_______________________________________________
&lt;br&gt;dev-embedding mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26526073&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-embedding@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.mozilla.org/listinfo/dev-embedding&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.mozilla.org/listinfo/dev-embedding&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-XRE_InitEmbedding-Fails.-tp26497390p26526073.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26513617</id>
	<title>Re: XRE_InitEmbedding Fails.</title>
	<published>2009-11-25T06:21:09Z</published>
	<updated>2009-11-25T06:21:09Z</updated>
	<author>
		<name>Benjamin Smedberg</name>
	</author>
	<content type="html">On 11/25/09 4:32 AM, Blaine Monkey wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; executables, I think this is the correct way, in't it? I saw the code
&lt;br&gt;&amp;gt; of other examples and is the same. I don't know what can be the
&lt;br&gt;&amp;gt; problem. Any idea?
&lt;br&gt;&lt;br&gt;No, you'll need to actually debug the problem.
&lt;br&gt;&lt;br&gt;--BDS
&lt;br&gt;_______________________________________________
&lt;br&gt;dev-embedding mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26513617&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-embedding@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.mozilla.org/listinfo/dev-embedding&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.mozilla.org/listinfo/dev-embedding&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-XRE_InitEmbedding-Fails.-tp26497390p26513617.html" />
</entry>

</feed>
