Closed Bug 1388270 Opened 7 years ago Closed 7 years ago

Content scripts are loaded before the background page on installation

Categories

(WebExtensions :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1369841

People

(Reporter: manish.jethani, Unassigned)

References

Details

Attachments

(1 file)

Attached file An example extension
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36

Steps to reproduce:

 1.  Close all browser windows and restart Firefox
 2.  Open http://www.example.com/
 3.  Install the attached extension


Actual results:

After installation, the browser runs the content script for example.com, but the background page never receives any message because it hasn't beed loaded yet


Expected results:

I'm not sure, but it makes sense to me that the background page be loaded before any content scripts are run
Firefox for Android has this bug too.
Component: Untriaged → WebExtensions: General
Product: Firefox → Toolkit
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
Product: Toolkit → WebExtensions
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: