title: Chrome Extension error: “Unchecked runtime.lastError while running browserAction.setIcon: Icon invalid."
body: <p>I was trying to change Chrome extension icon dynamically by following this <a href="https://developer.chrome.com/extensions/browserAction#method-setIcon" rel="noreferrer">documentation</a>.</p>
  <p>Unfortunately, it is not working with the following code:</p>
  <pre><code>chrome.browserAction.setIcon({path: 'my_icon.png'});
  </code></pre>
  <p>In console, it is failing with following error:</p>
  <blockquote>
  <p>Unchecked runtime.lastError while running browserAction.setIcon: Icon invalid.</p>
  </blockquote>