bench/comparison/blockers/ublock/tab.js
function(tabId, url) {
        var entry = tabContexts.get(tabId);
        if ( entry === undefined ) {
            entry = new TabContext(tabId);
            entry.autodestroy();
        }
        entry.push(url);
        mostRecentRootDocURL = url;
        mostRecentRootDocURLTimestamp = Date.now();
        return entry;
    }
function(tabId, url) {
        var entry = tabContexts.get(tabId);
        if ( entry === undefined ) {
            entry = new TabContext(tabId);
            entry.autodestroy();
        }
        entry.push(url);
        mostRecentRootDocURL = url;
        mostRecentRootDocURLTimestamp = Date.now();
        return entry;
    }
function ( tabId , url ) { var entry = tabContexts . get ( tabId ) ; if ( entry === undefined ) { entry = new TabContext ( tabId ) ; entry . autodestroy ( ) ; } entry . push ( url ) ; mostRecentRootDocURL = url ; mostRecentRootDocURLTimestamp = Date . now ( ) ; return entry ; }
These are to be used for the API of the tab context manager.
These are to be used for the API of the tab context manager .