nsIWebBrowser and GtkMozEmbed

2009-12-07 Thread Glen Gray
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 0x in ?? () #1 0x0807b91f in mozilla_purge_history (embed=0x80d5810 [GtkMozEmbed], full_purge=1)

Re: Getting the CSS rules collection

2009-12-07 Thread Boris Zbarsky
On 12/7/09 9:15 AM, martin wrote: it doesn't pass the 'if (rules)' condition and I wasn't able to find out what's wrong. You're calling this from C++, and presumably without JS on the stack, and therefore end up failing the security check GetCSSRules does. Had you checked the return value