On Sat, Feb 18, 2012 at 12:10:13PM -0500, Rodrigo Amestica wrote:
> Hi,
> 
> from conkerorwiki I know that to duplicate a buffer I should use
> follow-new-buffer. But the duplicated buffer does not duplicates
> history and, therefore, I cannot navigate back in it. Is there a way
> for doing so?
> 
> thanks,
>  Rodrigo

Yes, it can be done.  You get the sessionHistory object to be copied like
this:

    buffer.web_navigation.sessionHistory;

Iterate it with its SHistoryEnumerator to collect the urls in the history,
then make a new buffer and call the buffer's 'load' method for each url.

https://developer.mozilla.org/en/XPCOM_Interface_Reference/nsISHistory

-- 
John Foerch
_______________________________________________
Conkeror mailing list
[email protected]
https://www.mozdev.org/mailman/listinfo/conkeror

Reply via email to