title: Chrome cannot load action icon depending on policy
body: <p>I am trying to change my extension's icon from a background page (manifest v2), using:</p>
  <blockquote>
  <p>chrome.browserAction.setIcon({path:{'48':'images/iconready.png'}});</p>
  </blockquote>
  <p>By default, I get a surprising:</p>
  <pre><code>Could not load action icon 'images/iconready.png'.
  Context
  _generated_background_page.html
  Stack Trace
  _generated_background_page.html:0 (anonymous function)
  Nothing to see here, move along.
  </code></pre>
  <p>as well as:</p>
  <blockquote>
  <p>Unchecked runtime.lastError: Could not load action icon 'images/iconready.png'.</p>
  </blockquote>
  <p>Here is my manifest:</p>
  <pre><code>{
    &quot;name&quot;: &quot;myname&quot;,
    &quot;version&quot;: &quot;1.0&quot;,
    &quot;description&quot;: &quot;my description&quot;,
    &quot;manifest_version&quot;: 2,
    &quot;icons&quot;: {
      &quot;48&quot;: &quot;images/icon.png&quot;
    },
    &quot;browser_action&quot;: {
      &quot;default_icon&quot;: &quot;images/icon.png&quot;,
      &quot;default_popup&quot;: &quot;hello.html&quot;
    },
    &quot;background&quot;: {
      &quot;scripts&quot;: [
        &quot;background.js&quot;
      ],
      &quot;persistent&quot;: true
    },
     &quot;web_accessible_resources&quot;:[
     &quot;images/icon.png&quot;,
     &quot;images/iconbusy.png&quot;,
     &quot;images/icondisc.png&quot;,
     &quot;images/iconready.png&quot;
     ],
    &quot;permissions&quot;: [
      &quot;notifications&quot;,
      &quot;activeTab&quot;, &quot;tabs&quot;,
      &quot;webRequest&quot;, &quot;webRequestBlocking&quot;,
      &quot;proxy&quot;,
      &quot;webNavigation&quot;,
      &quot;https://*/*&quot;,
      &quot;http://*/*&quot;,
      &quot;&lt;all_urls&gt;&quot;
    ]
   }
  </code></pre>
  <p>(note that I've tried it with and without the &quot;web_accessible_resources&quot; part, it doesn't change a thing)</p>
  <p>I've tried adding the following, and suddenly, it works, and I DO see the icon changing, which means that my code, path etc. is valid:</p>
  <pre><code>&quot;content_security_policy&quot;: &quot;default-src 'self';img-src *&quot;,
  </code></pre>
  <p>However, my extension does need connect permissions, thus the previous line MUST be something like this instead:</p>
  <pre><code>  &quot;content_security_policy&quot;: &quot;default-src 'self';connect-src *;img-src *&quot;,
  </code></pre>
  <p>Unfortunately, as soon as I add the connect-src permission, the icon doesn't load anymore and gives the same error again.</p>
  <p>Note that this is chromium on linux. Could this be a nasty bug?</p>
  <p>What could I be doing wrong?</p>
  <p>Thanks!</p>