title: executescript chrome extension not executing properly
body: <p>I am trying to get the values into the elements on the new tab and then click submit to login.
  I have tried many variations and just can't seem to get it to work.</p>
  
  <pre><code>function injectScript(){
  var script =  ' var e = document.getElementById("email"); var p = document.getElementById("password");'+
                'e.value ="'+currentEmployee.email+'"; p.value = "'+currentEmployee.password+'";'+
                'var osbut = document.getElementById("osLoginButton"); osbut.submit();';
  
  chrome.tabs.create({ url: "https://www.example.com" });
  
    chrome.tabs.executeScript({
      code: script, runAt :"document_start" // i have tried document_idle and document_end too
    });
  //https://developer.chrome.com/extensions/tabs#method-executeScript
  
  }//end func
  </code></pre>
  
  <p>Heres what the button looks like that I am targeting to submit</p>
  
  <pre><code>&lt;button type="submit" id="osLoginButton" class="btn btn-block" 
  ng-disabled="!user.email || !user.password || loggingIn" 
  style="background:#6f5092; color:white; width:75%; 
  display:block; margin-right:auto; margin-left:auto; margin-top:2rem;"&gt;&lt;span&gt;
  &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class="glyphicon glyphicon-log-in pull-left"&gt;&lt;/span&gt;Sign me in&lt;/button&gt;
  </code></pre>
  
  <p>Here is the error I am getting on the new tab in console</p>
  
  <pre><code>Unchecked runtime.lastError while running tabs.executeScript: Cannot access a chrome:// URL
      at injectScript (chrome-extension://ihekknfdfleelcebfjflficdnebfadlc/popup.js:188:15)
      at empLogin (chrome-extension://ihekknfdfleelcebfjflficdnebfadlc/popup.js:177:1)
      at HTMLAnchorElement.&lt;anonymous&gt; (chrome-extension://ihekknfdfleelcebfjflficdnebfadlc/popup.js:160:42)
  
      error in extension
  </code></pre>
  
  <p>Is it possible the script is targeting the extension? The new tab page is running angular1. I am not sure if that ng-disabled is affecting it because it takes time for the angular to change and the script is failing because of that. I also can't test that because there are no setTimeouts in extensions. Though 
  I did try to send a setTimeout() inside the executed script, nothing worked. I am at a loss.
  And no, I cant change the button on the page of the new tab. Thankyou for your help ahead of time. </p>