chrome_url_overrides for new tab causes error on Safari startup

Our Safari Web Extension uses mv3 and works as expected. However, when Safari is quit and reopened it throws the error: The service_worker script failed to load due to an error." The service_worker does not actually throw any errors.

Some debugging has revealed that his is caused by using:

"chrome_url_overrides": {
    "newtab": "newTab.html"
  },

The newTab.html is shown but the service_worker error prevents the extension from working any further.

If Safari is already open when extension is installed it does not cause any error.

I've also tested this by just having "hello world" in newTab.html.

Anyone knows how we can work around this or what can be done to fix this?

Can you file some feedback about this on https://feedbackassistant.apple.com? Providing a small sample extension project and steps to reproduce would be helpful to include.

Thank you.

chrome_url_overrides for new tab causes error on Safari startup
 
 
Q