This is my most simple function:
function do_the_redirect(where_to)
{
up2 = new Object();
up2.url =where_to;
//alert("here");
chrome.tabs.update(tab.id, up2);
}
But it gives me this error:
Uncaught ReferenceError: tab is not defined
// in background.js