I'm calling it when I'm getting the domcontentloaded  DOM event.

Something really weird seems to be going on, if I step into the 
GetScriptGlobalObject it steps into nsDocument::GetStyleSheetAt, and returns 
a failure,

however if I look into my dom pointer I can see that nsDocument :: 
mScriptGlobalObject is a valid pointer. However if I put a breakpoint in 
GetScriptGlobalObject it doesn't get called when I call that function from 
my code (but it gets called from other points in the code).

weird, I'd really appreciate any input!!

--Richard

"Boris Zbarsky" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Richard wrote:
>> Yes I do, the pages I'm testing with seem to be displaying and loading 
>> fine.
>
>>>> nsCOMPtr<nsIDocument> dom;
>>>> dom = do_QueryInterface(domdoc, &rv);
>>>> nsCOMPtr<nsIScriptGlobalObject> scriptGlobal = 
>>>> dom->GetScriptGlobalObject();
>>>>  and GetScriptGlobalObject returns NULL
>
> I see.  Are you building against a debug Gecko?  Can you step into the 
> GetScriptGlobalObject() call and see what things look like there?
>
> Also, when are you calling this code, generally speaking?
>
> -Boris 


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

Reply via email to