title: Chrome extension - Unchecked runtime.lastError while running tabs.executeScript: Cannot access a chrome:// URL at Object.callback (<URL>)
body: <p>I'm working on building chrome extension.
  I have an error - Unchecked runtime.lastError while running tabs.executeScript: Cannot access a chrome:// URL     at Object.callback ().  I don't know what to do.</p>
  
  <p>manifest.json</p>
  
  <pre><code>{
      "manifest_version": 2,
  
      "name": "tabs",
      "description": "testing tabs",
      "version": "1.0.4",
      "icons": { "128": "icon_128.png" },
      "browser_action": {
        "default_icon": "icon.png",
        "default_title": "A popup will come here"
      },
      "background": {
        "scripts": ["background.js"]
      },
       "permissions": ["tabs", "*://*/*", "background"]
    }
  </code></pre>
  
  <p>background.js</p>
  
  <pre><code>chrome.tabs.query({}, function(tabs) {
          for(var i= 0; i &lt; tabs.length; i++) { 
              chrome.tabs.executeScript(null, {
              code: "console.log('wow');"
          });
      }
  
  });
  </code></pre>
  
  <p>Thanks in advance.</p>