title: Chrome Extension Manifest v3: Load content script only on click on extension icon (minimize permissions)
body: <p>I am migrating a functioning browser extension to manifest v3. The problem: I want the content script to be loaded only upon clicking on the browser extension icon. However, the script is always loaded. When I try to upload to the chrome store, I get the following message, which is what I want to avoid:</p>
  <blockquote>
  <p>Because of the host permission, your extension may require an in-depth
  review that will delay publishing.</p>
  </blockquote>
  <p>I suspect it has something to do with the &quot;action&quot;, but I could not figure out on how to fix this. Here is the manifest:</p>
  <pre><code>{
      &quot;manifest_version&quot;: 3,
      &quot;name&quot;: &quot;__MSG_extName__&quot;,
      &quot;description&quot;: &quot;__MSG_extDescription__&quot;,
      &quot;key&quot;: &quot;...&quot;,
      &quot;version&quot;: &quot;1.0.0&quot;,
      &quot;icons&quot;: { ... },
      &quot;background&quot;: {
          &quot;service_worker&quot;: &quot;/background.js&quot;
      },
      &quot;permissions&quot;: [
          &quot;storage&quot;
      ],
      &quot;content_scripts&quot;: [
          {
              &quot;matches&quot;: [
                  &quot;&lt;all_urls&gt;&quot;
              ],
              &quot;js&quot;: [
                  &quot;/content.js&quot;
              ]
          }
      ],
      &quot;web_accessible_resources&quot;: [
          {
              &quot;resources&quot;: [
                  &quot;/assets/*&quot;,
                  &quot;/options.html&quot;
              ],
              &quot;matches&quot;: [
                  &quot;&lt;all_urls&gt;&quot;
              ]
          }
      ],
      &quot;options_page&quot;: &quot;options.html&quot;,
      &quot;action&quot;: {}
  }
  </code></pre>
  <p>One last note: I assume that I need <code>activeTab</code> permission. But again, my problem is that I want to minimize the required permissions.</p>
  <p>Thanks in advance!</p>