How do I get a grip on the session history for the browser from an extension?

I've been experimenting in the javascript shell that comes with the
Extension Developer plugin. I'm using Firefox 1.5.0.1. The shell
should be executing under the chrome context.

Here are some things I've tried:

h = 
Components.classes["@mozilla.org/browser/shistory-internal;1"].getService(Components.interfaces.nsISHistory);
[xpconnect wrapped nsISHistory]
h.count
0
nav = 
Components.classes["@mozilla.org/browser/shistory-internal;1"].getService(Components.interfaces.nsIWebNavigation);
[xpconnect wrapped (nsISupports, nsISHistory, nsIWebNavigation)]
nav.count
0
nav.SHistoryEnumerator.hasMoreElements()
false
nav.sessionHistory
null

Any ideas?

Thanks,
Dan
_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom

Reply via email to