Re: get current content document inside Firefox cpp code

Boris Zbarsky <[email protected]>
Newsgroups gmane.comp.mozilla.devel.dom
Message-ID <[email protected]>
On 11/9/09 9:10 AM, DONG Xinshu wrote:
> However, if I want to get this info inside Firefox code base
> (nsHttpChannel::Init), what shall I do?

You can't get the document from that code: necko can't depend on content.

> I tried with the following piece of code,

Which you didn't include....

> My purpose is just to get the original URI of a page before it's changed

Meaning what?

-Boris
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.