Extension popup.html slow to open when service worker is inactive

Troubleshooting technical issues is much easier when both the user and support agent practice clear communication. For this reason, we have provided the template below for you to fill out with information about your issue. Please provide as much detail as possible so we can most efficiently resolve your problem.

Delete the any text above the line separator below before posting


Description of the issue:
When opening an extension that’s using a service worker (Manifest V3) and that service worker is currently inactive, the menu takes a couple of seconds to open (noticeable).
It’s not a code related issue because I’ve tried commenting out everything in the menu javascript and it doesn’t help.

How can this issue be reproduced?

  1. Clone the repo or install the extension in question:
    either:
    https://github.com/ilyatbn/aws_alwayson
    or:
    https://chrome.google.com/webstore/detail/aws-alwayson/lfplgkokagjgodoeojaodphmjdhlpega
  2. if cloned, load the extension unpacked.
  3. click the extesion icon (options menu will load), and click save without changing any option.
  4. click the extension icon and see that it loads quickly (because the service worker is still running)
  5. wait a few seconds for the service worker to become inactive.
  6. click the extension menu and see it’s slow to open.

Expected result:
Menu should open fast no matter what.

Brave Version( check About Brave):
v1.38.119
Additional Information:
Cannot reproduce this issue on any other browser. Tried Chrome, Firefox, Opera, Edge.

Thanks for the report, investigating the issue @ilyatbn

Does the dev console (F12), show any errors or warnings during this time?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.