GoogleChrome / developer.chrome.com

The frontend, backend, and content source code for developer.chrome.com
https://developer.chrome.com
Other
1.67k stars 1.58k forks source link

The background service is not updated after the extension is updated. #7904

Closed moshangqi closed 11 months ago

moshangqi commented 11 months ago

⚠️ This is for issues with the https://developer.chrome.com site, not Chromium itself. If you want to file a bug with Chromium (the open-source project behind Google Chrome and other browsers), please use https://crbug.com.

Describe the bug I encountered a problem. When my extension is upgraded, the service_worker of the extension will not be refreshed. I have tried calling chrome.runtime.reload() to reload, but when I have a running web page, this solution will not reload the extension.

To Reproduce Steps to reproduce the behavior:

  1. Go to install old extension
  2. Click on update extension
  3. background service worker is old

Expected behavior I wish there was a way to update the background service when extnesion update