title: Pass variable from Chrome extension to opened tab
body: <p>In my google chrome extension user clicks on link and than have to be automatically logged in on page.
  <br>Flow have to be like this: User click on link in GC Extension, script will take all required params and than send to newly opened tab.
  <br>
  There my script has to insert passed params and make some actions.<br>
  But I don't understand, how can I pass variables from GC extension script to newly opened tab?
  <br>
  Here is my manifest.json</p>
  
  <pre><code>"content_security_policy": "script-src 'self' https://ajax.googleapis.com; object-src 'self'",
   "content_scripts": [
      {
      "js": [ "window/content.js"],
      "matches": [
        "https://steamcommunity.com/login/home/?goto=",
        "http://steamcommunity.com/*",
        "https://steamcommunity.com/*"
      ]
     }
   ],
   "background": {
     "scripts": [
       "./scripts/back.js"
      ]
    },
   "web_accessible_resources": [
     "popup.js",
     "window/content.js"
   ],
  "permissions": [
      "activeTab",
      "tabs",
      "&lt;all_urls&gt;",
      "cookies",
      "declarativeContent"
   ]
  </code></pre>
  
  <p><br>
  I've tried so far to use this in main.js:</p>
  
  <pre><code>chrome.tabs.executeScript(
     tab1.id,
        {code: "var test =" + test
         allFrames: true
        },
        {file: "../popup.js"}, )
      })
  </code></pre>
  
  <p>But when click performs, script open new tab, and execute everything I wrote, but don't see variable 'test'.</p>