Closed Bug 1770696 Opened 2 years ago Closed 2 years ago

MV3 non-persistent background pages vs native messaging host

Categories

(WebExtensions :: General, defect, P2)

Firefox 101
defect

Tracking

(firefox104 fixed)

RESOLVED FIXED
104 Branch
Tracking Status
firefox104 --- fixed

People

(Reporter: pospichal, Assigned: rpl)

References

(Blocks 1 open bug)

Details

(Whiteboard: [addons-jira])

Attachments

(1 file)

Steps to reproduce:

Converted existing extension (working correctly) with MV2 to MV3, manifest had this setting:
"background": {
"persistent": false,
"scripts": [ "background.js" ]
},

Extension is connecting to native messaging host from background script using chrome.runtime.connectNative()

Actual results:

MV2: Background script remained active as long as the connection with native host was live
MV3: Background page is disconnected every time after 30 seconds of inactivity and native host process is killed

Expected results:

Same behavior as with MV2

The Bugbug bot thinks this bug should belong to the 'Firefox::Messaging System' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Messaging System
Component: Messaging System → Untriaged
Product: Firefox → WebExtensions
Severity: -- → S2
Priority: -- → P2
Whiteboard: [addons-jira]
Assignee: nobody → lgreco
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Pushed by luca.greco@alcacoop.it:
https://hg.mozilla.org/integration/autoland/rev/d9d595b22939
Reset the background script idle timer if the extension have native app ports still open. r=mixedpuppy
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 104 Branch
Regressions: 1780229
Component: Untriaged → General
Blocks: 1771203
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: