Documentation on runtime.connect does not address manifest V3 background scripts dropping ports when they drop off after inactivity #36097
Labels
Content:WebExt
WebExtensions docs
needs triage
Triage needed by staff and/or partners. Automatically applied when an issue is opened.
MDN URL
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/runtime/connect
What specific section or headline is this issue about?
Examples
What information was incorrect, unhelpful, or incomplete?
When trying to create a V3 browser extension, I am finding that the extension background page is unloaded (as expected) after a period of inactivity. This creates a Port.onDisconnect event in the content script from which the connection was initiated, but often results in the inability to successfully open a new port to the background script if inactivity is about 20 seconds or more.
What did you expect to see?
I expected to see some direction regarding how to successfully and reliably reconnect to the background script after it gets unloaded.
Do you have any supporting links, references, or citations?
Extension Testing.txt
Do you have anything more you want to share?
No response
MDN metadata
Page report details
en-us/mozilla/add-ons/webextensions/api/runtime/connect
The text was updated successfully, but these errors were encountered: