DocShell::RefreshURI question
I was looking at the implementation of DocShell::RefreshURI..
If a "meta-refresh" is present in a page, a nsRefreshTimer is created
and is added to an array mRefreshURIList which is of type
nsISupportsArray.
Question: Is it necessary to have an array for the Refresh list? Can a
page possibly have multiple refresh tags? I was under the impression
that only ONE meta-refresh can be present.
I didn't know where to post this question.. so, I am posting it here.
|
3/8/2010 6:03:56 PM
|
4
|
Jeeva <jeeva....@gmail.com>
|
|
auto registration fails in 1.9.2
Hi,
I have an application that embeds gecko. I recently upgraded to 1.9.2
(FIREFOX_3_6_RELEASE).
Now the XRE startup only works if the compreg.dat is absent. The
pathway that initialises by reading compreg.dat fails.
Is anybody else having any success with this? I have have full debug
builds (Windows), could provide a call stack if anybody is
interested.
Thanks
CArey
|
3/7/2010 8:14:24 PM
|
0
|
Carey <ca...@zestgroup.com>
|
get notified only after all nested requests in a document are done loading
In cases where a top level document has iframes, I want to be notified
only after all the iframes are loaded. that way, when I get the DOM, I
get everything.
I have the following in "IWebProgressListener::onStateChange()", but
that seems to be called for each frame.
if(((stateFlags & nsIWebProgressListener.STATE_STOP ) )
&& ((stateFlags & nsIWebProgressListener.STATE_IS_NETWORK ) ) )
{
}
|
3/4/2010 6:19:53 PM
|
5
|
Jeeva <jeeva....@gmail.com>
|
Keyboard input in embedded gecko?
Using the "New API", I've got some thing ups and running. Figured out
how to run some javascript, use event listeners etc.
But one major item continues to escape me: clicking in a form field
does not give me a cursor to type, nor do any keyboard events seem to
be caught by the browser.
Is something amiss, or am I overlooking something I'm supposed to
implement?
Thanks in advance
|
2/19/2010 9:35:02 PM
|
2
|
David Beane <trane...@gmail.com>
|
Embedded XUL browser cache clearing problem, race condition?
Hi,
I'm working with an application that embeds the XULrunner engine as
its browser engine.
I've run into a problem whereby if I empty the browser cache via calls
to nsICacheService->EvictEntries and then open a page, the page will
still have the previous cached images.
I think, but am open to correction, that the cache clearing goes on in
the background in another thread, and if I perform the new page open
quickly after the call to nsICacheService->EvictEntries the cache may
not yet be cleared and I may re-use the old images?
My reasoning for this is that an increas
|
2/17/2010 3:52:50 PM
|
0
|
greg <g...@gregfarrell.org>
|
Catching mouse back and forward events
Ive embedded gecko into my mfc application (using xpcom) and can pick
up on normal mouse events using the jscript event callbacks but i cant
work out how to pick up on mouse back and forward events (or key
events for that matter) any ideas?
|
2/16/2010 8:28:13 AM
|
0
|
Lodle <lodle....@gmail.com>
|
Linking error in mac
Hi all,
I have embedded XulRunner in my windows app and it is working fine.
Now i am trying to port the same to mac. I am getting few linking
errors which i am not able to resolve. I have tried linking with both
prebuild SDK libs (from mozilla site) and libs after building
xulrunner source code.
My project is on XCode IDE and following are selected build config
details
setenv OTHER_CPLUSPLUSFLAGS "-fno-common -fshort-wchar -fno-rtti
setenv LIBRARY_SEARCH_PATHS "\"/Users/ak/src_ols/development/main/
client_new/client/../build/client/Debug\" "/Users/ak/src_ols/
development/main
|
2/15/2010 2:54:57 PM
|
0
|
testols ols <testing...@gmail.com>
|
Embedding/NewApi + mozilla sources
Hi,
there is a great starting point on Embedding/NewApi, nevertheless some
additional hints would be useful. Helpful could be to SEE a directory
listing with the NewApi/win32 sample AND the mozilla source for Visual
Studio. Maybe someone, who already hav successful embedded those two
parts, could print out a directory listing.
THX
fran
|
2/15/2010 1:52:47 PM
|
0
|
fran <f.h...@gmx.net>
|
Embedding Thunderbird's IMAP library
Hello,
I am writing an application in which supports IMAP library. Currently
I am using http://www.washington.edu/imap/. But this does not support
IMAP through proxy. I want to embed Thunderbird's IMAP library. Is
this possible?
My application is written using C/C++.
--
Sabyasachi
|
2/11/2010 2:14:20 PM
|
0
|
Sabyasachi <ruj.sa...@gmail.com>
|
Problems with nsIDOMWindow scroll methods
Hi,
I was used to programmatically scroll embedded browser content using
some code like this:
nsCOMPtr<nsIDOMWindow> domWindow;
mWebBrowser->GetContentDOMWindow(getter_AddRefs(domWindow));
domWindow->ScrollTo(xScroll, yScroll);
and everything was working fine. BUT this kind of code has no effect
on Google Docs pages, i.e. if I point my browser on (for example)
http://docs.google.com/gview?embedded=true&url=http://www.itu.int/dms_pub/itu-s/md/03/wsis/doc/S03-WSIS-DOC-0004!!MSW-E.doc
nothing happens. Also, if I use methods like nsIDOMWindow::GetScrollX,
I always get 0.
Any
|
2/8/2010 4:55:48 PM
|
0
|
Babele Dunnit <babele.dun...@gmail.com>
|
Form data not saved in history
sample:
<form id="myform" action="result.pl">
<input id="myinput" type="text" />
</form>
I update the value of the input field using
nsIDOMHTMLInputElement::setValue(). I then submit the form with
nsIDOMHTMLFormElement::submit().
In the perl script that gets executed on form submission, I print out
the submitted values. Everything looks good.
Problem: Using nsIWebNavigation::gotoIndex(),when I load the original
form page, I don't see the values of the input field that I had set
previously. It is as if the site was reloaded. Is there some security
setting that preve
|
2/8/2010 4:07:05 PM
|
0
|
Jeeva <jeeva....@gmail.com>
|
How to remove Title Bar in Firefox
Hi all,
I need to remove the title bar of Firefox from the script/
code, in Linux Platform.
So that when i open Firefox, i see only the Firefox application and
nothing else. (I don't want full screen option (F11) ).
Please Help.
|
2/8/2010 8:03:16 AM
|
0
|
"Saravanan.RHCE" <dearsarava...@gmail.com>
|
is 1.9.2 stable??
Recently we tried to switch our application that uses embedded mozilla
browser from 1.9.1.2 to 1.9.2.0 and got two major problems:
1st: almost all sites now crash with Invalid Floating Point exception
0xC0000090 in xul.dll. Code view shows fld instruction that tries to load
floating number from [ebp+8] memory which contains 0xff 0xff 0xff 0xff 0xff
0xff 0xff 0x7f bytes.
2nd: sometimes we get access violation in js3250.dll, JS_TraceChildren (gc),
crashes in attempt to dereference bogus pointer at this line:
2381: JSObject *obj = (JSObject *) thing;
2382: if (!obj->map)
(version
|
2/5/2010 12:04:14 AM
|
0
|
"Dmitry Dartz" <d...@yandex.ru>
|
Using Adobe Acrobat in a FF C++ embedding
....OK, I give up. What should I implement to open and render a PDF in-
place in an embedded Firefox window? I have some partially working
code, but I am doing something wrong and the PDF stops loading... some
pointer to relevant code would be highly appreciated :)
Thanks!
|
2/3/2010 1:45:18 PM
|
0
|
Babele Dunnit <babele.dun...@gmail.com>
|
Re: How to embed Gecko in a Win32 C++ app?
Pedro P. Ribeiro wrote:
> Hey guys!
>
> I'm having a hard time trying to understand how this works. What I need is
> simple to write a Win32 C++ application, like a Wizard, but with the
> interface designed in HTML and JavaScript.
>
> I've already done that using WebKit and IE, but now I also want to use Gecko
> for comparison purposes.
>
> The thing is that I can't find a clear start point. The informations seems
> to be conflicting, sometimes I read about Gecko, sometimes XULRunner, and
> I'm not sure what should I use. Is there a SDK, or a set of libraries that I
> can just inc
|
2/1/2010 6:17:16 PM
|
0
|
Timothy Madden <terminato...@gmail.com>
|
How to embed Gecko in a Win32 C++ app?
Hey guys!
I'm having a hard time trying to understand how this works. What I need is
simple to write a Win32 C++ application, like a Wizard, but with the
interface designed in HTML and JavaScript.
I've already done that using WebKit and IE, but now I also want to use Gecko
for comparison purposes.
The thing is that I can't find a clear start point. The informations seems
to be conflicting, sometimes I read about Gecko, sometimes XULRunner, and
I'm not sure what should I use. Is there a SDK, or a set of libraries that I
can just include to my project?
I appreciate the attetion
|
1/29/2010 4:41:57 PM
|
0
|
"Pedro P. Ribeiro" <pedro.p...@gmail.com>
|
Info about firefox
Hi,
I urgently need complete list of components used in Firefox project
e.g. Gecko, SpiderMonkey =85, and their size (in lines of code) +size of
whole project (in lines of code) for research purposes. I will be
grateful if could provide this info to me. I have very slow internet
connection and can't download full source code for analysis.
Thank you
Aslam
|
1/29/2010 2:01:55 PM
|
0
|
Aslam <aslam.o...@gmail.com>
|
queryInterface exception
I want to get element position and width.
I tried this codes but it throws an exception, my os is windows xp and
xulrunner is 1.8.1.3 and swt is 3.448. Thank you.
nsIDOMElement elem = (nsIDOMElement) node.queryInterface(
nsIDOMElement.NS_IDOMELEMENT_IID); //it works. node is a nsIDOMNode
nsIDOMNSHTMLElement domnshtmlElement =
(nsIDOMNSHTMLElement)node.queryInterface(nsIDOMNSHTMLElement.NS_IDOMNSHTMLELEMENT_IID);
//it throws an exception
//nsIDOMNSHTMLElement domnshtmlElement =
(nsIDOMNSHTMLElement)elem.queryInterface(nsIDOMNSHTMLElement.NS_IDOMNSHTMLELEMENT_IID);
//also fail to wo
|
1/27/2010 3:57:01 AM
|
0
|
Li Li <fancye...@gmail.com>
|
How to get the DocShell for a document ?
Hello
I embedded the browser in my application and I would like to get a
pointer to the DocShell after loading a URL. How could I do that ?
nsIDocShell appears to be documented, or at least it was when it was
called WebShell, but still I get no links to how to get to the interface ..
Thank you,
Timothy Madden
|
1/19/2010 3:09:44 PM
|
2
|
Timothy Madden <terminato...@gmail.com>
|
Gecko. Parse HTML from local file
Hello,
I'm trying to use Gecko SDK for parsing HTML local files.
I can't find any examples of how to do that.
Has anyone alreade done this?
Any help would be much appreciated!!
Regards,
Andrey
|
1/19/2010 11:51:29 AM
|
3
|
Andrey Yesyev <andrey.yes...@gmail.com>
|
How to build sdk archive with the .pdb files included ?
Hello
I would like to compile XULRunner SDK and add the .zip archive to the
project directory so all my team members can get it with the project
from source control and use it, and only I would need to compile it.
However the .pdb files are not included in the resulting archive after
make sdk
in the xulrunner output directory, and so all team members will not see
debugging information when debugging, even if I compile the SDK with
--enable-debugging.
Is there an option or a way for make sdk to also include the .pdb files
in the XULRunner SDK archive ?
Thank yo
|
1/18/2010 8:01:57 PM
|
0
|
Timothy Madden <terminato...@gmail.com>
|
Function list for embedding Gecko under windows?
Hi all,
Can anybody please summarise the functions (and their order) in order to
embed Gecko under a C++ application under windows?
(Not the full code, just the function names).
I have written some code that embeds Gecko under windows & linux, but
something is wrong.
I think I am missing something, but I don't know what.
Regards,
George
|
1/14/2010 4:12:49 PM
|
0
|
Georgios Petasis <petas...@yahoo.gr>
|
nsWebBrowser::GetContentDOMWindow() fails
Hello
I am trying to embed Mozilla with nsIWebBrowser and I get asserts and errors
on creating
the base window and on clicking a link, that the contentDOMWindow is NULL,
and also
an explicit call to
nsIWebBrowser::GetContentDOMWindow()
successfully returns NULL.
I have seen a similar question on this list in 2009, with no solution ... :(
Do you know what could I do ?
Thank you,
Timothy Madden
|
1/13/2010 3:54:31 PM
|
1
|
Timothy Madden <terminato...@gmail.com>
|
Problem with rendering application/ce-html+xml?
Hi=2C
=20
is there a way to load pages which are designed for ce-html?=20
=20
Regular pages like http://tv-html.irt.de/hbbtv/ard-text-2009/index.php work=
like they should=2C but unluckily this one does not work:
http://hybrid.mediathek.ard.de/ce-mediathek/index.jsp
=20
Kind Regards=2C
Peter
=20
_________________________________________________________________
http://redirect.gimas.net/?n=3DM1001xIMFb2
Was machst Du grad bei Facebook? So erfahren es alle im Messenger=
|
1/13/2010 10:02:02 AM
|
1
|
Peter Knecht <petermariakne...@hotmail.com>
|
###!!! ASSERTION: Can't hook up Drag Listeners to NULL receiver: 'inAttachPoint'
Hello
I followed the online tutorial on embedding and I get this error in the
call to pBaseWindow->Create():
###!!! ASSERTION: Can't hookup Drag Listeners to NULL receiver:
'inAttachPoint',
file content/base/src/nsContentAreaDragDrop.cpp,
line 201
Can someone please tell me what the message means ? What could be the
problem ? Is it related to my implementation of nsIEmbeddingSiteWindow ?
Thank you,
Timothy Madden
|
1/13/2010 9:45:17 AM
|
1
|
Timothy Madden <terminato...@gmail.com>
|
Building xulrunner: where are the header files?
Hi all,
I have downloaded the sources using the instructions from here:
https://developer.mozilla.org/En/Simple_Firefox_build
and build xul-runner (make -f client.mk).
However, I cannot find the header files, which used to be inside the
folder xulrunner was built, in the directory dist/include.
Any ideas?
George
|
1/11/2010 11:39:24 PM
|
1
|
Georgios Petasis <petas...@yahoo.gr>
|
nsIDOMWindow2 getWindowRoot
Hello,
getWindowRoot seems to be missing from the interface
nsIDOMWindow2.java, in 1.9.1.4 and 1.9.2b1.
If that's not the case, how do we get a nsIDOMEventTarget from
nsIDOMWindow2?
Thanks,
Olivier
|
1/11/2010 10:19:38 PM
|
0
|
=?ISO-8859-1?Q?Olivier_Dor=E9mieux?= <oliv...@newsoftwaremarketing.com>
|
Embedding Gecko under windows: sporadic lock-ups?
Hi all,
I have written some code to embed Gecko under windows, in a C++ app.
What I generally do in the embeding code is:
1) Call XPCOMGlueStartup.
2) Call XPCOMGlueLoadXULFunctions.
3) Call XRE_InitEmbedding.
And use Gecko.
However, I am using Gecko from the same thread that Gecko also runs.
What I observe is that sometimes my app
locks up after I have loaded some web pages. I looked at code that
usually embeds Gecko under linux, and I saw that
Gecko is run in its own thread. Is this required also under windows?
Or have I forgot to initialise something?
Regards,
Ge
|
1/11/2010 10:18:08 PM
|
0
|
Georgios Petasis <petas...@yahoo.gr>
|
Setting Gecko in offline mode?
Hi all,
Is there a way I can stop Gecko from connecting and downloading from the
net?
I want to process some saved web pages, and connecting and downloading
all the missing stuff slows it down.
Is there a way to achieve the "Offline mode" Firefox has?
Regards,
George
|
1/11/2010 10:06:27 PM
|
1
|
Georgios Petasis <petas...@yahoo.gr>
|
How do draw over a displayed page ?
Hello
Building Firefox in order to embed Gecko is so complicated !
Is it possible to get just some redistributable with an .dll, a header
file and a .chm file for documentation to embed Gecko ?
When I embed it in my application can I draw some rectangles over the
displayed page ? By intercepting the paint/draw message from Windows ?
My client wants certain regions selected in red (drawn with alpha-blending).
Can I navigate the HTML tree for the displayed document with a DOM
interface and get the bounding rectangle for the HTML elements in the
document ? And then get the sc
|
1/8/2010 5:44:28 PM
|
0
|
Timothy Madden <terminato...@gmail.com>
|
When to set custom cookie.
Hi,
I have embedded xulrunner in my application and its working fine for
normal browsing. I want to set few custom cookies(like session cookies
etc) before any web page is opened in browser. For that i do the
following:-
/// adding cookies via nsICookieManager2.Add() before opening
web page.
nsCOMPtr<nsIWebNavigation> webNav(do_QueryInterface(myWebBrowser));
webNav->LoadURI(NS_ConvertASCIItoUTF16(inURL.c_str()).get
(),nsIWebNavigation::LOAD_FLAGS_NONE,nsnull,nsnull,nsnull);
But it is not working and cookies are not send to server. Please let
me know how to add custom co
|
1/6/2010 11:19:05 AM
|
0
|
testols ols <testing...@gmail.com>
|
How to remaster Firefox with our extension installed?
I am designing a Linux distro with Firefox running successfully.
I need to install an extension xyz, so that once my Linux OS boots up
an when i click on Firefox, it must have the extension xyz installed.
I tried installing the extension by command line by adding the
following commands in startup script after X gets loaded.
firefox -install-global-extension xyz.xpi
firefox &
This did not work for me.
SO how to have firefox with xyz extension already installed?
ie what are the necessary files to be placed under extensions
directory under firefox installed directory?
Pleas
|
1/3/2010 6:29:55 PM
|
0
|
"Saravanan.RHCE" <dearsarava...@gmail.com>
|
Deleting objects C++
Hi again,
I want to delete/destroy all the objects when the browser window is
destroyed, but my application crashes. I saw there is a Release() function.
I think this function must be called to destroy the objects, in't it? If
not, what is the way to destroy the objects (nsIWebBrowser, and other
objects that implement mozilla interfaces)
For example, I created a class called EmbedEventListener, and it implements
the nsIDOMKeyListener, nsIDOMMouseListener and nsIDOMUIListener interfaces.
I created the object after add the browser progress listener. This is the
code:
m
|
12/23/2009 4:26:42 PM
|
0
|
Blaine Monkey <blainem...@gmail.com>
|
Re: Problems detecting event
>
> Date: Wed, 16 Dec 2009 09:57:27 -0800
> From: Boris Zbarsky <bzbarsky@mit.edu>
> To: dev-embedding@lists.mozilla.org
> Subject: Re: Problems detecting event
> Message-ID: <f7idnT8Vd_oVgrTWnZ2dnUVZ_oMAAAAA@mozilla.org>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> On 12/16/09 6:49 AM, Blaine Monkey wrote:
> >> I assume your EmbedEventListener QI implementation is correct and such?
> >
> > I don't use QI to obtain the EmbedEventListener object, I used a pointer.
>
> Yes, I know. But the code you're calling into may well QI it. Hence me
> wanting to double-
|
12/22/2009 8:36:20 AM
|
0
|
Blaine Monkey <blainem...@gmail.com>
|
Problems detecting event
>
> Date: Tue, 15 Dec 2009 09:51:20 -0800
> From: Boris Zbarsky <bzbarsky@mit.edu>
> To: dev-embedding@lists.mozilla.org
> Subject: Re: Problems detecting event
> Message-ID: <7badnS97kKoFUbrWnZ2dnUVZ_vadnZ2d@mozilla.org>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> On 12/15/09 6:06 AM, Blaine Monkey wrote:
> > Gecko Version: Mozilla XULRunner 1.9.0.15 - 2009102704
>
> OK, should be good.
>
> > I thought that pCOM_det->AddEventListener
> > (NS_LITERAL_STRING("DOMSubtreeModified"), domEvList, false); function
> adds
> > the event to the domEvlist listener an
|
12/16/2009 2:49:02 PM
|
1
|
Blaine Monkey <blainem...@gmail.com>
|
Re: Problems detecting event
>
>
> Date: Mon, 14 Dec 2009 09:52:35 -0800
> From: Boris Zbarsky <bzbarsky@mit.edu>
> To: dev-embedding@lists.mozilla.org
> Subject: Re: Problems detecting event
> Message-ID: <OJ6dneqwHrb55rvWnZ2dnUVZ_rpi4p2d@mozilla.org>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> On 12/14/09 1:38 AM, Blaine Monkey wrote:
> > OnStateChange I tried to add for example the "DOMSubtreeModified" event
> > to EmbedListener object when STATE_STOP, It add the event without fail,
> but
> > never detects it. Mouse events are detected well, but not
> > "DOMSubtreeModified".
>
> Wh
|
12/15/2009 2:06:33 PM
|
1
|
Blaine Monkey <blainem...@gmail.com>
|
Problems detecting event
I created a class (MyBrowser). This class implements the interfaces:
public nsIWebBrowserChrome,
public nsIWebBrowserChromeFocus,
public nsIEmbeddingSiteWindow,
public nsIInterfaceRequestor
I created a progresslistener (MyProgressListener) and MyBrowser object add
this listener.
I created a class (EmbedListener) and it implemets:
public nsIDOMKeyListener,
public nsIDOMMouseListener,
public nsIDOMUIListener
In MyBrowser object I created the EmbedListener object and I add these
listeners (nsIDOMKeyListener, nsIDOMMouseListener, nsIDOMUIListener) to it.
OnStateChange I tried to a
|
12/14/2009 9:38:05 AM
|
1
|
Blaine Monkey <blainem...@gmail.com>
|
unable to write in textbox/text area
I have embedded Xulrunner into my native application. The webpage
opens up in xulrunner browser and renders the html page correctly.
However the browser is not letting me to enter text into the text
fields or text area. Is there anything specific required for letting
the user enter text.
|
12/11/2009 11:23:35 AM
|
6
|
testols ols <testing...@gmail.com>
|
How to Embed Intro? ( Any help would be greatly appreciated)
Hey All,
I'm needing assistance getting started. I've looked at Mozilla docs
which I will continue to do and am grateful to have, however from an SDK
API standpoint, I was hoping to find something more like.
To Embed do the following:
1. Download xulrunner-XXX or Firefox-XXX source (whats the difference?)
a) To build for embedding purposes, .mozconfig should be?
b) How to install ( e.g. make install or equiv which puts libs?)
2. When compiling include:
a) Which switches (e.g. -DMOZILLA_INTERNAL_API -DMOZ_XUL )
b) Which headers to include ( normally, but I think I got th
|
12/9/2009 8:59:52 PM
|
0
|
ghost <jwhitfi...@neilab.com>
|
Embedding Gecko/XULRunner for ARM Environment.
Hi,
Can I build Gecko/XULRunner for ARM Environment? If yes, can anybody
let me know the process in detail?
The following are the contents of the "mozconfig" file that I'm using
-
------------------------------------------------------------------------------------------------------
CROSS_COMPILE=1
mk_add_options MOZ_CO_PROJECT=xulrunner
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-xulrunner
ac_add_options --enable-application=xulrunner
ac_add_options --disable-javaxpcom
# with Windows XP support
# ac_add_options --with-windows-version=600
--host=i686
--target=arm
--------------
|
12/8/2009 11:07:29 AM
|
0
|
Wrangler <wrangler.tor...@gmail.com>
|
Getting the CSS rules collection
Hi,
I'm trying to get the collection of CSS rules of certain document.
Following is the source code I try to use to retrieve those rules.
nsCOMPtr<nsIInterfaceRequestor> requestor;
this->GetInterfaceRequestor(getter_AddRefs(requestor));
nsCOMPtr<nsIDOMDocument> document = do_GetInterface(requestor);
nsCOMPtr<nsIDOMDocumentStyle> doc = do_QueryInterface(document);
if (doc)
{
nsCOMPtr<nsIDOMStyleSheetList> sheets;
nsresult rv = doc->GetStyleSheets(getter_AddRefs(sheets));
PRUint32 length;
sheets->GetLength(&length);
for (PRUint32 i = 0; i < length; +
|
12/7/2009 5:15:00 PM
|
3
|
martin <rack...@gmail.com>
|
nsIWebBrowser and GtkMozEmbed
Hey Guys,
Running into a runtime issue with GtkMozEmbed. When I call
gtk_moz_embed_get_nsIWebBrowser, I'm getting a segfault with a stack
trace that's pointing to NULL.
(gdb) bt
#0 0x00000000 in ?? ()
#1 0x0807b91f in mozilla_purge_history (embed=0x80d5810 [GtkMozEmbed],
full_purge=1) at mozilla.c:292
#2 0x08066e9d in moz_embed_uri_open (moz_embed=0x80d5810 [GtkMozEmbed],
uri=
0x87522d0 "http://localhost/main_menu.php") at moz_embed.c:336
290 if (embed != NULL && GTK_IS_MOZ_EMBED (embed)) {
291 gtk_moz_embed_get_nsIWebBrowser (GTK_MOZ_EMBED(embed
|
12/7/2009 3:27:01 PM
|
0
|
Glen Gray <sla...@slaine.org>
|
Does anyone know the work-around for this gtkmozembed focus issue?
Hi,
We encountered a bug of gtkmozembed that it can't correctly transfer
focus between two embedded browsers in one window. We submitted the
bug report (https://bugzilla.mozilla.org/show_bug.cgi?id=490447) half
a year ago, but we still haven't the solution. I have tried to
discover the cause, but the focus logic is too complex to me.
Has anyone encountered the same issue, and knows the work-around?
Thanks,
Xianzhu
|
12/7/2009 4:58:15 AM
|
0
|
Xianzhu Wang <phnix...@gmail.com>
|
download UI
I am embedding xulrunner in Eclipse SWT browser. When download a file, the
progress window is display and it is not resizable. How do I make it
resizable like in Firefox?
Also, when the download completes, I got the download complete alert box
popup ( not sliding out from bottom right corner like Firefox 3.5.x ), and
the alert box is big and not able to resize either.
Would appreciate any help!
Regards
-Beth
|
12/4/2009 8:27:16 PM
|
0
|
"Beth Chen" <chenb...@hotmail.com>
|
Problems compiling against GtkMozEmbed
I stupidly replied to another thread with my email on this yesterday.
Reposting with some updates.
I've created a project for testing out my problems and I've copied it to
http://slaine.org/files/testgtkembed.tar.bz2
This is basically an autotools project that tries to build
TestGtkEmbed.cpp file from
xulrunner/embedding/browser/gtk/tests/TestGtkEmbed.cpp
I've taken a look at yelp which does compile and run on my system, and
I've replicated as much of their m4 macro for detecting the correct
include paths and linker paths.
I've verified that the -I and -L params I'm see
|
12/2/2009 1:29:53 PM
|
0
|
Glen Gray <sla...@slaine.org>
|
AddWebBrowserListener fails (NS_ERROR_INVALID_POINTER)
Hi,
I created a C++ class called MyBrowserProgressListener. This class
implements the nsIWebProgressListener interface. When I run the application
the AddWebBrowserListener fails. I returns 0x80004003
(NS_ERROR_INVALID_POINTER)
I defined the NS_STATIC_CAST in main.cpp code because isn't defined in
nscore.h. [#define NS_STATIC_CAST(__type, __ptr) static_cast< __type
>(__ptr)]
I included the "nsIWeakReference.h" and "nsIWeakReferenceUtils.h" headers
because without them the compiler returns: do_GetWakReference was not
declared in this scope.
What am I doing wrong? The code
|
12/2/2009 12:01:54 PM
|
3
|
Blaine Monkey <blainem...@gmail.com>
|
How to close gtk window after execute all javascript code
Hi,
I embedded Gecko in a GTK application. It opens pages containing javascript
code. For example, they have some timers and make changes after load the
page.
I wan't to close the gtk window when the page ends executing all.
I thought that I could close the window with "window.close()" javascript
function and get the event implementing niWebProgressListener interface or
other interface, but the "window.close()" javascript function doesn't close
the window because it's the main broser window.
How can I inform to gecko that a page has finished executing all and is
ready to be clo
|
12/1/2009 5:02:32 PM
|
0
|
Blaine Monkey <blainem...@gmail.com>
|
notify when event handling is complete
I am working on embedding Gecko..
Question: when a user clicks on a LINK (anchor node), I want to know when
the processing of the request is complete. i.e. if the link just updates the
existing page with content, then I would like to know when the update is
complete.. so that when I retrieve the DOM, I see the updated content..
Right now, I just sleep for a minute and then parse the DOM. Most of the
time this works, but I would like to know if there is a notifier that I
could use.
e.g. In the code below, clicking on "Populate", adds innerHTML to "div1"...
I want to be notified whe
|
11/27/2009 5:23:08 PM
|
3
|
Jeeva Muthukrishnan <jeeva....@gmail.com>
|
How to get X11 Window Id?
Hi All,
Need to write an XPCOM which returns X11 window id for the current
window. The entire problem is to save window thumbnail to some file to
pass it to some external application (a window manager actually). So, to
identify the saved thumbnail I would like to name the file as winid.png.
Is it possible to do that in JavaScript or in C++?
Respectfully,
Michael
|
11/26/2009 1:57:21 PM
|
0
|
"Michael A. Borisov" <bori...@gmail.com>
|
Problems with javascript in embedded browser
I've a Linux C++ application with mozilla browser embedded.
The embedded browser shows the google page well.
I made a simple page with some javascript code, to do a test. The page has a
table with a text and the javascript changes the text with an image. If I
open the page with firefox it shows fine, but the embedded browser only
shows the text. Embedded browser supports javascript as firefox, in't it?
What's the problem?
Here is the source code:
<html>
<head><title>TESTING</title>
<script src="buildTable.js" type="text/javascript"></script>
</head>
<body bgColor="yel
|
11/26/2009 10:50:04 AM
|
7
|
Blaine Monkey <blainem...@gmail.com>
|
Does nsIBaseWindow process WM_SIZE message (Windows) ?
Setting nsIBaseWindow vis SetWindowPos () with native HWND does not
seem to work.
Do I have to subclass nsIBaseWindow and process WM_SIZE message and
call nsIBaseWindow->SetPositionAndSize () myself ?
Is this proper way of handling WM_SIZE message for nsIBaseWindow in
Windows ?
Thx!
|
11/24/2009 8:44:04 PM
|
2
|
graniteglory <granitegl...@gmail.com>
|
XRE_InitEmbedding Fails.
I've a xulrunner C++ embedding example, it compiles and generates the
executable, but when I run it, the XRE_InitEmbedding fails. I've xulrunner
installed in /opt/xulrunner-1.9.1.4
What am I doing wrong?
This is the code:
#define XPCOM_GLUE
#include <stdlib.h>
#include <stdio.h>
#include <limits.h>
#include <gtk/gtk.h>
#include "xpcom-config.h"
#include "nsXPCOMGlue.h"
#include "nsDebug.h"
#include "nsCOMPtr.h"
#include "widget/nsIBaseWindow.h"
#include "nsILocalFile.h"
#include "nsIWebBrowser.h"
#include "docshell/nsIWebNavigation.h"
#include "nsEmbedCID.h"
#include "
|
11/24/2009 2:41:18 PM
|
4
|
Blaine Monkey <blainem...@gmail.com>
|
easy questions about embedding
Hi,
I've a Linux C++ application, and I want to embedd gecko into it. I read the
embedding basics documentation, but I don't know what is the best option.
My C++ program is waiting for arriving sockets, and the idea is open a web
browser page when a socket arrives. My application must be XPCOM? Is
possible to do this with a XCOMP module?
|
11/23/2009 4:50:01 PM
|
2
|
Blaine Monkey <blainem...@gmail.com>
|
How do I get HWND from nsIBaseWindow (Windows) ?
Two questions:
I assume nsIBaseWindow->Create () creates the container window for
browser engine.
One, is there anyway I can get its HWND once it is created ?
Two, I have a parent window (frame) and trying to create browser
within WM_CREATE message of frame window and it doesn't seem to work.
Browser does not appear correctly (invisible). Creating browser once
WM_CREATE (frame window) completes, does work. Is this how it is
supposed to be by design ?
Thx!
|
11/21/2009 12:12:01 AM
|
2
|
graniteglory <granitegl...@gmail.com>
|
Where are documentations ?
Pagelink does not work
https://developer.mozilla.org/en/Interfaces
Besides the list, are there any in-depth interface and methods docs,
preferably with how-tos ?
Thx!
|
11/21/2009 12:02:51 AM
|
0
|
graniteglory <granitegl...@gmail.com>
|
bypass security exception when calling xpcom from webpage | how to pass msg from webpage to application
Hi,
I have integrated xulrunner in my application and am able to load
webpages to it. My main requirement is to invoke native application
function through webpage. Through webpage i want to indicate
application to close/terminate browser and if possible pass some
message to it.
I proceeded by implementing xpcom. I am able to invoke functions
through xpcshell.exe but when i try to invoke from webbrowser a dialog
box is poped up seeking permission from user. I want to bypass this
dialog.
While calling xpcom object i have asked for the following permission.
netscape.security.Privileg
|
11/19/2009 9:48:52 AM
|
2
|
testols ols <testing...@gmail.com>
|
Custom Firefox Browser/Embedded Browser
Hi All,
How you all doing? The project im working on right requires a custom
build of firefox (scaled down) to be produced for our health service
(UK based). Could anyone either point me in the direction of a
freelancer developer or offer me your services. A development brief is
available should this interest you. In any case you can contact me and
the said email above.
Thanks for your time all,
Tom Martin
|
11/18/2009 5:26:37 PM
|
0
|
Tom M <tom.martin.iph...@googlemail.com>
|
Browser for IP STB
Hi
We are manufacturing an IP STB for our project in India. In this
regards, we are looking for help in developing a browser for our IP
STB based on Gecko. Kindly contact me at mahefooz@techwaymail.in to
discuss further.
Regards,
Mohammad Mahefooz
|
11/14/2009 11:02:21 AM
|
0
|
Hafiz <mahefoo...@gmail.com>
|
Some questions
Hello,
I saw that it's possible to embedd gecko into my C++ application.
It's possible to install flashplayer and other plugins in gecko as same as
firefox?
How can I embedd these plugins?
|
11/12/2009 3:00:18 PM
|
0
|
Blaine Monkey <blainem...@gmail.com>
|
crash by embedding xulrunner 1.9.1.5/firefox 3.5.5
Hi all,
it seems that embedding does not work anymore just after the use of TLS(thread local STORAGE) variables was introduced
in order to make NS_IsMainThread faster.
(see http://hg.mozilla.org/releases/mozilla-1.9.1/log/27d9d4107522/xpcom/threads/nsThreadManager.cpp)
The call of NS_InitXPCOM2 causes "access violation" exception since the use of TLS has limitations.
(http://msdn.microsoft.com/en-us/library/2s9wt68x.aspx)
Is it a BUG or is the behavior expected this way ?!
embedding strategy: Frozen linkage: standalone glue (no DLL dependencies)
System: Windows XP SP3
tested
|
11/10/2009 1:36:47 PM
|
1
|
Viktor Tymoshenko <v.tymoshe...@itcampus.de>
|
crash by embedding xulrunner 1.9.1.5/firefox 3.5.5
Hi all,
it seems that embedding does not work anymore just after the use of TLS(thread local STORAGE) variables was introduced
in order to make NS_IsMainThread faster.
(see http://hg.mozilla.org/releases/mozilla-1.9.1/log/27d9d4107522/xpcom/threads/nsThreadManager.cpp)
The call of NS_InitXPCOM2 causes "access violation" exception since the use of TLS has limitations.
(http://msdn.microsoft.com/en-us/library/2s9wt68x.aspx)
Is it a BUG or is the behavior expected this way ?!
embedding strategy: Frozen linkage: standalone glue (no DLL dependencies)
System: Windows XP SP3
tested
|
11/10/2009 12:09:23 PM
|
0
|
Viktor Tymoshenko <vtymoshe...@itcampus.de>
|
Why NS_GetSpecialDirectory fails?
Hi all,
Now that I have fixed most memory leaks, I am after other issues :-)
My embedded app fails to keep navigation history, and tracing down the
code there is a problem in
nsNavHistory::InitDBFile(), where the call to:
NS_GetSpecialDirectory(NS_APP_USER_PROFILE_50_DIR, ...);
fails (with result 0x80004005 - which means what?).
Any ideas why this call fails? I had the impression that returns
something related to the second argument (AppDir)
of XRE_InitEmbeding().
Also, what I am supposed to pass as an application directory to
XRE_InitEmbeding? My ~/.mozilla directory?
|
11/5/2009 11:35:56 PM
|
9
|
Georgios Petasis <petas...@yahoo.gr>
|
Problem when using nsIWebBrowserStream
Hello,
Using this code I can set HTML for currently displaying document:
// create stream to put string in
nsresult rv;
nsCOMPtr<nsIStringInputStream> inputStream(
do_CreateInstance("@mozilla.org/io/string-input-stream;1", &rv) );
if (NS_FAILED(rv)) return false;
// convert our string to stream
inputStream->SetData( data.mb_str(), data.length() );
// get document shell
nsCOMPtr<nsIDocShell> docShell(
do_GetInterface(m_ptrs->m_web_browser) );
NS_ENSURE_TRUE(docShell, NS_ERROR_FAILURE);
// finally, load the stream we made
|
11/4/2009 8:55:32 PM
|
0
|
ProducerOfEzPresso <webmas...@ez-presso.com>
|
Modifying DOM document on the fly
Hi there,
I am working on a cross-platform desktop application where we have
embedded browser window to display some presentation data. Now I am
looking for a way to modify/replace currently displayed DOM document.
Let me explain what I am trying to achieve:
Here we are getting the nsIDOMDocument interface:
// get dom document from web nav
nsCOMPtr<nsIDOMDocument> domDocument;
nsresult rv = m_ptrs->m_web_navigation->GetDocument(
getter_AddRefs(domDocument) );
if (NS_FAILED(rv)) return false;
if (!domDocument) return false;
Then we are modifying its children using method
|
11/4/2009 8:54:10 PM
|
1
|
ProducerOfEzPresso <webmas...@ez-presso.com>
|
Gecko (GRE) PSM
Hi. Sorry for very bad English. I have problem in Gecko in Delphi. I
have GRE for here: http://ftp.newbielabs.com/Delphi%20Gecko%20SDK/ .
Program work, also error in Google login. Problem in PSM (Personal
Security Manager). Why? How repair this? Download plugin, component,
dll, edit config?
This is screen: http://img193.imageshack.us/img193/359/erroryx.jpg
Very pleas, help me.
|
11/4/2009 6:51:35 PM
|
0
|
Adrian-Adi <mods...@gmail.com>
|
Memory usage: 4MB per page?
Hi all,
I am trying to embed mozila inside a C application, and in general I
have succeeded to a large degree.
But I have a large problem: memory usage is increased by each page I load.
I have used valgrind to debug the memory usage, but nothing that
originates from code seems to be leaked. All leaked objects seem to have
been created inside mozilla libraries.
Here is the log the debug build of xul runner (compiled from sources)
writes on the terminal:
http://www.ellogon.org/~petasis/sync3/mozilla-debug-log.txt
What puzzles me, are the following issues:
1) I have no
|
11/3/2009 12:40:48 AM
|
11
|
Georgios Petasis <petas...@yahoo.gr>
|
Custom JavaScript functions
Hi,
I have embedded XULrunner in my native APP, written in C++, and its
running successfully. Now I want to introduce some custom JS functions
and link them to C++ function of my native app. When these JS
functions are called through web page, C++ func of native app should
be invoked. How can i link JS methods to C++ funcs?
@kash
|
10/29/2009 8:32:02 AM
|
0
|
testols ols <testing...@gmail.com>
|
Problems with PDF/Adobe Acrobat
Hi everybody,
when I try to open a PDF document clicking on it, my OnStateChange
gets called repeatedly, but I get a NS_BINDING_ABORTED error before
loading completely the document. If I change settings from the Adobe
Reader application (edit->preferences->Internet->show PDF in browser
window) and uncheck it, the load goes OK and an external instance of
the Reader with the PDF is created and shown.
Any idea about why I get that error in the middle of the load when
Adobe Reader is configured to show the PDF inside the browser?
thx!
Aaron
|
10/28/2009 4:15:42 PM
|
0
|
Babele Dunnit <babele.dun...@gmail.com>
|
Any decent way to ban specific JS bindings on window object?
Dear all, I just wonder whether exists any decent way to ban or block
the specific JS bindings on window object, such as "window.alert()",
"window.location" in moz-embed?
Many thanks in advance!
Regards,
Harry
|
10/28/2009 8:05:04 AM
|
0
|
Harry Zhang <zhangha...@gmail.com>
|
gecko mozilla 1.8 host name resolution
I defined 2 servers with the same host name, but 2 differents
addresses into my WINDOWS\SYSTEM32\drivers\etc\hosts file.
If a server fails my exchanges are routed on the second server.
This system is known as "round robin". Is it implemented into (I use
Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.23) Gecko/
20090825 SeaMonkey/1.1.18).
Round robin was implmeented into the Apache HttpClient's class. It was
just done as
- getting an array with all adresses defined with the same server name
into the hosts file.
- creating a socket for each adress . If it fails, try with
|
10/26/2009 4:29:53 PM
|
0
|
philippe <PA510...@exchange.france.ncr.com>
|
Help: Newbie needs some TLC Please
I am a newbie and its my first time trying to embed gecko into my
application.
1. This is my very first time seen Mozilla source code/structure/
directory and so on.
2. downloaded "mozilla-1.9.1" and ran "make client.mk build"
3. I can not find MFCEmbed anywhere including "mozilla-1.9.1/embedding/
tests"
4. Other tests (winEmbed, wxEmbed) do not compile correctly or VC++
project does not convert or work
5. My environment is VC++ 10 beta 1 (I want to use Lambda and
Concurrency runtime).
6. I searched google and read mozilla developer document. It is
confusing and not very up to da
|
10/26/2009 8:49:55 AM
|
3
|
graniteglory <granitegl...@gmail.com>
|
How to make asynchronous function call to synchronous ?
Hi.
I'm developing a HTML WYSIWYG application using gecko engine.
I faced a problem which is about synchronous issue.
It seems that function, eg. nsIWebNavigation::LoadURI,
nsIWebBrowserPersist::SaveDocument, dosen't wait the end of process their
own, it means I also should wait the notification message, so I want to ask
that there is a way to make those asynchronous function to synchronous
function.
I want to try like this,
void Function()
{
persist->SaveDocument(...);
LaunchBrowser(...); // But I don't make sure saving the HTML file is
finished.
}
|
10/16/2009 10:06:14 AM
|
1
|
"Scott Lee" <withj...@gmail.com>
|
Simple dom handling
I am looking for a very simple console example that I can either hard code
in a web page address or pass it in as an argument and have the embedded
browser download the page and print it to the console. If anyone has
something like this or would be willing to write it for me that would be
greatly appreciated. When I say print it to the console I mean formatted to
something like 70 characters width I don't want the source printed I and it
doesn't have to have fonts and graphics I just want the text and maybe if
there are images have it print the word image or nothing at all.
Thank
|
10/14/2009 1:39:26 PM
|
0
|
"Ken Perry" <kpe...@aph.org>
|
disable autherization required pop up
Hi All,
Is there a way to disable the autherization required pop up in
firefox. I am working on a client side application and need to handle
autherization failed issue if user enters wrong credentials.
Thanks,
--Mayank.
|
10/12/2009 12:35:12 PM
|
0
|
Mayank <call.mayankg...@gmail.com>
|
unknownContentType.xul, new embedding API with QT
hi all,
i got the Qt test application from the new embedding API up and
running, but i get an error message when i want to open a *.jnlp file.
I read about the problem and the solution should be to add the
branding files to my application.
I tried to add a chorme/locale/branding directory with the brand.dtd
and the brand.properties file. I also added a chrome.manifest. But the
error message is the same.
I don't know where to exactly to put that chrome directory.
Kind Regards
Imons
|
10/12/2009 11:07:52 AM
|
0
|
Imons <simon.zu...@gmail.com>
|
Help with embedding (Slovakia)
hello
iam an student on FMFI UK Bratislava, in my thesis, i need to embedd
firefox in my application on a special way
anyone from slovakia (best bratislava) who could give me a helping
hand is welcome:)
of course i will pay you too
ansewer on "sonic.a3net@gmail.com" pls
thank you
|
10/6/2009 4:57:01 PM
|
0
|
Sonic <sonic.a3...@gmail.com>
|
gecko DOM access algorithm, Xulrunner viewing multiple tabs, improving javascript performance
Hi All,
1. can someone direct me to some resources about the algorithm gecko
uses to find elements in the DOM. I am working on a web application
with a complex DOM and the performance issues are increasing as the
DOM is getting bigger.
2. Is there a way to view multiple tabs together, on different parts
of the screen, this way I can break my application into multiple small
applications and open them together in different tabs, that might
improve the performance.
3. Are there any setting that can be changed in a user preferences or
firefox settings that might improve performance
|
9/30/2009 2:29:19 PM
|
1
|
Mayank <call.mayankg...@gmail.com>
|
Cpu usage in about:blank page
Hello,
Using xulrunner-1.9.0.2, my small browser was using 0.7% of cpu power
in about:blank page. Using xulrunner-1.9.1, it uses now 2% of cpu in
the same page. It seems that my application spends most of its time in
JS_CallTracer function. I'm testing on linux running on a small
amcc440 ppc cpu. I have no plug-in and no extension installed.
Is there a way to reduce this cpu consumption in about:blank page ?
Regards
Patrice
|
9/18/2009 7:44:52 AM
|
0
|
Patrice Bouchand <pbfwdl...@gmail.com>
|
Embedded mozilla firefox in nusphere phped (IDE)
Hi mozilla.dev.embedding,
Firefox version: Embedded mozilla firefox.
path c:\programs file\Nusphere\PhpEd\Mozilla Browser\Firefox
1.9.0.3440.
Operating system: Windows XP3
I use nusphere phped with possibilities to display my application
results. I have two options:
option 1: EXTERNAL mozilla firefox path c:\programs file\Mozilla
Firefox3.5.2.
(add-ons download : Firebug,Mediawrap and so ).
I can work (Application need add-on Firefox Mediawrap) .No problem.
option 2: EMBEDDED mozilla firefox .
path c:\programs\file\Nusphere\PhpEd\MozillaBrowser\Firefox
1.9.0.3440
|
9/17/2009 11:12:53 AM
|
0
|
"alain.saez" <alain.s...@infonie.fr>
|
How to control the visibility of a specific element from my c++ code
Hi,
Does anyone know How can I control the visibility of a specific
element inside a page, from my c++ code? I can read the css visibility
property, but I cannot change it.
Any ideas?
Regards,
yakobom
|
9/16/2009 11:46:22 AM
|
0
|
yakobom <yako...@gmail.com>
|
XULRunner 1.9.0.14 release
Hi guys,.
My application crashes because of bugs in XULRunner 1.9.0.13 (I'm
using GeckoFX to embed in a C# application).
Can someone advise on when the fixed 1.9.0.14 will be available (ftp://
ftp.mozilla.org/pub/xulrunner/releases/)
thanks
|
9/12/2009 7:14:54 PM
|
0
|
Jon <jonathan.ca...@gmail.com>
|
Embedding a firefox extension inside a xulrunner application.
Hello All,
I am working on a web testing tool which would uses xulrunner (and
thus gecko) to run the tests.
It is all very fine; the test is being driven via SWT [1]
The browser (not exactly, Gecko to be precise) launches very nicely
and executes the tests.
I would need some firefox extensions to be loaded at runtime so that
the web application can be debugged. most importantly firebug [2]
So basically the launch proceeds like this
- SWT launches the SWTBrowser [3] component.
- SWTBrowser makes use of xulrunner to start up a gecko instance.
- Firebug is somehow embedded int
|
9/11/2009 11:35:20 AM
|
0
|
Manish Chakravarty <manishch...@gmail.com>
|
Detect when <iframe> is loaded
Hi,
I am new in Mozilla=85 I have a situation: when I call goBack()
function on the web page only <iframe> is reloaded but the whole page
is not reloaded. I need to detect when <iframe> is loaded.
Thanks a lot.
|
9/11/2009 8:42:34 AM
|
0
|
=?UTF-8?B?0JzQuNGF0LDQuNC7INCb0YPQutCw0YjQtdCy0LjRhw==?= <jetpilot....@gmail.com>
|
Zoom image
Hi all
I created own browser with the help of Mozilla API with gecko 1.9.
I am using VC++(MFC).My team have done maximum work on browser.
I am working on context menu functionality where showing image popup menu.
One of them functionality is Zoom in and Zoom Out which is show at right
click on image.
So question is how to handle these functionality thru Mozilla API. And what
class or interface is there to solve this problem
Kindly guide me about these functionality.
Thanks
Abhishek Sahu
|
9/2/2009 1:02:01 PM
|
0
|
"Abhishek Sahu" <as...@astegic.com>
|
How to intercept XMLHttpRequests, including headers and responses?
I am working in a crawler project. My job is to capture asynchronous
requests and responses sent by XMLHttpRequest (XHR). I need to work
out a solution, which receives a URL and automatically intercept Ajax
requests and corresponding responses. This feature is particular
necessary in video hosting website, for considerable information, such
as Comments List and Play Count, are transferred asynchronously. I can
use either IE=92s approach or Firefox (Gecko)=92s approach.
I=92ve tried APP Control in the control csExWB. But data is
insufficient, lacking of POST data and responses body. A
|
9/2/2009 10:05:22 AM
|
0
|
Pang Wangshu <pangwang...@gmail.com>
|
How to attach mouse event listeners to embedded nsIWebBrowser
I've embedded an nsIWebBrowser in my application. Because I'm just
generating HTML for it on the fly, I'm using OpenStream,
AppendToStream, and CloseStream to add content. What I need is to add
event listeners for mouse movement over the web browser as well as
mouse clicks. I've read documentation and tried lots of different
things, but nothing I have tried has worked. For instance, the code
below would seem to do the right thing, but it does nothing:
nsCOMPtr<nsIDOMWindow> domWindow;
mWebBrowser->GetContentDOMWindow(getter_AddRefs(domWindow));
if (!mEventTarget) {
|
8/28/2009 11:01:10 AM
|
2
|
Matthew Talbert <ransom1...@gmail.com>
|
nsITimer : Callback does not get called
I am trying the following:
void loadURITimeOut(nsITimer *aTimer, void* aClosure)
{
printf("loadURITimeOut\n") ;
}
onLoadUri (.....)
{
nsresult rv;
nsCOMPtr<nsITimer> m_timer = do_CreateInstance("@mozilla.org/timer;
1", &rv);
if (!NS_FAILED(rv)) {
rv = m_timer->InitWithFuncCallback(loadURITimeOut, 0, 100,
nsITimer::TYPE_REPEATING_SLACK);
if (NS_FAILED(rv)) {
printf("Error\n");
}
}
}
Everything seems fine. Except that the callback function never gets
called.
Do I need to initialize the timing system in some way or what am I
missing ?
-Martin
|
8/27/2009 11:32:33 PM
|
1
|
mlutken <nit...@lutken.dk>
|
Manipulating the DOM of an SVG document
This code does not display a square: http://pastebin.com/m4ba2d89c
Where am I going wrong?
|
8/24/2009 4:26:23 PM
|
4
|
JeahJeah <emaildun...@gmail.com>
|
Using firefox inplace of XULRUNNER for running XUL application
Hi All,
I am working on a Xul application. It is basically a web application
running inside xul browser in xulrunner(or using it as a browser). The
reason for using Xulrunner is I want my application to run in a
seperate process and better control.
Is it possible to use firefox as XULRUNNER, where I can write a XUL
file to make a browser and run it on the existing firefox (using it as
gecko and javascript engine), then I can run my application in the new
xul browser.
|
8/24/2009 2:16:29 PM
|
4
|
Mayank <call.mayankg...@gmail.com>
|
How to get proxy values in gtkembedmoz based application ?
Hello,
I'm writting a small web browser based on gtkembedmoz in which user
can set the same proxy settings than in firefox ( Direct connection,
automatic config,... ). I can browse with or without proxy, without
any problems.
Now, I need to spawn a process from my browser that uses the
environmental variable http_proxy. Is there a way to get the proxy
value for a given URL ? Especially when using proxy.pac autoconfig
file?
I see a function FindProxyForURL in nsIPluginManager2, but I do not
know if it's the right side to look ?
Best regards
Patrice
|
8/24/2009 9:59:58 AM
|
0
|
Patrice Bouchand <pbfwdl...@gmail.com>
|
Missing libgtkembedmoz.so when upgrading XULRunner!
After an upgrade of XULRunner to 1.9.0.12, my embedded mozilla browser
application gives the following error message when starting:
------------------
error while loading shared libraries: libgtkembedmoz.so: cannot open
shared
object file: No such file or directory
------------------
In XULRunner 1.8, the libgtkembedmoz.so was included, but I can not
find it in the same place in XULRunner 1.9.
What is my problem and how do I solve it?
|
8/24/2009 7:52:11 AM
|
10
|
SimOut <simoutbri...@gmail.com>
|
How to raise events from plugins and receive it in embedding application?
Hi all,
I have embedded gecko 1.8.1 into a MFC application. There are also
some custom XPCOM plugins. The plugins should send events to the
embedding application. Any documentation, samples, hints for code
reading telling me how to do this are welcome.
regards,
Rainer
|
8/21/2009 8:40:11 AM
|
1
|
ra <rappel101...@googlemail.com>
|
Nusphere PhpED 5.8 (mozilla embedded dand l'IDE).Can't load adds-on plugins
Dans IDE php Nusphere PhpED 5.8, Nusphere =E0 inclu =E0 l'int=E9rieur de so=
n
programme la possibilit=E9 de debugger en utilisant l'affichage du
r=E9sultat sur un navigateur Mozilla Firefox interne (Mozilla embedded
in phped).
Peut-on dans ce (Firefox Embedded) charger des adds-on ou des plugins?
Exemple: Je n'arrive pas a t=E9l=E9charger l'adds-on MEDIAWRAP n=E9cessaire
au fonctionnement de QTOBJECT.JS.
QTOBJECT.JS me permet (dans mon application multim=E9dia php) d'afficher
mes fichiers multim=E9dia dans lecteur quick time.
Aucun probl=E8me si j'utilise le navigateur Mozilla Fire
|
8/21/2009 8:20:58 AM
|
0
|
"alain.saez" <alain.s...@infonie.fr>
|
Why can't get the dom node by GetElementsByTagName()
I intend to get the node with flash object by parsing the dom tree.
When I use the dom.GetElementsByTagName() to put all the node of the
dom into a node list, I can find a node with nodeName="OBJECT".
<code>
// get the node list with tag = "object"
nsCOMPtr<nsIDOMNodeList> objNodeList;
PRUint32 length = 0;
res = domDocument->GetElementsByTagName(NS_LITERAL_STRING("*"),
getter_AddRefs(objNodeList));
if (NS_FAILED(res))
return NS_ERROR_FAILURE;
else if (objNodeList){
objNodeList->GetLength(&length);
|
8/18/2009 1:29:04 PM
|
1
|
Havvy <wanghewei1...@gmail.com>
|
Basic New API integration
Hi,
I'm starting to use New API and i have a refresh issue that i need to
address : in my app, a simple page displaying Hello does not show,
while more complicated pages with XML/XSL and javascript does. Yet it
does work in the win32_test demo sample.
Strangely, once a page is displayed, i can load a page that would not
show previously !
While looking through the sources and tweaking both 'win32_test' and
my code, i realized that for every call to LoadURI a new window is
created. (I used spy++)
I thought that it should be the root of my issue: maybe i don't have
the correct wind
|
8/18/2009 10:53:51 AM
|
0
|
ZiFoX <zzi...@gmail.com>
|
How to Get Text Node's Position
We can get every element's nsIBoxObject in a web page by using
getBoxObjectFor(nsIDOMElement element). Text node, however, does not
implement nsIDOMElement interface, so how can we get its position
using Gecko.
Any ideas I will appreciate greatly!
|
8/18/2009 2:37:52 AM
|
0
|
Shane <wen.sh...@gmail.com>
|
New embedding API and Mac OS X
I'm working in a cross platform project, i'm using the new qt embed
api and i see that there's only examples por win32 and linux, does
this new api works in os/x too?
|
8/15/2009 5:37:47 AM
|
0
|
Aristo <aristob...@gmail.com>
|
Mozill closes socket sometimes
My application consists of a simple web server and embedded browser
(using xul-runner sdk)
recently I came across the problem: when a flash clip (.swf) is
loading, for example, mp3 fragment, socket error
WSAECONNRESET (10054) may occur.
after the error flash stops loading and nothing diasplayed.
how could I locate an error and get rid of it?
thanks in advance.
|
8/14/2009 7:57:20 AM
|
0
|
dNafigator <dnafiga...@gmail.com>
|
Embedding xulrunner in WX app cores
Hi all,
I'm trying to get xulrunner embedded into a WX application, but the
application keeps coring. A really stripped down version (error
checking illiminated for readability) of the code looks like:
<includes snipped>
class MyApp: public wxApp {
public:
virtual bool OInit();
int OnExi() {return 1; }
}
IMPLEMENT_APP_NO_MAIN(MyApp)
int main(int argc, char **argv) {
return exEntry(argc, argv);
}
bool MyApp::OnInt() {
myFrame = new wxFrame( NULL, "WxWindow", wxPoint(100, 100), wxSize
(400, 400), wxDEFAULT_FRAME_STYLE);
myFrame->Show(TRUE);
nsCOMPtr<nsIBaseWi
|
8/12/2009 4:12:40 PM
|
1
|
Bryce S <bsjunkdra...@gmail.com>
|
Images lost during 'Print as PDF'
Hello,
I am using Java Embedding APIs of XULRUNNER 1.9 to save a loaded HTML
file to a PDF file (print as PDF). The problem is that few of my
images (random every time) disappears in my PDF. It looks as though
the PDF is generated even before all the images are loaded completely.
I am not sure about the method I am using to check the end of loading
is correct or am I missing anything in <b>all.js</b>? (using
network.http.pipelining=false)
Here is my code:
.....
webNavProxy.loadURI (urlToLoad,
nsIWebNavigation.LOAD_FLAGS_BYPASS_CACHE,
null,
|
8/12/2009 3:20:19 PM
|
0
|
sarv <saravanan.sengama...@gmail.com>
|