[webextension] Strange behavior of loading scripts into content_scripts

RESOLVED INVALID

Status

()

Toolkit
WebExtensions: Untriaged
RESOLVED INVALID
6 months ago
6 months ago

People

(Reporter: Eugene, Unassigned)

Tracking

54 Branch
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

1.37 KB, application/x-zip-compressed
Details
(Reporter)

Description

6 months ago
Created attachment 8877530 [details]
fftest-master.zip

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0
Build ID: 20170608105825

Steps to reproduce:

1. Download extension from attach and extract this
2. In about:addons choose extension debuggind and then select load temporary extension 
3. Goto https://bugzilla.mozilla.org/ and open console


Actual results:

In the console, we see that the order of loading scripts that is specified in the content_scripts is violated:

1.js
2.js
4.js
5.js
3.js
6.js
7.js
-----------------




Expected results:

Expected Result:

1.js
2.js
3.js
4.js
5.js
6.js
7.js
-----------------
(Reporter)

Updated

6 months ago
Component: Untriaged → Extension Compatibility

Comment 1

6 months ago
I see this situation in 54.0, but it works in 55b1 and 56.0a1 (2017-06-14).
Status: UNCONFIRMED → NEW
Has Regression Range: --- → no
Component: Extension Compatibility → WebExtensions: Untriaged
Ever confirmed: true
Product: Firefox → Toolkit
The only guarantee is that content scripts in each declaration will load in the order that they're listed. Unrelated content scripts are free to be interleaved.
Status: NEW → RESOLVED
Last Resolved: 6 months ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.