Re: Issues with chrome.manifest when installed in path having japanese characters

2014-08-14 Thread Benjamin Smedberg
On 8/14/2014 9:58 AM, g...@novadsp.com wrote: I am not sure if your problem is identical to one I recently had to solve. XRE_InitEmbedding2Type on Windows uses ReadDependentCB() and TS_tfopen() internally (implemented in nsXPCOMGlue.cpp. In the 2 helpers, which both take char* parameters, the M

Re: Issues with chrome.manifest when installed in path having japanese characters

2014-08-14 Thread Benjamin Smedberg
On 8/14/2014 9:08 AM, bhargava.animes...@gmail.com wrote: In our code , we are having following snippet : rv = NS_NewNativeLocalFile(nsEmbedCString((char *)filepath), PR_FALSE, getter_AddRefs(libxul)); if (NS_FAILED(rv)) { throw BALBrowserException(); }

Re: Issues with chrome.manifest when installed in path having japanese characters

2014-08-14 Thread Benjamin Smedberg
On 8/14/2014 7:15 AM, bhargava.animes...@gmail.com wrote: I am using gecko SDK 28.0 in my application. When my application is installed in path having japanese/korean characters then in my embedded browser nothing is shown.We found following error in logs Could not read chrome manifest 'file:

Re: firefox 29 libxul.so has less symbols in its dynamic symbol table.

2014-04-15 Thread Benjamin Smedberg
On 4/15/2014 2:16 PM, Tom Hindle wrote: This change means I can no longer use functions like JS_ContextIterator from programs dlopenning or linking libxul.so. On windows I can still use these symbols from xul.dll. Have these symbols been intentionally hidden on Linux, by some mechanism I'm

Re: Registering components under XULRunner 24

2014-02-17 Thread Benjamin Smedberg
On 2/17/2014 11:07 AM, Christian Sell wrote: 3. steal a copy of the missing XPCOMUtils.jsm file and put it into the xulrunner/modules directory This should not be necessary. The correct location for this file is within omni.ja, and it seems to be present in the XR27 release. 3. when building

Re: Registering components under XULRunner 24

2014-02-14 Thread Benjamin Smedberg
On 2/13/2014 1:12 PM, Christian Sell wrote: doesnt work. I am creating the file like this: retval = directory->Get(NS_GRE_DIR, NS_GET_IID(nsILocalFile), (void **)&greDir); file->InitWithFile(greDir); file->AppendRelativePath(NS_LITERAL_STRING("components/components.manifest")); the contents of

Re: Offscreen rendering from C++

2014-02-13 Thread Benjamin Smedberg
On 2/13/2014 12:17 PM, Christian Sell wrote: Now I would like to rewrite this in C++, and am mighty stuck. Why do you want this to be in C++? I strongly recommend writing as much of this as you can in JS. It's going to be a more stable API surface, especially if you're using DOM JS calls. I r

Re: Registering components under XULRunner 24

2014-02-13 Thread Benjamin Smedberg
On 2/13/2014 12:31 PM, Christian Sell wrote: Hello, me again ;). We are embedding XULRunner in our Java application, using a thin integration layer written in C++ that provides extended functionality. We also have a XPCOM component written in Javascript, which we previously called though Java

Re: JavaXPCOM development?

2012-07-12 Thread Benjamin Smedberg
On 7/12/2012 12:11 PM, Blake Binkley wrote: is there anyone who has XulRunner 10+ embedded in java? I have been under the impression that javaXPCOM was no longer being worked on and was a dead project, but in another thread here somone is talking about java and having a new version of XulRunne

Re: Undefined simbols moz_xmalloc (et al.) in Gecko 12

2012-05-21 Thread Benjamin Smedberg
On 5/18/2012 4:20 AM, Babele Dunnit wrote: Hi everybody, I am updating our embedding app from Gecko7 to Gecko12. I get linking errors: In function `operator new(unsigned int)': /dist/include/mozilla/mozalloc.h:229: undefined reference to `moz_xmalloc' In function `operator new[](unsigned int)'

Re: xulrunner 10, je_malloc_usable_size_in_advance

2012-03-13 Thread Benjamin Smedberg
On 3/13/2012 10:09 AM, Adam Dickmeiss wrote: We have an application that has been working well since 1.9 through 9, but in Xulrunner 10 we get a crash , on Linux, 64-bit. #0 0x in ?? () #1 0x7310ca8b in mozilla::storage::(anonymous namespace)::sqliteMemRoundup (n=)

Re: No nsIWebProgressListener callbacks when clicking on a "target=_blank" link?

2012-03-08 Thread Benjamin Smedberg
On 3/5/2012 10:44 AM, Babele Dunnit wrote: the subject says it all. I was expecting at least some activity on a nsIWebProgressListener interface even if I do NOT implement any "new tab/popup/new window" functionality (via nsIWindowCreator), but nothing happens at all. Is implementing nsIWindowCr

Re: The future of binary embedding

2012-03-01 Thread Benjamin Smedberg
On 3/1/2012 9:32 AM, jameson.qu...@gmail.com wrote: It seems that Luke has ended up in Ben's explicit or implicit killfile. This thread is now way off-topic. It was originally an announcement about how we're removing *binary-stable* embedding APIs, and it has morphed into a discussion about the

Re: The future of binary embedding

2012-02-27 Thread Benjamin Smedberg
On 2/25/2012 7:05 AM, luke.leigh...@gmail.com wrote: the first question is this: how the heck is it possible that i could create, in under 3 weeks, an entire port of pyjamas-desktop to use the MSHTML IE engine, *without* requiring access to the proprietary MSHTML Trident Engine? The browser eng

Re: The future of binary embedding

2012-02-27 Thread Benjamin Smedberg
On 2/25/2012 3:53 AM, luke.leigh...@gmail.com wrote: We never solved it fully, and each embedder has had to spend lots of time tweaking things. perhaps it might be worthwhile for the mozilla foundation to find - and fund - the people who _do_ understand these things, rather than tota

Re: Crash in Calling XRE_InitEmbedding( ) after shutdown ( XRE_TermEmbedding)

2012-01-31 Thread Benjamin Smedberg
On 1/31/2012 12:44 AM, SHASHANKA DASARI wrote: Dear all, We have ported gecko in our application on an RTOS. It works fine. We cannot end the application explicitly. So we shutdown gecko using XRE_TermEmbedding(). To reinit we call XRE_InitEmbedding( ) again. This crashes. Is there any other wa

Re: Question & Doubts regarding the embedding of Gecko

2012-01-09 Thread Benjamin Smedberg
On 1/9/2012 12:25 PM, Leander Bessa wrote: Thanks for the reply, i stil have some questions though: 1) Are XPCOM componentes accessible through javascript? Yes. See https://developer.mozilla.org/en/XPConnect for details. 2) Do any new JS modules or XPCOM components need to be integrated at bu

Re: Question & Doubts regarding the embedding of Gecko

2012-01-09 Thread Benjamin Smedberg
On 1/9/2012 6:34 AM, Leander Bessa wrote: I'm trying to build an application which'll use html5 and css3 to display its interface and a set of C++ apis to introduce features beyond the scope of html. It sounds like you really want XULRunner, not "embedding" in the traditional sense. You can wri

Re: Show stopper issue for our GECKO 1.9.2 embedding project and we have expensive business impact

2011-12-22 Thread Benjamin Smedberg
On 12/22/2011 10:45 AM, lord_nemesis wrote: Hello Benjamin (I am putting the name directly as I got help through him and now having issue in that area), This issue is putting us in most discomfort situation in business line... Please take time and help us out from here Problem: We hav

Re: nsString

2011-11-29 Thread Benjamin Smedberg
On 11/28/2011 5:36 AM, philippe wrote: Hello. I built a browser with gecko 1.8 . It worked fine. Now I try to use gecko 1.9.2.23. I get some conversions problems For example: __ nsString attributeName char* attrName=ToNewCString(attributeName); causes an error : cannot convert pa

Re: Embedding basics

2011-11-07 Thread Benjamin Smedberg
On 11/4/2011 1:25 AM, Sunil Kumar wrote: I dont want to use Any GUI windows( gtk_window/Window), so I wont have the Handle/Pointer to a real window. How can I call BaseWindow.initWindow without having a Handle or Pointer to real window? Currently you cannot, a window is required. For a while Ch

Re: How to build JavaXPCOM/XULRunner7.0.x

2011-11-03 Thread Benjamin Smedberg
On 11/3/2011 1:55 AM, Sunil Kumar wrote: I am trying to build JavaXPCOM from XULRunner7.0.1-source. JavaXPCOM has been removed from the main Mozilla tree because nobody was maintaining the code. If somebody would like to take the code and make it a standalone project, that is possible and I'd b

Re: Embedding basics

2011-11-03 Thread Benjamin Smedberg
On 11/3/2011 9:12 AM, Sunil Kumar wrote: I need to know what all I need to do and in Which order to load a URL in nsWebBrowser instance. It looks like you have not initialize the webbrowser. As far as I know, you cannot use a webbrowser until you've set it up (using nsIBaseWindow.initWindow and

Re: nsIXULAppInfo failing?

2011-09-06 Thread Benjamin Smedberg
On 9/6/2011 9:03 AM, Babele Dunnit wrote: hi there, is there any reason for which a line like nsCOMPtr appInfo = do_GetService("@mozilla.org/xre/app- info;1"); should fail giving back a null ptr? everything works, GRE is correctly loaded etc. BTW: nsCOMPtr runtime(do_GetService("@mozilla

Re: Windows xpcomglue link errors [solved]

2011-09-04 Thread Benjamin Smedberg
On 9/3/2011 11:07 AM, g...@novadsp.com wrote: Apologies if this gets double-posted Why is this defined only when XP_WIN is defined? A bug? Because __fastcall is a Windows-specific annotation. GCC uses a different syntax on x86-Linux. The problem here appears to be that you aren't including xp

Re: How to do embedding now

2011-09-01 Thread Benjamin Smedberg
On 9/1/2011 8:24 AM, Glen Gray wrote: Hey Guys, Now that GtkMozEmbed etc. are gone, is there a documented and supported way to build Gecko based browsers ? If so, what's the url for the docs. Not "supported", no. But XRE_InitEmbedding still works and along with nsWebBrowser can be used to load

Re: Winembed link errors?

2011-09-01 Thread Benjamin Smedberg
On 9/1/2011 6:29 AM, g...@novadsp.com wrote: Attempting to build WinEmbed from a VS2008 project and clearly missing something. Compiler #defines and settings are as make command line, which builds correctly. Does anyone recognize the following? WebBrowserChrome.obj : "public: virtual unsigned i

Re: Mozilla vs xulrunner

2011-07-01 Thread Benjamin Smedberg
On 7/1/2011 8:11 AM, arnuld wrote: I was reading about DOM specification and came to know that Mozilla supports DOM. I read MDN docs and see much of the documentation is outdated If I want to use just only DOM to call some methods (e.g. getElementsByTagName) through C++ interface (means XPCOM

Re: Managing multiple nsIWebBrowser instances

2011-05-25 Thread Benjamin Smedberg
On 5/25/2011 2:12 PM, Messica, Shay wrote: A more problematic case, is when one browser invokes a Javascript function that causes some RPC invoke on the second process. If the native application process needs to open event loop or run some long operation, we have to pump events while waiting for

Re: Sessions in embedded Gecko

2011-05-25 Thread Benjamin Smedberg
On 5/25/2011 2:30 AM, Darth Coder wrote: I understand that even in Firefox, the windows launched from the same instance share the session data, but is there any way to get around our issue? Basically we want the browser instance in child client window to open the links in its own session without

Re: Firefox5: Does WinEmbed still exist?

2011-05-17 Thread Benjamin Smedberg
On 5/16/2011 11:32 PM, Joffrey wrote: Mozilla announced the end of Gecko embedding. No I didn't. I announced that JavaXPCOM, gtkmozembed, and the ActiveX control are not being maintained by the Mozilla project and would be removed from the main tree. Would this terminate embedding gecko in Win

Re: Replacements for GtkMozEmbed

2011-04-20 Thread Benjamin Smedberg
On 4/20/2011 11:16 AM, Glen Gray wrote: Hey guys, So, further to the discussions about dropping the embedding technologies, I'm interested in learning about what I can do to replace using GtkMozEmbed. Somebody mentioned creating a xulrunner application. I don't really know anything about that

Re: The future of binary embedding

2011-04-07 Thread Benjamin Smedberg
On 4/7/11 3:42 PM, sdenning wrote: 4) Even if we do not use gtkmozembed directly, are there other components that will be affected? Specifically, will there be an impact to programs like the wxEmbed test driver: mozilla/embedding/tests/wxEmbed/ I don't think that code is built, and will like

Re: The future of binary embedding

2011-04-07 Thread Benjamin Smedberg
On 4/7/11 9:29 AM, sdenn...@rocketmail.com wrote: Benjamin, 1) I'm unclear of the impacts of removing gtkmozembed. Can you please clarify which APIs and functionality will be impacted? For example, will XRE_InitEmbedding go away with these near-term changes? gtkmozembed is the code in embedd

Re: The future of binary embedding

2011-04-07 Thread Benjamin Smedberg
On 4/7/11 9:41 AM, CMB wrote: Would this terminate embedding gecko in IDE's (ex eclipse), TopStyle ecc.? Eclipse uses javaxpcom to do embedding. If somebody wishes to maintain that code, they may continue to do so, but it will not be built into XULRunner or available in the main mozilla codebas

Re: how to get a distributable XulRunner for buildin/running embedding application

2011-03-30 Thread Benjamin Smedberg
On 3/30/2011 8:52 AM, Martin Lutken wrote: Simple question. If I follow build instructions found here https://developer.mozilla.org/en/Configuring_Build_Options enabling "xulrunner" as application. (Building on Ubuntu 10.10 ) I use a MOZ_OBJDIR and everything compiles fine. My problem is how

The future of binary embedding

2011-03-28 Thread Benjamin Smedberg
Last summer, I led a session at the Mozilla summit to discuss whether and how we ought to continue supporting our various embedding efforts (gtkmozembed, javaxpcom, the ActiveX control, the NSView embedding widget, etc) given the effort involved in preserving their various degrees of code and b

Re: Issues with linking Mozilla release binaries to an application debug target

2011-03-08 Thread Benjamin Smedberg
On 3/8/2011 7:57 AM, Darth Coder wrote: I am trying to embed Mozilla 1.9.2.12 into an MFC application. With the release target everything is working fine, but the thing is that I want to use the release binaries (with debugging info) for the both the debug as well. For debug I am building the rel

Re: Embedding Gecko/XULRunner

2011-02-17 Thread Benjamin Smedberg
On 2/16/2011 11:28 PM, Peter Tsonev wrote: My understanding of the embedding process (one of the possible ways) is that 1) GRE is found, 2) XPCOMGlue is started up, 3) XUL functions are initialized, 4) XRE_InitEmbedding is called. Yes. Note that I strongly recommend that you never try to use a "

Re: Embedding Gecko/XULRunner

2011-02-14 Thread Benjamin Smedberg
On 2/14/2011 3:05 PM, Peter wrote: However, the documentation on embedding is a bit fuzzy and all over the place. I am not even completely sure with the terminology as it keeps changing and is mixed up in the docs. This is because there is little or no embedding community. The Mozilla community

Re: gfxASurface and Win32 friends

2010-11-08 Thread Benjamin Smedberg
On 11/8/10 1:04 PM, g...@novadsp.com wrote: Compiler command line: cl /Od /I "U:\mozilla\mozilla-1.9.2\_VS2008\xul-debug\dist\include" /D "WIN32" /D "_WINDOWS" /D "_DEBUG" /D "XP_WIN" /D "XPCOM_GLUE" /D "_AFXDLL" /D "_MBCS" /FD /EHsc /MDd /Zc:wchar_t- /Yu"stdafx.h" /Fp"Debug\MozMFC.pch" /Fo"Deb

Re: gfxASurface and Win32 friends

2010-11-08 Thread Benjamin Smedberg
On 11/8/10 12:10 PM, g...@novadsp.com wrote: Is there some mozconfig option which stops these classes being included in libraries? The .obj files are definitely in ..\build\gfx\thebes\src but I'm getting linker errors (edited example below) : error LNK2019: unresolved external symbol "__declspec

Re: Old question, Embed javascript extension

2010-11-08 Thread Benjamin Smedberg
On 11/6/10 8:52 AM, Xijing Dai wrote: I have a questions about javascript extension after you embeding the xulrunner. so far, i found that if you want to write a extension to the javascript, u have to create a component, isn't it? Could you perhaps be more specific? By "extension to the javas

Re: nsIDOMCanvasRenderingContext2d embedding in 1.9.2 ?

2010-11-08 Thread Benjamin Smedberg
On 11/8/10 8:40 AM, g...@novadsp.com wrote: I'm extending my MozMFC example to handle rendering into a Win32 bitmap. I start with the following ... nsCOMPtr context; context = do_CreateInstance("@mozilla.org/content/canvas-rendering-context;1?id=2d", &rv); This really doesn't make any sense. T

API Compatibility in Mozilla 2+

2010-08-09 Thread Benjamin Smedberg
This is a followup to presentations which occurred in the development meeting in June, as well as presentations at the Mozilla summit. Please direct questions and followup to the mozilla.dev.platform group. In order to improve performance and maintain the Mozilla codebase, we have decided that

Re: Programmer Challenge: Worlds Smallest Gecko Browser DLL for C++ programmers to use in their apps? (programmatically controlled, ultra minimalistic-->ultra fast)

2010-08-09 Thread Benjamin Smedberg
On 8/9/10 12:00 PM, g...@novadsp.com wrote: On 09/08/2010 16:31, Benjamin Smedberg wrote: In any case, you'd be signing yourself/your company up for lots of additional testing work for a goal which isn't shared by the Mozilla community. That makes little sense from an economic p

Re: Programmer Challenge: Worlds Smallest Gecko Browser DLL for C++ programmers to use in their apps? (programmatically controlled, ultra minimalistic-->ultra fast)

2010-08-09 Thread Benjamin Smedberg
On 8/9/10 12:00 PM, g...@novadsp.com wrote: My notion is that the standard make-driven build process generates a VS project file. Thus no additional dependencies or maintenance required. In a corporate context I'd expect one dev/make monkey to generate said VSP for use by relevant team members.

Re: Programmer Challenge: Worlds Smallest Gecko Browser DLL for C++ programmers to use in their apps? (programmatically controlled, ultra minimalistic-->ultra fast)

2010-08-09 Thread Benjamin Smedberg
On 8/9/10 11:12 AM, g...@novadsp.com wrote: Whilst the default build settings for Firefox may perfectly suit the needs of the Firefox team, they do not neccessarily fit well with embedding hosts. Shared runtime libraries being a case in point. Surely non-standard builds can be tested in exactly

Re: Programmer Challenge: Worlds Smallest Gecko Browser DLL for C++ programmers to use in their apps? (programmatically controlled, ultra minimalistic-->ultra fast)

2010-08-09 Thread Benjamin Smedberg
On 8/8/10 1:48 PM, Jani Mäkinen wrote: I'm curious, what is the smallest size you guys have gotten the gecko browser fitted into? Why does this matter to you? I'm working on a project right now where I need(and I believe many others will need aswell) a programmatically controlled browser DLL

Re: How to Download Gecko ActiveX control?

2010-08-04 Thread Benjamin Smedberg
On 8/4/10 1:26 AM, Sarah Weinberger wrote: I searched the Mozilla developer website and I see a lot of mention of the Gecko ActiveX (COM) engine and how easy it is to use, but what I cannot find is how to get it. Is the ActiveX control posted somewhere? I don't think so, I think you have to b

Re: Firefox Python bindings

2010-07-20 Thread Benjamin Smedberg
On 7/20/10 11:13 AM, sultan wrote: Hello, Is there anyway to use Firefox or Gecko core from within python e.g. import Firefox or import Gecko? So far for now I am using QtWebKit. There is a project called PyXPCOM, but it is primarily focused on using python within XULRunner applications, rathe

Re: Embedding and associated /dist folders

2010-07-13 Thread Benjamin Smedberg
On 7/13/10 9:29 AM, g...@novadsp.com wrote: Is there a mechanism to allow the file resources in /dist/chrome and /dist/components etc to be packed into a shared library (DLL on Windows?) Not currently. With the new 'omnijar' work it may become easier, because you can embed all the mozilla reso

Re: Downloading and data mapping from zip-archive

2010-07-09 Thread Benjamin Smedberg
On 7/9/10 6:28 AM, Cyril wrote: Please help me to find a solution of the following problem: there is some zip-archive which contains html, css, js etc. I need a browser calls to my code and then the code takes the data from zip-archive. Is it possible to realize it without the new protocol of OS

Re: Plugin crash protection and GtkMozEmbed

2010-06-28 Thread Benjamin Smedberg
On 6/28/10 10:04 AM, Glen Gray wrote: So to be clear, I can enable this for all plugins via dom.ipc.plugins.enabled. true OR, I can enable it for all plugins via dom.ipc.plugins.enabled true Is that correct ? Yes. --BDS ___ dev-embedding mailing

Re: Plugin crash protection and GtkMozEmbed

2010-06-28 Thread Benjamin Smedberg
On 6/28/10 8:23 AM, Glen Gray wrote: Hey Guys, I'm wondering if GtkMozEmbed based applications will take advantage of the plugin crash protection offered under the release of FireFox 3.6.4/ xulrunner 1.9.2.4 ? Are there are recommended ways of testing this crash protection ? -- Glen Gray The

Re: Problems with embedding initialization under Linux - begging for a clue

2010-06-21 Thread Benjamin Smedberg
On 6/16/10 11:29 AM, Babele Dunnit wrote: But, when I link "xul" (and I need that for our REAL app), "dl" seems no loger needed, "mozjs" is needed to resolve stuff like (...)/ You cannot link "xul" and use standalone linkage. What symbols do you need from xul? The point of standalone linkag

Re: Where's "ToNewUnicode"?

2010-06-11 Thread Benjamin Smedberg
On 6/11/10 4:51 AM, Ami Ganguli wrote: Now I've run into "ToNewUnicode", which seems to be defined in-ine in one of the headers. I'm not sure why the linker is looking for it if it's in-line, but obviously it doesn't end up being in any of the libraries. You haven't got a lot of details what

Mozilla ActiveX control disabled

2010-06-08 Thread Benjamin Smedberg
I have disabled building the Mozilla ActiveX control in every configuration (it was being built only in XULRunner builds), because there is no active maintainer. I intend to remove the code from the tree fairly soon. If you would like to volunteer to resurrect and maintain the ActiveX control,

NS_InitEmbedding is gone

2010-06-08 Thread Benjamin Smedberg
The NS_InitEmbedding API, which was replaced by XRE_InitEmbedding several years ago, has finally been removed from the tree and will not be available in the next release. If you are still using this API, please switch to XRE_InitEmbedding (or use NS_InitXPCOM2 directly). This happened in bug 5

Re: Question about gtkmozembed_glue.cpp

2010-04-20 Thread Benjamin Smedberg
On 4/19/10 5:24 PM, n179911 wrote: If browser/gtk/tests uses browser/gtk/src by linking to libxul.so (since you mentioned it is built to a static library as a part of libxul.so), I don't understand why this does not link: The tests use standalone linkage. They do not link directly to libxul.so

Re: Question about gtkmozembed_glue.cpp

2010-04-19 Thread Benjamin Smedberg
On 4/19/10 4:20 PM, n179911 wrote: Thanks. I think I have questions about the embedding browser build system. Are these 2 directories compiled in 1 static library? or 2? From the Makefile.in, it looks like they are the same 'module'. embedding/browser/gtk/tests/ embedding/browser/gtk/src/ No.

Re: Question about gtkmozembed_glue.cpp

2010-04-19 Thread Benjamin Smedberg
On 4/18/10 4:25 PM, n179911 wrote: In 'gtkmozembed_glue.cpp', it has this comment '// This file is an implementation file, meant to be #included in a // single C++ file of an embedding application. It is called after // XPCOMGlueStartup to glue the gtkmozembed functions.' My question is why it

Re: SpiderMonkey & ctypes

2010-04-17 Thread Benjamin Smedberg
On 4/17/10 1:33 PM, Michael I wrote: You're in luck. ctypes was just recently moved into Spidermonkey (js/src), in bug 538324. There is now a function JS_InitCTypesClass which is available if you configure spidermonkey --enable-ctypes. Of course this is only available on bleeding-edge spidermon

Re: SpiderMonkey & ctypes

2010-04-17 Thread Benjamin Smedberg
On 4/17/10 9:41 AM, Michael I wrote: https://wiki.mozilla.org/JSctypes https://developer.mozilla.org/en/JavaScript_code_modules/ctypes.jsm is it possible to use this functionallity without component jsm, directlly only with spidermonkey ? How to include this and compile ? You're in luck. ctyp

Re: XPCOM and Firefox's thread model

2010-04-14 Thread Benjamin Smedberg
On 4/14/10 10:04 AM, Georgios Petasis wrote: I have written some C++ code, which interfaces Mozilla with Tcl/Tk. Tcl/Tk is the owner of the "main" thread, and runs a message loop on it. My code somewhat works: I can start Mozilla, load a few pages (~10), and then everything locks. :-) I still h

Re: XPCOM and Firefox's thread model

2010-04-14 Thread Benjamin Smedberg
On 4/14/10 9:31 AM, Georgios Petasis wrote: Does Mozilla assumes that has the control of the main thread? (And wants to run a message loop on it?) Mozilla assumes that there is a message loop on the main thread, yes. There are slight differences between whether we spin our own event loop (usi

Re: XPCOM and Firefox's thread model

2010-04-14 Thread Benjamin Smedberg
On 4/14/10 4:01 AM, flt...@yahoo.com wrote: For example (again, this is not what I am trying to do, but just an example to illustrate) if I want to periodically clean all the cache in the background, withou user interaction, I would say create a thread that calls nsICacheService's method to do

Re: XPCOM and Firefox's thread model

2010-04-13 Thread Benjamin Smedberg
On 4/13/10 1:44 PM, hap497 wrote: Is main thread same as 'UI' thread? Yes. For example, if I click a button to submit a form. These will happen: 1. build a query string 2. send the HTTP Post/Get This step may occur on multiple threads. Our network engine internally uses threading so that

Re: XPCOM and Firefox's thread model

2010-04-12 Thread Benjamin Smedberg
On 4/12/10 3:49 AM, flt...@yahoo.com wrote: My question is, how would I ensure my calls are thread safe? Does XPCOM guarantee that I can call the XPCOM interface functions from any thread and internally Firefox will ensure the thread safety? No. Most Mozilla interfaces are *not* thread safe, a

Re: Linking error in mac

2010-02-15 Thread Benjamin Smedberg
On 2/15/10 9:54 AM, testols ols wrote: The code compiles successfully but gives following errors during linking. Undefined symbols: "vtable for nsSupportsWeakReference", referenced from: __d...@0 in WebBrowserChrome.o "_N

Re: Fix for NS_InitEmbedding documentation

2010-02-04 Thread Benjamin Smedberg
On 2/3/10 4:04 PM, Timothy Madden wrote: Follow up to mozilla.dev.embedding please. On this mozilla.org page http://www.mozilla.org/projects/embedding/embedapiref/embedapi2.html#1099700 about Embedding Initialization I think the documentation for NS_InitEmbedding should say the first paramet

Re: AddWebBrowserListener fails (NS_ERROR_INVALID_POINTER)

2009-12-02 Thread Benjamin Smedberg
On 12/2/09 7:01 AM, Blaine Monkey wrote: 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)] Indeed, we removed NS_STATIC_CAST and recommend that people just use static_cast() directly.

Re: XRE_InitEmbedding Fails.

2009-11-25 Thread Benjamin Smedberg
On 11/25/09 4:32 AM, Blaine Monkey wrote: > executables, I think this is the correct way, in't it? I saw the code > of other examples and is the same. I don't know what can be the > problem. Any idea? No, you'll need to actually debug the problem. --BDS __

Re: XRE_InitEmbedding Fails.

2009-11-24 Thread Benjamin Smedberg
On 11/24/09 9:41 AM, Blaine Monkey wrote: > 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? The code doesn't look bad offhand. I was

Re: crash by embedding xulrunner 1.9.1.5/firefox 3.5.5

2009-11-10 Thread Benjamin Smedberg
On 11/10/09 8:36 AM, Viktor Tymoshenko wrote: > 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/xp

Re: Help: Newbie needs some TLC Please

2009-10-26 Thread Benjamin Smedberg
On 10/26/09 4:49 AM, graniteglory wrote: > 3. I can not find MFCEmbed anywhere including "mozilla-1.9.1/embedding/ > tests" MFCEmbed was very old, unmaintained and broken code and has been removed. > 4. Other tests (winEmbed, wxEmbed) do not compile correctly or VC++ > project does not convert o

Re: Missing libgtkembedmoz.so when upgrading XULRunner!

2009-08-25 Thread Benjamin Smedberg
On 8/25/09 7:45 AM, SimOut wrote: > Maybe I have specified the incorrect GREVersionRange? Does my current > range include 1.9.0.12: > {"1.9a", PR_TRUE, "2", PR_TRUE } ? That looks ok, although I would probably do {"1.9", PR_TRUE, "1.9.0.*", PR_TRUE. What XULRunner is it actually finding? You can

Re: Missing libgtkembedmoz.so when upgrading XULRunner!

2009-08-25 Thread Benjamin Smedberg
On 8/25/09 6:28 AM, SimOut wrote: > When trying to start the application, I get this error: > -- > error while loading shared libraries: libgtkembedmoz.so: cannot open > shared > object file: No such file or directory > -- > > The source code worked in previous rel

Re: Missing libgtkembedmoz.so when upgrading XULRunner!

2009-08-25 Thread Benjamin Smedberg
On 8/25/09 4:53 AM, tonikitoo (Antonio Gomes) wrote: > I believe you should link against libxul (?) If you are using the standalone glue (which it appears SimOut is using correctly), you should not link against libxul. --BDS ___ dev-embedding mailing

Re: Missing libgtkembedmoz.so when upgrading XULRunner!

2009-08-25 Thread Benjamin Smedberg
On 8/25/09 1:47 AM, SimOut wrote: > -- > static const GREVersionRange greVersion = {"1.9a", PR_TRUE, "2", > PR_TRUE }; > GRE_GetGREPathWithProperties(&greVersion, 1, nsnull, 0, xpcomPath, > sizeof(xpcomPath)); > XPCOMGlueStartup(xpcomPath); > GTKEm

Re: Using firefox inplace of XULRUNNER for running XUL application

2009-08-24 Thread Benjamin Smedberg
On 8/24/09 7:16 AM, Mayank wrote: > 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. Yes, you can use firefox -app to

Re: Memory leaks when embedding and using JavaXPCOM

2009-07-01 Thread Benjamin Smedberg
On 7/1/09 5:47 AM, David Pérez wrote: > We’ve made a simple XULRunner app, coded in Java. > We’ve observed that it has huge memory leaks. > Rewriting the same app in Javascript, we observe no leaks. That's certainly possible. JavaXPCOM doesn't have an owner and I may consider removing it in the n

Re: XPCOMGlueStartup failure in release version

2009-03-04 Thread Benjamin Smedberg
On 3/3/09 5:18 PM, Igor Ulyanov wrote: > The problem is in LoadLibraryEx with xul.dll and later xpcom.dll > FormatMessage in cpp file nsgluelinkinwin.cpp wprintf with GetLastError > prints garbage in console (something like ). If i add any code This is probably a problem with DLL dependen

Re: XPCOMGlueStartup failure in release version

2009-03-02 Thread Benjamin Smedberg
On 3/2/09 3:09 PM, Igor Ulyanov wrote: > В Пнд, 02/03/2009 в 15:00 -0500, Benjamin Smedberg пишет: >> On 3/2/09 2:44 PM, Igor Ulyanov wrote: >>>> On 3/2/09 12:37 PM, Igor Ulyanov wrote: >>>>> Who can help with such problem? Debug version of my embedded program &

Re: XPCOMGlueStartup failure in release version

2009-03-02 Thread Benjamin Smedberg
On 3/2/09 2:44 PM, Igor Ulyanov wrote: >> On 3/2/09 12:37 PM, Igor Ulyanov wrote: >>> Who can help with such problem? Debug version of my embedded program >>> works fine, but release version failes at XPCOMGlueStartup. I have >>> changed some mozilla interfaces but not sure it is the reason. >> Hav

Re: XPCOMGlueStartup failure in release version

2009-03-02 Thread Benjamin Smedberg
On 3/2/09 12:37 PM, Igor Ulyanov wrote: > Who can help with such problem? Debug version of my embedded program > works fine, but release version failes at XPCOMGlueStartup. I have > changed some mozilla interfaces but not sure it is the reason. Have you stepped through to figure out what exactly i

Re: embedding build in firefox-3.* / xulrunner-1.9?

2009-02-05 Thread Benjamin Smedberg
On 2/5/09 7:17 AM, Anna Nachesa wrote: > Hi, > > I have tried to create the "embedding build": i.e. after a successful build, > I do the following: > cd /embedding > make > cd /embedding/config > make Don't do this. It may have been the right thing to do some time long ago in the past. Now XULRun

Re: source server bug

2009-01-28 Thread Benjamin Smedberg
On 1/28/09 7:27 AM, Walter Fettich wrote: > I'd like to draw attention on a bug I found when using the source server. > > When trying to debug the function nsIWebBrowser::GetContentDOMWindow () the > source server tries to execute the following command: > > cvs.exe -d :pserver:anonym...@cvs-mirr

Re: GRE binary extension

2009-01-15 Thread Benjamin Smedberg
On 1/15/09 7:10 AM, Dmitry V. Zhulanov wrote: > Hello, Developers! > > I try to implement custom protocol handler. I follow [1] to create VC > project, and use chrome protocol handler as base. > > If I install my handler to firefox its all ok. But If I install it to GRE > nothing happened. I try

Re: need smaller xul.dll

2008-11-15 Thread Benjamin Smedberg
Dmitry V. Zhulanov wrote: > I'd like to reduce download size. And I don't need XUL. I want > to get html only render, without extensions like address bar or > any other XUL widgets. So I want to remove as many as possible. I don't think you will achieve much smaller download size and your embeddin

Re: need smaller xul.dll

2008-11-14 Thread Benjamin Smedberg
Dmitry Zhulanov wrote: > Hi! > > I interesting in embedding gecko htrml rendering to my own application > (which is derived from winEmbed). Gecko may be best renderer, but the > size of it too big. > > xul.dll about 10Mb. It is exist any group which is amed to reduce GRE > size? Can you be speci

Re: Use gtkembedmoz avoiding load-time dependency on xpcom ?

2008-10-20 Thread Benjamin Smedberg
[EMAIL PROTECTED] wrote: > When I use embedding glue, a small local html file comes up in 22s, 7 > seconds is spent in XPCOMGlueStartup. > When I use Dependent glue, the same local html file comes up in 15s > seconds. I do not call XPCOMGlueStartup. Now you need to profile the 7 seconds in XPCOMG

Re: Use gtkembedmoz avoiding load-time dependency on xpcom ?

2008-10-09 Thread Benjamin Smedberg
[EMAIL PROTECTED] wrote: >> Can you be specific about where the time is being spent? Loading libraries >> can be expensive no matter what. Is it possible that the delay is just more >> noticable to you because rather than taking the hit at startup (the dynamic >> loader links the libraries before c

Re: Use gtkembedmoz avoiding load-time dependency on xpcom ?

2008-10-09 Thread Benjamin Smedberg
[EMAIL PROTECTED] wrote: > Hello, > > I have a written a small web browser based on gtkembedmoz that was > working fine with firefox-2. Then I have switched to firefox-3 and I > have noticed that i have to use GRE_GetGREPathWithProperties, > XPCOMGlueStartup and GTKEmbedGlueStartup to make it usab

Re: Link Errors with Firefox 3

2008-08-09 Thread Benjamin Smedberg
John Cebasek wrote: > We have a plugin and associated dylibs on Mac OS X that works with > Firefox 2, which now must be brought up Firefox 3. I've got the code > compiling, but I'm having a weird link error. Well, it's not that weird, > it's not finding a bunch of symbols. But where did they go

Re: Embedding App Link Error

2008-07-23 Thread Benjamin Smedberg
steve lu wrote: > Hi, > > I am linking my embedding app against the FIREFOX_3_0_1_RELEASE and > MOZ_CO_PROJECT=xulrunner code base > and following libs. > > nspr4.lib > plc4.lib > plds4.lib > xul.lib > xpcomglue.lib > profdirserviceprovidersa_s.lib > jpeg3250.lib > > And with XPCOM_GLUE=1 defin

Re: Does 1.9 sources support nsIProfile, or am I missing something?

2008-06-06 Thread Benjamin Smedberg
Alexey 'Spry' Pelykh wrote: > 2a) savePrefFile(nsIFile aFile); to save, needs to be called manually? > 2b) readUserPrefs(nsIFile aFile); to load, also needs to be called No, you should not need to do anything with the pref files. When the prefservice is created it will do all the correct things.

Re: Does 1.9 sources support nsIProfile, or am I missing something?

2008-06-06 Thread Benjamin Smedberg
Alexey 'Spry' Pelykh wrote: > 1) So, now the load of my cookies cache, preferences etc. is made > somewhere inside > nsr = nsProfileDirProvider->SetProfileDir(nsLocalAppDataDir); > ? Not exactly. SetProfileDir just sets up a "directory service provider". Then other code can at any time ask "what

Re: Does 1.9 sources support nsIProfile, or am I missing something?

2008-06-06 Thread Benjamin Smedberg
Alexey 'Spry' Pelykh wrote: > The subject is that I want to use some kind of dynamic profile > switching, and as far as I understand nsIProfile was used to do that. > But the posts I've read are dated back to 2006, and now it seems to be > or deprecated or completely out of date. 'Creation' of nsIP

Re: FF3 is there any sample extension out there?

2008-06-01 Thread Benjamin Smedberg
pedro wrote: > Also, very little extensions are available for FF3 at the moment. Most of the major extensions on addons.mozilla.org have been updated to work with FF3 beta 5, which is roughly the same as FF3. --BDS ___ dev-embedding mailing list dev-e

  1   2   >