I'm on Firefox 2.0.
 
I ran Firefox -console, and the only message there was from a single dump() 
statement I put in the javascript. I've also opened Tools->Error Console, and 
nothing appears there either when I run my scripts. 
 
Right now, the JS lives in a .js file referenced by an html file, both on my 
local disk. The page is just a button which invokes the js. No security dialog 
appears. (In the future, the code will live in chrome). 

 
________________________________

From: Nickolay Ponomarev [mailto:[EMAIL PROTECTED]
Sent: Mon 12/4/2006 8:06 PM
To: Schmidt, Paul
Cc: [EMAIL PROTECTED]; [email protected]
Subject: Re: XPCOM cpp to js callback



It wasn't clear from your reply, did you look in the *JavaScript* (or
Error, depending on Firefox version) console and confirm there were no
messages there?

As for my privilege question, why does the code in MyComponentTestGo
run? Is it in a script for a chrome:// document? Or is it just a
webpage? Do you have to click through a security dialog before the
code gets to run?

Nickolay

On 12/5/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Ok, I have a console.
>
> The only output there was what I put in a dump() call. No other warning
> or error messages were generated by my attempt at calling back my
> object.
>
> So is this any more useful than alert(), beyond the message having
> persistence?
>
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Boris
> Zbarsky
> Sent: Monday, December 04, 2006 4:11 PM
> To: [email protected]
> Subject: Re: XPCOM cpp to js callback
>
> [EMAIL PROTECTED] wrote:
> > That setup page seems out of date, at least for my FF version 2.0: It
> > mentions browser.dom.window.dump.enabled which is not in my
> > about:config
>
> So?  Only preferences which are actually currently set are in
> about:config.
> That preference is not set by default; when it _is_ set, it has an
> effect.  Just
> set it in about:config.
>
> > dump() seems to be a no-op.
>
> Without setting browser.dom.window.dump.enabled it will be.
>
> -Boris
> _______________________________________________
> dev-tech-xpcom mailing list
> [email protected]
> https://lists.mozilla.org/listinfo/dev-tech-xpcom
> _______________________________________________
> dev-tech-xpcom mailing list
> [email protected]
> https://lists.mozilla.org/listinfo/dev-tech-xpcom
>


_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom

Reply via email to