Migrating Automa to Manifest V3
Published at 02 March 2024 • #update
Because Chrome will depreciate Manifest v2, starting from v1.22.0, Automa will use Manifest v3. So to make it work in Manifest v3, there are some changes to Automa in terms of how it works.
From now on, the dashboard will move as a popup. This popup is required to run a workflow, so don't close this popup while running a workflow because it won't run if you close it.
But why move the dashboard into a popup? In Manifest v3, Chrome will move the background page to the service worker. And the max lifetime of the service worker is five minutes, and it will stop when it is exceeded that. And to avoid that, Automa will move the engine for running the workflow from the background page into the popup because there are some users whose workflow runs more than 5 minutes.
const script = document.createElement('script');script.textContent = 'alert("Hello world")';document.body.appendChild(script);
If you see
Refused to execute inline script because it violates the following Content Security Policy directive... error, the mentioned block won't work on that website.