L'ouverture d'un nouvel onglet sur Google Chrome Extension

C'est mon background.html fichier, Il fonctionne très bien lors de l'ouverture dans l'onglet en cours, mais je veux qu'elle s'ouvre dans un nouvel onglet, ce que je fais mal?

<html>
<head>
<script>
  //Called when the user clicks on the browser action.
  chrome.browserAction.onClicked.addListener(function(tab) {
    var action_url = "javascript:location.href='http://www.reddit.com/submit?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)";
    chrome.tabs.create(tab.id, {url: action_url}, function(tab));
  });
</script>
</head>
</html>
Assurez-vous que votre action_url commence avec: http:// ou https://

OriginalL'auteur orange | 2011-12-10