I have a chrome extension and, I'm creating a new tab from my background script this way :
chrome.runtime.onMessage.addListener(function(message, sender, sendResponse) {
if (message.todo == "NewTab") {
var creating = chrome.tabs.create({
url:message.url,
active:true
},function(tab){
sendResponse({access: "yes"});
});
creating.then(onCreated, onError);
}
return creating;
});
Is it possible to set the localStorage of the new tab just after creating it ?