Closed
Bug 1385775
Opened 8 years ago
Closed 8 years ago
Webextension content scripts: lodash (_) is not in window
Categories
(WebExtensions :: General, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1208775
People
(Reporter: crownofdesign, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36
Steps to reproduce:
In manifest:
"content_scripts": [
{
"matches": [
"some sites"
],
"js": [ "lodash.js", "notification.js" ],
"run_at": "document_end"
}
],
In notification.js
let { _ } = window;
// And some use of _
Actual results:
After execution console shows error: _ is undefined
Expected results:
_ must be defined. Same case for background script works perfectly
"background": {
"scripts": [ "lodash.js", "background.js" ]
},
Updated•8 years ago
|
Component: Untriaged → WebExtensions: General
Product: Firefox → Toolkit
Updated•8 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
Updated•7 years ago
|
Product: Toolkit → WebExtensions
You need to log in
before you can comment on or make changes to this bug.
Description
•