Re: get current content document inside Firefox cpp code

DONG XINSHU <[email protected]>
Newsgroups gmane.comp.mozilla.devel.dom
Message-ID <1257988075.23339.11.camel@xdong-t400>
I want to know more about browser internals, so I don't want to stay at
the level of scriptable interfaces. But it seems much harder than
working in JavaScript extensions.

Regards,
Xinshu

On Wed, 2009-11-11 at 11:48 -0500, Boris Zbarsky wrote:
> On 11/11/09 4:19 AM, DONG Xinshu wrote:
> > Thanks, Boris. According to your hint, I found nsDocShell::SetCurrentURI
> > is what I want. But nsDocShell::OnLocationChange is not triggered when
> > document location changes.
> 
> Why are you poking in the C++ code instead of just registering an 
> onLocationChange observer on the browser you want to observe?
> 
> -Boris
> _______________________________________________
> dev-tech-dom mailing list
> [email protected]
> https://lists.mozilla.org/listinfo/dev-tech-dom
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.