Chrome extension page action appearing outside of address bar : <p>I wrote a Chrome Extension page action, with the following implementation:</p>

<p>﻿﻿In manifest.json:</p>

<pre><code>  "permissions" : [
    "declarativeContent"
  ],
</code></pre>

<p>In background.js:</p>

<pre><code>chrome.runtime.onInstalled.addListener(function() {
  // Replace all rules ...
  chrome.declarativeContent.onPageChanged.removeRules(undefined, function() {
    // With a new rule ...
    chrome.declarativeContent.onPageChanged.addRules([
      {
        conditions: [
          new chrome.declarativeContent.PageStateMatcher({
            pageUrl: { urlMatches: 'www\.somewebsite\.com/(translate|revise)/' },
          })
        ],
        // And shows the extension's page action.
        actions: [ new chrome.declarativeContent.ShowPageAction() ]
      }
    ]);
  });
});
</code></pre>

<p>I noticed that in most Chrome browsers, the page action icon appears correctly inside the address and only appears when the matching page is met:</p>

<p><a href="https://i.stack.imgur.com/jQZI9.png" rel="noreferrer"><img src="https://i.stack.imgur.com/jQZI9.png" alt="Page action appearing as expected"></a></p>

<p>However, in some browsers recently page actions started appearing as enabled/disabled browser actions, i.e. outside the address bar, which is a lot clumsier because the whole idea around page actions icons is that they appear if and only if the page is relevant to them.  There is no point showing a disabled page action for most of the time.  Actually, it happened to browsers where it used to work well days ago, like if a Chrome update had some side effects.</p>

<p><a href="https://i.stack.imgur.com/BbnP3.png" rel="noreferrer"><img src="https://i.stack.imgur.com/BbnP3.png" alt="Page action appearing like a Browser action"></a></p>

<p>I presume this is related to some Chrome setting that now shows all extensions there, but is there any way I can force the page action to appear consistently in the address bar and only appear when it can be really useful?</p>
