If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

(WebExtensions) Many documented functions on browser.runtime object don't exist in background script.

RESOLVED INVALID

Status

()

Toolkit
WebExtensions: General
RESOLVED INVALID
8 months ago
4 months ago

People

(Reporter: biscoe, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

8 months ago
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.95 Safari/537.36

Steps to reproduce:

Attempt to set chrome.runtime.onInstalled listener from background script. onInstalled is undefined


Actual results:

onInstalled is undefined


Expected results:

onInstalled should have been defined as per the documentation.

Comment 1

8 months ago
What Firefox version are you using?  As noted here:
https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/runtime/onInstalled#Browser_compatibility
the onInstalled event is supported beginning with Firefox 52
Component: General → WebExtensions: General
Flags: needinfo?(biscoe)
Product: Add-on SDK → Toolkit
(Reporter)

Comment 2

8 months ago
Welp, that explains it. Apologies.

Updated

8 months ago
Status: UNCONFIRMED → RESOLVED
Last Resolved: 8 months ago
Resolution: --- → INVALID

Updated

4 months ago
Flags: needinfo?(biscoe)
You need to log in before you can comment on or make changes to this bug.