Hi ,

The scenario is the following :
1. I create mozilla embedding blank window
2. I create a frame element with "collapsed" attribute set to "true".
3. I load a URL into the hidden frame and expect to be notified when DOM 
creation is completed.

The thing is that since the frame is hidden nsIPresShell object doesn't 
exist inside frame's nsDocument object.
Since nsDocument::DispatchEvent() function assumes the existence of 
nsIPresShell the "DOMContentLoaded" event is not sent.
The nsIPresShell object is needed to get EventStateManager. Are there other 
ways to get the EventStateManager ? This looks like a bug to me.

Please elaborate!

Thanks,
Michael. 


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

Reply via email to