Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

gBrowser load event: it is possible to get a document where link has been clicked?

28 views
Skip to first unread message

fedors...@gmail.com

unread,
May 3, 2013, 3:37:47 PM5/3/13
to
Hello everyone!
I am writing a firefox Extension (xul). Processing the loading of document as follows:

this._loadHandler = function(event) {
...
};

gBrowser.addEventListener("load", this._loadHandler, true);

It is necessary to get a reference to document where link to event.target has been clicked. (If event.target document has been opened without using a link, this reference is null).

I tried to use window.opener, but it always returned null.

Is there a way to solve this problem?

subrat...@gmail.com

unread,
Jun 27, 2013, 1:47:01 PM6/27/13
to
0 new messages