How to intercept console.log()?

2013-02-05 Thread g...@novadsp.com
Once again embedding FF18 using XRE/XPCOM and friends. I can now pick up .js errors etc but not any message sent to the console. Is there something that can be applied in native code along the lines of JS_SetErrorreporter? Thanks. ___ dev-embedding

JS_SetErrorReporter?

2013-02-01 Thread g...@novadsp.com
Any thoughts on how to set up a custom JS error reporter when embedding Mozilla via XRE_InitEmbedding2/XPCOM and friends? The problem is getting the JSContext - is there a convenient interface/hook? Thanks. ___ dev-embedding mailing list dev-embeddin

Re: Link problem with gecko 1.9.2

2011-11-18 Thread g...@novadsp.com
check your compiler flags. might be something similar to an issue I had a few months back ... Examining the contents of xpcomglue.lib (using dumpbin /symbols ) I get the following lInker: public: virtual unsigned int __thiscall nsCreateInstanceByContractID::operator()(struct nsID const &,void

Re: Embedding basics

2011-11-07 Thread g...@novadsp.com
Hi Sunil How 'headless' does it need to be? And for which OS? On 07/11/2011 13:37, Sunil Kumar wrote: Is there any documentation for 'offscreen' branch? On Mon, Nov 7, 2011 at 7:05 PM, Sunil Kumar wrote: I wish it was there. I could not find any proper documentation for this. This code is t

Embedded FF R7.01 cursor issue

2011-10-18 Thread g...@novadsp.com
I am debugging nsWindow::SetCursor in order to discover why the links on the home page of google.com cause the cursor to be set to an editor caret 'I' rather than a link 'hand' (IDC_IBEAM instead of IDC_HAND) Can anyone think of a reason why this might be happening? I am certain it is something

nsINavHistoryService

2011-09-03 Thread g...@novadsp.com
Does --disable-places in Mozconfig disable nsINavHistoryService when building? Thx J. ___ dev-embedding mailing list dev-embedding@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-embedding

Windows xpcomglue link errors [solved]

2011-09-03 Thread g...@novadsp.com
Apologies if this gets double-posted Examining the contents of xpcomglue.lib (using dumpbin /symbols ) I get the following lInker: public: virtual unsigned int __thiscall nsCreateInstanceByContractID::operator()(struct nsID const &,void * *)const lib: public: virtual unsigned int __fastcall

enabling omnijar support?

2011-09-03 Thread g...@novadsp.com
I'm using the FF 6.0.1 release source code for embedding with XRE. What do I need to do to enable omnijar support and have everything packaged up correctly? Thx++ ___ dev-embedding mailing list dev-embedding@lists.mozilla.org https://lists.mozilla.o

Re: Winembed link errors?

2011-09-01 Thread g...@novadsp.com
Hi Benjamin On 01/09/2011 15:17, Benjamin Smedberg wrote: On 9/1/2011 6:29 AM, g...@novadsp.com wrote: Those symbols should be in the XPCOM glue. Are you linking it? Yep. My MFC app links with the same build of the library #pragma comment(lib, "U:\\mozilla\\601\\mozilla-release\\_V

Winembed link errors?

2011-09-01 Thread g...@novadsp.com
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 int __thiscall nsCreateInstanceByContractID::o

Embedding: unable to edit text fields/no caret

2011-08-31 Thread g...@novadsp.com
For anyone else banging their head on this particular wall: https://bugzilla.mozilla.org/show_bug.cgi?id=533245#c13 In short the solution is to implement GetVisibility like this: NS_IMETHODIMP WebBrowserChrome::GetVisibility(PRBool * aVisibility) { NS_ENSURE_ARG_POINTER(aVisibility); *a

Embedding Firefox 6.0.1: links not displayed correctly

2011-08-31 Thread g...@novadsp.com
Does the team have any ideas on this? The browser displays pages correctly with the exception of href="..."> which are rendered as normal text. The link works when clicked and UpdateProgress and UpdateStatus on IBrowserFrameGlue all work as expected. What am I not handling? Building as usual

Creating .map files?

2011-04-11 Thread g...@novadsp.com
Building using VS2008. What is the simplest, top most, and build system friendly way to add a /map option to the linker command line? TIA Jerry ___ dev-embedding mailing list dev-embedding@lists

Re: Windows Build for Spider Monkey

2011-04-11 Thread g...@novadsp.com
Hi Nicolas Glad to be of assistance. I've got some special tools for creating VS C++ projects from makefiles etc. Jerry On 08/04/2011 23:14, Nicolas Brown wrote: Thank you very much :D One thing, how did u go about getting the visual studio project? __

Re: Windows Build for Spider Monkey

2011-04-08 Thread g...@novadsp.com
an older version but shows what needs setting up. http://www.novadsp.com/get2.aspx?product=spidermonkey-vs-2008.zip&source=NovaDSP On 08/04/2011 20:32, Nicolas Brown wrote: I have a headache trying to build spidermonkey on Windows all day( I dont remember the last time i've ever been so frustra

Re: The future of binary embedding

2011-04-06 Thread g...@novadsp.com
Some thoughts on this ... > At least this gives those of us who were hoping for a nice embedding story for Gecko a chance for a clean break, so my commendations to the Mozilla team for providing clarity on the issue. 'embedding' covers a vast swathe of territory. It is relatively simple to em

Re: gfxASurface and Win32 friends

2010-11-08 Thread g...@novadsp.com
More on this ... On 08/11/2010 18:15, Benjamin Smedberg wrote: Nowhere do I see you linking against *any* mozilla import libraries. Since you're using -DXPCOM_GLUE, I'd expect to see libxpcomglue.lib in your link line. Without -DXPCOM_GLUE, you'd need to link against xpcomglue_s.lib, xpcom.lib

Re: gfxASurface and Win32 friends

2010-11-08 Thread g...@novadsp.com
Benjamin What are you linking against? If possible, please include your exact compile and link command-line so that I can check your #defines and import libraries. Thanks. Hope this is adequate. Linker errors at end of email Using VS2008 Pro. Compiler command line: cl /Od /I "U:\mozilla\mo

gfxASurface and Win32 friends

2010-11-08 Thread g...@novadsp.com
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(dllimport) public: void * __thiscall gfxAS

Re: nsIDOMCanvasRenderingContext2d embedding in 1.9.2 ?

2010-11-08 Thread g...@novadsp.com
Boris, thanks. On 08/11/2010 16:15, Boris Zbarsky wrote: A 2d rendering context requires either a docshell or a canvas element, but not both, to operate properly. So you must either call SetCanvasElement or InitializeWithSurface. If you do neither, then the 2d context doesn't actually have a

Re: nsIDOMCanvasRenderingContext2d embedding in 1.9.2 ?

2010-11-08 Thread g...@novadsp.com
On 08/11/2010 13:45, Benjamin Smedberg wrote: This really doesn't make any sense. The way to get a canvas rendering context is to create a element and then call .getContext('2d') on it. Otherwise your rendering context isn't actually backed by a drawing buffer. --BDS I may well be mistaken

nsIDOMCanvasRenderingContext2d embedding in 1.9.2 ?

2010-11-08 Thread g...@novadsp.com
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); if (!(NS_SUCCEEDED(rv) && context)) { return 0; }

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 g...@novadsp.com
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 perspective. That's my call. Not yours. The up front build/

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 g...@novadsp.com
On 09/08/2010 15:28, Benjamin Smedberg wrote: Also, to address your first question, please see http://benjamin.smedbergs.us/blog/2005-07-29/the-testing-matrix/ for why we strongly discourage people from trying to make the "smallest possible" version of Mozilla, rather than using the standard t

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 g...@novadsp.com
Jani Not quite sure I get this. Are you suggesting: 1. Exposing the browser as an MFC embeddable HWND style control? 2. combining the contents of /dist into a single DLL, complete with an embedded GRE? On 08/08/2010 18:48, Jani Mäkinen wrote: Hello World. I'm curious, what is the smallest

Re: State of the art for Gecko embedding in Windows?

2010-07-21 Thread g...@novadsp.com
//www.novadsp.com/get2.aspx?product=mozmfc-20062010.zip&source=moz> Jerry. On 21/07/2010 14:55, db wrote: On Jun 28, 8:13 am, "g...@novadsp.com" wrote: Chris I have just about completed a project that embedded the 1.9.2 code within a standard MFC doc/view application. I

Re: Embedding and associated /dist folders

2010-07-13 Thread g...@novadsp.com
Not currently. With the new 'omnijar' work it may become easier, because you can embed all the mozilla resources into a single JAR and use that. Ah. Perfect. Thanks. Is this in the trunk yet? https://bugzilla.mozilla.org/show_bug.cgi?id=556644 I question your motives: the only people who ar

Embedding and associated /dist folders

2010-07-13 Thread g...@novadsp.com
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?) Would creating and registering some custom resource handler do the trick? I would like to reduce the apparent footprint of an embedded installation.

Re: State of the art for Gecko embedding in Windows?

2010-06-28 Thread g...@novadsp.com
Chris I have just about completed a project that embedded the 1.9.2 code within a standard MFC doc/view application. It also supports printing etc. About the only thing that does not work are carets in edit controls (no idea why). I am happy to share this code and VS2008 solution with any one

nsDebugImpl?

2010-04-08 Thread g...@novadsp.com
Is there an established way to provide XUL and friends with a custom nsDebugImpl? Thx++ Jerry ___ dev-embedding mailing list dev-embedding@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-embedding

debug build for xulrunner

2010-04-07 Thread g...@novadsp.com
Building xulrunner from the 1.92 release on Win7 using VS2008 SP1 to test embedding in an MFC app. Everything compiles and links cleanly but I cannot see how the PDB files end up in the dist/bin folder. Am I missing something? Thx++ Jerry Mozconfig is: ac_add_options --enable-application=xu