Top // components // tabWatcher.html
Basic bookmark and history datasources have been mastered. As of
8/8/03, the history code is not fully in CVS, though bookmarks are.
The advanced datastructures at the window level are
var tabArray = new Array(); // Array of tab indexesAt the tab level, a separate collection of pointers to the windowHistory object are maintained.
var windowHistory = new Array(); // ordered array of visit objects in order of pages visited
var urlIndex = new Object(); // url keyed associative array of page visits
var lastLoc; // URL last in focus
var lastTitle;
var curLoc; // URL in focus now
var curTitle; //
curBrowser.tabIndex = new Array();Back operations are badly handled and should be observed with a history listener, see
curBrowser.tabID = new Date().getTime();
tabArray[tabArray.length] = curBrowser.tabIndex;
Issues:
- cgi.referrer is not logged in the history (bug report). This dramatically limits the type of constructions we can build with out additional listeners on the window.
- workaround: in js, assert to history the referrer
- I've only accessed history oldest to new. We have available a globaly history and a window-tab history.
- need a persistence layer
Intro
MozWho is solidifying vaporware. The main project page at mozwho.mozdev offers CVS, Bug Tracking, and Installation.The long range goal is a personal adaptive homepage, always on time and relevant. The path to get there involves some meandering. Also of note, on the mozdev site, is a concise list of prior art.
Weblog Archives:
2004
01 02 03
2003
04 05 06 07 08 09 10 11 12