Antonio Ruiz Martínez wrote:
> Christian Biesinger escribió:
>> Could you explain what you mean with "sessions"? Generally browsers 
>> don't have such a concept.
> 
> The same concept as in SSL. The first time you connect to a server you 
> exchange some messages. After the session is established, then the 
> requests are simpler.

Sure, you can do that. Just like the HTTP protocol handler can do 
keep-alive.

>>> In the protocol handler I need to get some information from the 
>>> content of the web page, that is, I need to recover the value of some 
>>> tags and some variables. Is it possible? How?
>> Depending on which web page you mean here, that is hard or easy. Do you 
>> mean the one the user is "coming from", or the one the user is "going to"?
> 
> the one the user is "coming from"...The page where you click to get the 
> new content using your protocol handler.

Good luck. I can't think of a good way to do that. Of course there may 
not be such a page in all cases.

I guess you could get the most-recently-focussed window from the window 
mediator and get its content attribute. But that assumes that that is 
the window/tab that initiated the load...

Or, you could getInterface an nsIDOMWindow from the channel's 
notification callbacks, when you're in asyncOpen. That has a higher 
chance of doing the right thing.



-- 
All the world's a stage,
And all the men and women merely players:
They have their exits and their entrances;
And one man in his time plays many parts, [...]     --W. Shakespeare
_______________________________________________
dev-tech-network mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-network

Reply via email to