これは私のbackground.htmlファイルです。現在のタブで開くとうまくいきますが、新しいタブで開きたいのですが、何が間違っていますか?Google Chrome拡張機能で新しいタブを開く
<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>
あなたaction_url設定で始まっていることを確認してください: 'ます。http://'や 'HTTPSを://' –